搜索资源列表
Quick-sort
- 快速排序,随机生成500个随机数,并用快速排序对这500个随机数进行排序。-Quick sort, randomly generated 500 random numbers, and sort these 500 random numbers using quick sort.
Mersenne-1.1
- Mersenne 算法 Mersenne Twister算法产生随机数,并测试和分析其随机性。 -Mersenne algorithm Mersenne Twister algorithm to generate random numbers, and test and analysis of its randomness.
Scheduling-algorithm-is-compared-
- 各种内部排序算法的时间复杂度分析结果只给出了算法执行时间的阶,或大概的执行时间。试通过随机的数据比较各算法的关键字比较次数和关键字移动的次数。-The time complexity analysis of the various internal sorting algorithm only gives the order of the algorithm execution time, or about the execution time. Test the random data al
c
- 对以下六种常用的内部排序算法进行比较:希尔排序、直接选择排序、快速排序、直接插入排序、堆排序、冒泡排序、。 (2)待排序表的表长和数据可以由用户自己确定,也可以由随机数产生程序自动产生;至少要用五组不同的输入数据作比较;比较的指标为关键字的比较次数和关键字的移动次数(关键字的交换计为三次移动)。 (3)最后要对结果作出简单分析。 -Six commonly used internal sorting algorithm: Hill Sort by direct selection s
mobile
- 移动数字排列方阵,随机输入8个数字,将数字按方阵依次序排列-Square mobile digital arrangement, random input eight Numbers, will in turn the phalanx Numbers in descending order
telephone-srve-
- 时钟提供接听电话服务的时间(以分钟计),然后这个时钟将循环地自增1(分钟) 直到到达指定时间为止。在时钟的每个“时刻”,就会执行一次检查来看看当前电话的服务 是否已经完成了,如果是,这个电话从电话队列中删除,模拟服务将从队列中取出下一个电 话(如果有的话)继续开始。同时还需要执行一个检查来判断是否有一个新的电话到达。如 果是将其到达时间记录下来,并为其产出一个随机服务时间,这个服务时间也被记录下来, 然后这个电话被放入电话队列中,当客户服务人员空闲时,按照先来先服务的方式
paixu
- 使用简单数组实现下面各种排序算法,并进行比较。 排序算法: 1、插入排序 2、希尔排序 3、冒泡排序 4、快速排序 5、简单选择排序 6、堆排序 7、归并排序 8、基数排序 要求: 1、测试数据分成三类:正序、逆序、随机数据 2、对于这三类数据,比较上述排序算法中关键字的比较次数和移动次数(其中关键字交换计为3次移动)。 3、对于这三类数据,比较上述排序算法中不同算法的执行时间,精确到微秒-Using a simple ar
bank
- 数据结构大型试验-银行模拟系统 (1)通过程序动态模拟银行顾客在一家有n>=2个窗口的银行的到达和离开情况。 (2)通过计算每位顾客的平均等待时间及每一窗口处于“繁忙”状态的百分比,来测试银行的服务效率。 (3)实现中,可以用时间代表银行活动的对象,用事件驱动来模拟这些活动,并以概率(随机数发生器)来描述预期的客户到达率和银行职员为一个顾客服务所需的时间。 (4)在实验中,可改变参数(如银行窗口数、客户到达率、服务时间等),测试银行的服务效率。要求在各种情况下,模拟测试都能
Haffman
- 由随机输入的文本建立并显示哈夫曼树,求哈夫曼编码。-By random input text and display Huffman tree, seeking Huffman coding.
insertsort
- 通用插入排序C++源程序,例程为电脑随机数排序。-General the insertion sort C++ source routines for the sort of computer random number.
selectort
- 通用选择法排序C++源程序,例程为电脑随机数排序。-Sort the universal selector law Sort C++ source, routine computer random number.
hash11
- 基本要求 假设人名为中国人姓名的汉语拼音形式。待填入哈希表的人名共有30个,取平均查找长度上限为2。哈希函数用除留余数法构造,用伪随机探测再散列法处理冲突。 测试数据 取周围较熟悉的30个人的姓名。-Assuming the basic requirements of people who named the name of the Chinese Pinyin form. Hash table to be filled a total of 30 names, taking the
fanxinsuanfa
- 定义一个vector,元素类型为INT,插入10个随机数,使用sort按升序排序,输出每个元素的值,再按降续排序,输出每个元素的值,练习用find查找元素,用min和max找出容器中的最小元素和最大元素,并输出。-Define a vector, the elements of type INT, insert 10 random numbers, use the sort ascending sort, the output value of each element, and then dr
1
- 随机建立一个含N个整数的整数数组(输出),再按奇偶数分存于两个不同的线性表(顺序和链接)中并别输出上述两个表。-Random array of integers containing N integers (output), and then the parity number are stored in two different linear table (order and links) and do not output the two tables.
jxy
- 能够用键盘控制生成随机数 并排序。同时比较不同算法的时间-Can be controlled using the keyboard generates random numbers and sort. Compare different algorithms time
随机数赋值给数组
- 用C语言编写一段0-9的随机整数用循环,每次产生1个0-9的随机数赋值给一个数组-C language a period of 0-9 random integer cycle, each generation of a 0-9 random number assigned to an array
Test2
- 随机给出三个学生的成绩,然后按由大到小的成绩进行排序-Random given three student s result, and then press the big to small result sort
GuessNum
- 猜数字游戏,系统随机给出一个0到100的数,然后让用户去猜,最后计算出所猜的次数-Guess Numbers game, the system random given a 0 to 100 number, and then let the user to guess, finally calculated the number of guess
Remember-Poker
- 让计算机来猜测用户“暗记”的某张扑克牌:计算机从一副扑克牌(54张)中任意抽出27张,摆放在不同的三行上(每行9张),用户“暗记”某张纸牌,而后告诉计算机所“暗记”的那张纸牌处于哪一行中;之后计算机再两次将纸牌重新摆放,并让用户再回答两次相同的提问(那张纸牌在重新摆放后又处在哪一行上);此时计算机会将用户所“暗记”的那张纸牌给挑出来。-Allow a computer to guess the user "counterfeitproof" the cards: computer at rand
15
- 猜数字游戏,随机产生0-9不重复的随机数-Guessing game 0-9 without repeating random numbers randomly generated