搜索资源列表
TCtoqicailianzhu.rar
- 根据数据结构的思想,利用C语言设计游戏七彩连珠。在9X9的棋盘方格内,将五个及五个以上的同颜色的彩球连成直线(横、竖、对角均可),则彩球消失并得分;游戏开始在棋盘内随机出现五个颜色随机的彩球,在玩家每次移动一个球后,随机的出现3个颜色随机的球,至少存在一条可通路径,彩球方可被移动,直到棋盘被球填满,游戏结束。,Data structure in accordance with the idea of game design using C language Lianzhu colorful. 9
heapsort
- 本程序限定产生16个1-100之间的不重复的随机数,统计排序过程中的元素比较次数-The program generates 16 1-100 limit between non-repeating random numbers, statistical elements in the process of sorting the number of comparisons
paixu2.8
- 快速排序算法 按第一个元素排列或按随机元素排列 算法分析与设计-Quick sort algorithm or by the first element of array elements arranged in random
BankCallingSystem
- 模拟银行叫号系统。使用基本队列操作。假设某银行有5 个服务窗口,一个统一的叫号系统。在服务时段内,每个时间单位有随机数目的顾客到来,每个新来的顾客得到一个顺序号,排入等待服务队列,等待叫号。 每个服务窗口的职员处理完一个顾客的业务后,顾客即刻离开,职员呼叫下一个顾客,窗口显示下一个顾客的服务号。被叫号的顾客随即得到服务。假定每个顾客需要的服务时间也是随机的。试设计程序模拟上述场景。-Simulated bank calling system. Use basic queue operations
Advanced_C
- 随机数分布--高斯分布 100个经典源程序-random number
vectoralist
- 练习vector和list的使用 定义一个空的vector,元素类型int,生成10个随机数插入到vector中,用迭代器遍历vector并输出其中的元素值。在vector头部插入一个随机数,用迭代器遍历vector并输出其中的元素值。用泛型算法find查找某个随机数,如果找到便输出,否则将此数插入vector尾部。用泛型算法sort将vector排序,用迭代器遍历vector并输出其中的元素值。将vector清空。 定义一个list,并重复上述实验,并注意观察结果。 -Exerc
sort
- 用四种方法实现对随机的10000个数的排序,并比较这四种方法性能的差异。-Four methods used to achieve the number 10000 on the random sequencing and comparing the differences in the performance of four methods.
datastr
- C/C++常用的数据结构类 包括: array.h: 安全数组,可自动增长大小(随机访问,但扩充时效率低) linkedlist.h: 普通链表(可随机访问,但访问效率低) dclinkedlist: 双向循环链表(不可随机访问,但插入、遍历的效率都比普通链表高) hashtable.h: 哈希表(使用键值标识元素,键值一样的元素即认为相等,需重载 == 运算符并由用户定义哈希函数) binstree.h: 二叉搜索树(需重载 == 和 < 运算符) avltr
dierzhangxianxinbiaoer
- 线性表顺序存储结构特点:逻辑关系上相邻的两个元素在物理存储位置上也相邻; 优点:可以随机存取表中任一元素,方便快捷; 缺点:在插入或删除某一元素时,需要移动大量元素 需要预先确定数据元素的最大个数。-Linear sequence table storage structure characteristics: the logic of the relationship between the two adjacent elements in the physical stora
ansi917(14)
- 大随机数生成器算法的研究与实现.大随机数已经在当今社会的各个领域中都频繁使用,特别是在加密技术中已经成了不可缺少的一部分,像RSA,MD5中随机数成为加密技术的关键。 本设计主要为第3代移动通信系统(3G)提供符合要求的随机数(1024位),首先取得系统时间和RAND()函数所产生的随机数作为最初的随机初值,经过三重DES(两密钥通过MD5算法得来)和异或的变换,保证其随机数的足够随机,然后通过16次的循环得到一个组合起来的1024位随机数,设计还提供一个检验随机数是否随机的平台,采用了均匀
paixu
- 基于C++的排序各种排序操作,包括快速排序,shell排序,随机排序,选择排序等-C++ based on a variety of sort of sorting operation, including the quick sort, shell sort, random order, select Sort, etc.
nQueensLV
- 随机算法,利用拉斯维加斯算法计算n皇后问题。-Random algorithm, the use of Las Vegas algorithm n queen problem.
rbtree
- 红黑树是一种自平衡二叉查找树,是在计算机科学中用到的一种数据结构,典型的用途是实现关联数组。-AVL trees are actually easier to implement than RB trees because there are fewer cases. And AVL trees require O(1) rotations on an insertion, whereas red-black trees require O(lg n). In practice, the
shuangxianglianbiao
- 实现双向链表所存储线性表的各种操作。要求提供数据的插入、删除、查找、两个数据交换、求所有数据平均值、最大值、最小值的操作。先利用随机函数产生100个随机整数,建立线性表的存储结构,然后完成上述的功能。分析程序的时间、空间复杂度。-Achieve bi-directional linear list stored various operating table. Request for data insert, delete, search, both for data exchange, and
Strassen
- 调用随机函数输入2个矩阵,并用Strassen矩阵乘法和普通的矩阵乘法计算2个矩阵的乘积,并且记录程序运行时间作比较。 -Call the random function input 2 matrix, and matrix multiplication and Strassen matrix multiplication calculation ordinary matrix product of two, and run-time recording procedures for com
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.
dtmlcx
- 模拟程序包括一个时钟,每天从零开始。模拟程序得调度器组件随机设置每一层第一个人到来的时间,当时钟的时间等于第一个人到来的时间时,模拟程序生成一个新到的人将该人放到这一层。然后这个人按下按钮,请求电梯开门。这个人的目的地楼层不能与他上电梯的楼层相同。 -Simulation program includes a clock, every day from scratch. Simulation program was set up scheduling of each component la
Sort
- 运用直接插入法或快速排序法对程序产生的正序、逆序或随机的序列进行排序-use DirectSort of QuickSort to sort the sequnce produced by the process, which is positive sequence, reverse sequence or random order
CCode
- 遗传算法CUse time of day to feed the random number generator seed
Pagereplacementalgorithm
- 页面置换算法设计和实现最佳置换算法、随机置换算法、先进先出置换算法、最近最久未使用置换算法、简单Clock置换算法及改进型Clock置换算法;通过支持页面访问序列随机发生实现有关算法的测试及性能比较。-Page replacement algorithm design and realization of the best replacement algorithm, random permutation algorithm, FIFO replacement algorithm, the mo