搜索资源列表
paixu
- 生成1000个随机数,调用各个排序算法(5个),比较它们的运行时间(输出各个排序算法的运行时间)。-Generate 1000 random numbers, call (5) of the various sorting algorithms, comparison of their running time (the output of each sorting algorithm running time).
quchong
- 生成100个1-100之间的随机数到文件(data.txt),然后读出进行排序和去重后,输出到文件result.txt。(提交源代码和两个txt文件)-Output to generate a random number between 1-100 100 to a file (data.txt), and then read out the sorting and de-emphasis file result.txt. (Submitted to the source code and tw
voting
- 投票规则如下: 1. 每个投票者只可以投一次票. 投票者通过生成的随机数 在第一个到最后一个候选人之间选择一个候选人来进行投票. 2. 每一个候选人都保存着投票者给他们投票的记录 3. 选举之后, 拥有最高投票数的候选人当选. -The voting rules are as follows: 1. Each voter can vote only once. The voter decides which candidate to choose by generating
Rand
- c语言中随机数的生成,一般C语言中的rand函数生成的是伪随机数,而本程序可以生成真正的随机数-random number generator in c language, in general C language rand function to generate the pseudo-random number, the program can generate a true random number
GuessNumber
- 生成一个真正的随机数,由两个按钮和一个定时器控制。-Create a real random, and by two buttons and a timer control.
randoms
- VC 生成任意分布的随机数(可以包括示波器)演示-VC generate arbitrary distribution of the random number ( can include oscilloscope demo )
CZhangJian
- 生成一系列随机数,然后生成各种统计图,这么一个小程序-Generate a series of random numbers, and then generate a variety of charts, so a small program
random
- 生成随机字符串 定义并初始化数组 初始化数字、字母 初始化随机数生成器设置返回值 把结果返回给浏览器-To generate random string the definition and initialize array initial Numbers, letters, initialization random number generator set the return value of the results back to the browser
Merge-sort
- 实现归并排序,随机生成500个随机数,利用归并排序对这500个数排序-Merge sort, a randomly generated 500 random numbers using the sort of merge sort this 500 number
Selection-Sort
- 选择排序,随机生成500个随机数,并用选择排序对着500个数进行排序-Selection sort, randomly generated 500 random numbers, sort and select Sort facing the 500 number
Hill-sort
- 希尔排序,随机生成500个随机数,并用希尔排序对这500个数进行排序。-Hill sort randomly generated 500 random numbers, and sort Hill sort this 500 number.
Bubble-Sort
- 冒泡排序,随机生成500个随机数,并用冒泡对这500个随机数进行排序。-Bubble sort, randomly generated 500 random numbers, and the bubbling of these 500 random numbers to sort.
Quick-sort
- 快速排序,随机生成500个随机数,并用快速排序对这500个随机数进行排序。-Quick sort, randomly generated 500 random numbers, and sort these 500 random numbers using quick sort.
LaplaceDist-and-GaussDIst
- 高斯法和拉普拉斯法生成随机数的经典matlab程序-Gauss law and the Laplace method classic matlab program to generate random numbers
czxt
- 设计一个请求页式存储管理方案。并编写模拟程序实现之。 产生一个需要访问的指令地址流。它是一系列需要访问的指令的地址。为不失一般性,你可以适当地(用人工指定地方法或用随机数产生器)生成这个序列,使得 50%的指令是顺序执行的。25%的指令均匀地散布在前地址部分,25%的地址是均匀地散布在后地址部分。 为简单起见。页面淘汰算法采用 FIFO页面淘汰算法,并且在淘汰一页时,只将该页在页表中抹去。而不再判断它是否被改写过,也不将它写回到辅存。 -The design of a reques
elgamal
- ElGamal算法,是一种较为常见的加密算法,它是基于1984年提出的公钥密码体制和椭圆曲线加密体系。既能用于数据加密也能用于数字签名,其安全性依赖于计算有限域上离散对数这一难题。在加密过程中,生成的密文长度是明文的两倍,且每次加密后都会在密文中生成一个随机数K。-The ElGamal algorithm is a more common encryption algorithm, which is based on the 1984 public key cryptosystem and e
shangji_c
- 笔者将介绍c语言所提供的随机数发生器的用法。现在的c编译程序都提供了一个基于一种ANSI标准的伪随机数发生器函数,用来生成随机数-I will introduce the usage of the c language provided by the random number generator. The c compiler is an ANSI standard based on a pseudo-random number generator function is used to ge
vcPP_identifying-code
- 生成随机数并根据添加的条件生产验证码,包括变形 噪声等-Generating random numbers and to add conditions to produce the verification code, including the deformation noise
random
- 可选定任意范围和数量生成随机数,用c写的window程序-Can select any range and quantity to generate random numbers, written in c window program
Mersenne-Twister
- 利用Mersenne Twister算法产生随机数,并测试和分析了其随机性。 程序中还加入了界面显示。 各个文件为: initGenerator.m: initGenerator函数,用于初始化随机序列的长度和值 generateNum.m: generateNum函数,当index为0时被调用,用于创建624维的移位寄存器数组 extractNum.m: extractNum函数,根据index当前值选择数组中的数生成随机数,同时改变index的值