码迷,mamicode.com
首页 >  
搜索关键字:random walk    ( 8169个结果
java 随机数不重复
package test; import java.util.HashSet; import java.util.Random; public class Snippet { /** * 随机指定范围内N个不重复的数 * 在初始化的无重复待选数组中随机产生一个数放入结果中, * 将待选数组被随机到...
分类:编程语言   时间:2014-07-22 08:16:38    阅读次数:290
计算子序列和是定值的子序列个数
题目如下: Counting Subsequences Time Limit: 5000 MSMemory Limit: 65536 K Description ?"47 is the quintessential random number," states the 47 society. And there might be a grain of truth in that....
分类:其他好文   时间:2014-07-22 08:13:34    阅读次数:281
java实现各种算法
package sortAlgorithm;import java.io.File;import java.io.IOException;import java.sql.Time;import java.util.Random; * @author sky * 该类给出各种排序算法public cl...
分类:编程语言   时间:2014-07-22 00:08:35    阅读次数:344
javascript Math.random函数参数
random函数参数 无参数 random函数返回值 返回0和1之间的伪随机数,可能为0,但总是小于1,[0,1) random函数示例 document.write(Math.random()); 返回随机数 document.write(Math.random()*(20-10)+10); 返回10-...
分类:编程语言   时间:2014-07-21 23:30:03    阅读次数:278
UVA - 10917 Walk Through the Forest (最短路+DP)
Description Problem C: A Walk Through the Forest Jimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To relax after a hard day, he likes to ...
分类:其他好文   时间:2014-07-21 09:27:14    阅读次数:300
STL 源码剖析 算法 stl_algo.h -- random_shuffle
random_shuffle -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 描述:将[first,last)的元素次序随机重排。 思路: 必须是 RandomAccessIterator 1.遍历区间 2.产生[...
分类:其他好文   时间:2014-07-20 23:12:29    阅读次数:231
UVa 825 Walking on the Safe Side(DP)
Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:其他好文   时间:2014-07-20 22:33:53    阅读次数:295
java 常用数据结构
本章介绍Java的实用工具类库java.util包。在这个包中,Java提供了一些实用的方法和数据结构。例如,Java提供日期(Data)类、日 历(Calendar)类来产生和获取日期及时间,提供随机数(Random)类产生各种类型的随机数,还提供了堆栈(Stack)、向量 (Vector) 、位...
分类:编程语言   时间:2014-07-19 15:10:44    阅读次数:337
静态方法不能重写
1.静态方法是使用公共内存空间的,就是说所有对象都可以直接引用,不需要创建对象再使用该方法。class Cat{ protected static String color ="random"; public void showCatColor(){ System.out....
分类:其他好文   时间:2014-07-19 08:33:37    阅读次数:214
VisJS 随机图
Random nodes body { font: 13pt "courier new"; } #mynetwork { width: 600px; height: 600px; border: 8px solid blueviolet...
分类:Web程序   时间:2014-07-19 02:45:26    阅读次数:479
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!