搜索资源列表
(1)
- 1、 用随机数生成的方式(要求用户输入随机数)产生一个迷宫:“1”表示墙,“0”表示路,最后的路径用“8”表示,若没有路径则打印报文,若有路径则打印出路径。 2、 通过堆栈及判断实现迷宫的自动寻找路径功能 -1, the random number generator of (requiring user input random number) produces a maze : "a" Wall said, "0" Lu said, the f
paixu
- 各种排序算法,SHELL MERGE,还有随机数的生成 -various sequencing algorithms, SHELL Merg, Random Number Generation
paixubijiao
- 1. 内部排序演示 问题描述 设计一个测试程序比较几种排序算法的关键字比较次数和移动次数以取得直观感受。 基本要求 (1)对起(冒)泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、堆排序算法进行比较; (2)待排序的元素的关键字为整数。其中的数据要用伪随机产生程序产生(如10000个),至少用5组不同的输入数据做比较,再使用各种算法对其进行排序,记录其排序时间,再汇总比较; (3)演示程序以人机对话的形式进行。每次测试完毕显示各种比较指标值的列表,用
vectoralist
- 练习vector和list的使用 定义一个空的vector,元素类型int,生成10个随机数插入到vector中,用迭代器遍历vector并输出其中的元素值。在vector头部插入一个随机数,用迭代器遍历vector并输出其中的元素值。用泛型算法find查找某个随机数,如果找到便输出,否则将此数插入vector尾部。用泛型算法sort将vector排序,用迭代器遍历vector并输出其中的元素值。将vector清空。 定义一个list,并重复上述实验,并注意观察结果。 -Exerc
ansi917(14)
- 大随机数生成器算法的研究与实现.大随机数已经在当今社会的各个领域中都频繁使用,特别是在加密技术中已经成了不可缺少的一部分,像RSA,MD5中随机数成为加密技术的关键。 本设计主要为第3代移动通信系统(3G)提供符合要求的随机数(1024位),首先取得系统时间和RAND()函数所产生的随机数作为最初的随机初值,经过三重DES(两密钥通过MD5算法得来)和异或的变换,保证其随机数的足够随机,然后通过16次的循环得到一个组合起来的1024位随机数,设计还提供一个检验随机数是否随机的平台,采用了均匀
Mergesort
- 采用随机数来生成要排序的内容,并使用模板,可以很方便的更改产生随机数的类型。-Used to generate random numbers to sort the contents, and the use of templates, you can easily change the type of random numbers generated.
paixu
- 程序可以使用七种排序算法,包括快速,希尔,推,简单选择等。对生成的随机数进行排列,并比较各种排序算法时间优劣-Program can use the seven ranking algorithms, including fast, Hill, push, simple choice. On the generated random numbers to be ranked, and compare the merits of time sorting algorithm
code
- (1) 生成n个[0,65535]以内的整数随机数,存入文本文件; (2) 将n个随机数从小到大排序,并显示结果。排序采用k桶法 (3)用函数编制混合同余的伪随机数发生器-(1) generate n-[0,65535] integer random number within, into a text file (2) n random numbers from small to large order, and displays the results. Sort by k B
heap_sort
- 堆排序算法 预先使用生成随机数 进行排序 -Heap sorting algorithm used to generate random numbers for pre-order
key
- 【问题描述】 多关键字的排序有其一定的实用范围。 例如:在进行高考分数处理时,除了需对总分进行排序外, 不同的专业对单科分数的要求不同,因此尚需在总分相同的情况下, 按用户提出的单科分数的次序要求排出考生录取的次序。 【基本要求】 (1)假设待排序的记录数不超过10000,表中记录的关键字数不超过5, 各个关键字的范围均为0至100。 按用户给定的进行排序的关键字的优先关系,输出排序结果。 (2)约定按LSD法进行多关键字的排序。 在对各个关键字进行排序时
sort
- 两种排序算法实现,随机快拍和和并排序,随机快拍为生成随机数key-Two sorting algorithms, random snapshots and and and sort
hashTable
- 数据结构课程设计——链表散列的添加修改和删除。java实现,有图形化用户界面,支持随机数生成链表。-Data Structure Course Design- list of add, modify, and delete the hash. java implementation, a graphical user interface, support for random number generation list.
Lecture8
- 数据结构中生成随机数的排序问题,各种排序的比较-Data structures to generate random numbers scheduling problem, the comparison of various sorting
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
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.
rand-program
- 一个简单的随机数生成程序,采用c++语言,在visual c++ 6.0环境执行-A simple random number generator program, using c++ language, in visual c++ 6.0 environment to perform