搜索资源列表
paixu
- 利用随机函数产生N个随机整数(20000以上),对这些数进行多种方法进行排序。 1. 至少采用4种方法实现上述问题求解(提示,可采用的方法有插入排序、希尔排序、起泡排序、快速排序、选择排序、堆排序、归并排序)。并把排序后的结果保存在不同的文件中-Use random function N random integers (20000 above), these numbers were a number of ways to sort. 1. At least four kinds of m
SJJGPXBJ
- 数据结构的课程设计。10种内部排序算法的比较,有三种比较方式,随机数组比较,已排序数组升序比较,已排序数组逆序比较,只直观的给出了比较次数等,-Data structure course design. 10 kinds of internal sorting algorithms comparison, there are three more ways, more random array, the array has been sorted in ascending order of co
line
- 比较冒泡排序、直接插入排序、简单选择排序、快速排序,待排序长度不小于100,数据可有随机函数产生,用五组不同输入数据做比较,比较的指标为关键字参加比较的次数和关键字移动的次数;对结果做简单的分析,包括各组数据得出的结果出现被动的解释。设计程序用顺序存储 -Comparison of bubble sort, direct insertion sort, simple selection sort, quick sort, to be sorted by length not less tha
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
suijikuaipai
- 随机快排的算法实现。。需要的下下来看看吧-Fast random row algorithm. . Need to look at it the next down. .
sres.tar
- 基于约束的随机排序的演化优化算法程序,并且应用于12个例子-Constraint-based random sort of evolutionary optimization process, and applied to 12 examples
mengtekaluo
- 对蒙特卡洛算法进行了详细的叙述讲解,包括简单随机抽样、离散系统模拟、连续系统的模拟、蒙特卡洛的应用等-Of the Monte Carlo algorithm is described in detail explanations, including simple random sampling, discrete system simulation, continuous system simulation, the application of Monte Carlo
tt0201
- 建立两个顺序表(通过随机过程生成,并排序); 输出合并前的结果 对这两个顺序表进行合并; 输出合并结果-The establishment of two sequence table (generated by random processes, and sort) output results before the merger to merge the two order forms output combined results
suiji
- 算法,随机算法,分别用KMP、Monte Carlo和Las Vegas算法编制3个程序(VS2008 C#编写)-Algorithm, random algorithm, respectively KMP, Monte Carlo and Las Vegas algorithm for the preparation of three procedures (VS2008 C# written)
insertion_sort
- insertion sort with graphs...plotting random elements up to 1000 elements and sort it using insertion sort-insertion sort with graphs...plotting random elements up to 1000 elements and sort it using insertion sort.....
sortABC
- 随机数产生1000个数,保存在文件中,将前300个整数读入数组A,接下来的400个读入B,最后的300个读入C,分别用冒泡排序,选择排序,直接插入排序算法对A,B,C中的数排序,并按一定格式输出。-1000 the number of random number generation, save the file, read the first 300 integer array A, read the next 400 B, read the last 300 C, respectively,
migong
- 随机地图的迷宫,*号表示走过的路径,#表示墙,@表示回溯=表示未走但可走的地方,原始地图只含有=和#信息-maze for root in various random maps
insertionsort
- 插入排序,通过输入数据规模,以随机数作为待排序元素,得出运行时间,分析时间效率,数量级可达10^7-Insertion sort, through the input data size to be sort of random numbers as the elements come running time, analytical time efficiency of magnitude up to 10 ^ 7
heap_sort
- 堆排序算法 预先使用生成随机数 进行排序 -Heap sorting algorithm used to generate random numbers for pre-order
BinarySearchTree
- 用给定的数列构造一棵二叉排序树,并用广义表形式输出 输入数据共N+1行 第一行为一个整数N表示数据组数 第二至N+1行每行对应一组数据,共M+1个整数(M<10000) 每组数据以一个整数M开头,表示数列长度为M,后接长度为M的一组无序数列 输出共N行 每组数据对应一行输出 用广义表形式表示构造的二叉排序树,无任何多余空格和空行 它的通项公式为 前几项为 : 1, 2, 5, 14, 42, 132, 429,
MatrixTranspose
- 数据结构中实现矩阵转置功能,利用随机数产生稀疏矩阵。-Data structure to implement matrix transpose function, sparse matrix using random number generator.
maze
- 是一个最原始的迷宫设计,功能是在随意创造的迷宫中寻找可通路径,利用栈实现-Maze is one of the most original design, the function is created in the maze at random looking for communication path, the use of stack implementation
BinarySearchTree
- 二叉搜索树,二叉搜索树的查找过程和次优二叉树类似,通常采取二叉链表作为二叉搜索树的存储结构。中序遍历二叉搜索树可得到一个关键字的有序序列,一个无序序列可以通过构造一棵二叉搜索树变成一个有序序列,构造树的过程即为对无序序列进行排序的过程。每次插入的新的结点都是二叉搜索树上新的叶子结点,在进行插入操作时,不必移动其它结点,只需改动某个结点的指针,由空变为非空即可。搜索,插入,删除的复杂度等于树高。-Binary search tree, binary search tree to find a si
sort
- 两种排序算法实现,随机快拍和和并排序,随机快拍为生成随机数key-Two sorting algorithms, random snapshots and and and sort
8queens
- 8皇后问题,其中前四个是随机输出,后四个采用回溯法,并输出计算所耗时间。-8 queens problem, which is a random output of the first four, the last four by backtracking, and output calculation of the time-consuming.