搜索资源列表
2006081223131713066
- 迷宫地图的生成也有很多种方法,但是有些算法在生成较大维度时的计算速度很慢,尤其是如果用在电子词典之类上可能很成问题的。还有一个较大的问题就是很多算法生成的迷宫并不是真正意义上的迷宫,即路径不唯一。 用离散数学的集合观点来生成一个迷宫。 首先是M*N的一个矩阵,生成为M*N个集合,然后每次循环就合并一个集合,这样在M*N-1次合并之后就成了一个集合,也就是这M*N个元素连通了。算法首先得问题的是选择哪个元素来合并,我在这里是随机选择相邻集合。算法的关键是要记录合并的次序,否则你最后得到的只
insidesort
- 本程序通过编写五种不同的排序算法,以实现对算法时间复杂度的感性认识,程序可以对任意的一串数据进行从小到大的自然排序。而本程序以随机的数作为了待排数据,更体现了算法的全面性。-procedures through the preparation of the five different sorting algorithm to achieve the right time complexity of the algorithm was an agile and procedures can be
sgayiyuanyouhua
- 改进遗传算法-郭涛算法做最优化问题很管用,算法的基本思想是 先任意产生n个随机数,然后从n个数里随机选择m个数,再有这m个 数合成一个新数,将这个新数同n个数中间适应值函数值的最差的比较, 如果好的话就取代最差的那个,如果它比最好的还要好的话,则把最好的 也取代。如果比最差的坏,则重新合成一个新数。依次循环下去。 -improved genetic algorithm - Guo Tao algorithm optimization is the most
MapX4
- - 采用多级反馈轮转法调度算法,从而了解多级反馈轮转调度算法的优点与缺点. 先要随机产生几个进程,初始化进程.确定进程的的优先顺序,定义时间片的长度.
shiyan
- 通过建立链表,随机生成一组数据,来实现FIFO和LRU算法,还有物理地址与逻辑地址之间的转换。
maze
- 随机生成迷宫的深度遍历算法 以用使用了A*算法的小DEMO-The depth of a randomly generated maze traversal algorithm to use the A* algorithm using a small DEMO
优先算法进程调度
- 这是采用优先算法的进程调度程序。其优先级由程序随机产生,程序运行时可单步查看运行结果。-This is the priority algorithm used in the process scheduler. Its priority randomly generated by the procedures, operating procedures can single-step operation to see results.
Cpp1
- 本实验要求使用C语言编程模拟一个拥有若干个虚页的进程在给定的若干个实页中运行、并在缺页中断发生时分别使用FIFO和LRU算法进行页面置换的情形。其中虚页的个数可以事先给定(例如10个),对这些虚页访问的页地址流(其长度可以事先给定,例如20次虚页访问)可以由程序随机产生,也可以事先保存在文件中。要求程序运行时屏幕能显示出置换过程中的状态信息并输出访问结束时的页面命中率。程序应允许通过为该进程分配不同的实页数,来比较两种置换算法的稳定性-FIFO URP
8
- 本程序是用随机数的产生设计的一个四则运算测试器,用到的随机算法,在语句上基本上是简单的开关语句和一些其特殊作用的-This program is designed to generate random numbers a four computing devices on a random algorithm used in the statement is basically a simple switch statement and some of its special role of
gaijin
- 改进的随机微粒群算法的C++源程序,用于计算Goldstein-Price函数的最小值-Improved stochastic particle swarm optimization C++ source code
ranSelect
- C#四种方式实现对用户操作响应灵敏及可动态更新的窗体控件及其对比 随机抽奖应用为例 开发环境vs2010 timer,backGroundWorker,多线程,委托四种方式的对比: 1.4种方式都可以实现要求 可谓条条大路通罗马 2.多线程和委托需要强行禁用CheckForIllegalCrossThreadCalls,有可能存在运行安全问题,但目前还没遇到 3.timer的源代码最少最简单 其次是多线程 4.委托本质上还是要用到多线程 区别在于委托是
elgb
- 实现二路归并排序算法。 对上述排序算法,使用两个长度为一千万的线性表分别测试其性能,记录其运行时间(生成线性表的时间不计算在内)。第一个:线性表内的元素值随机生成;第二个:线性表的第i个元素值为i,即本来就有序。-Achieve Merging sorting algorithm. Above sorting algorithm, using two linear table with a length of ten million, respectively, to test its per
Fiveways
- 实验目的:掌握顺序表的常用排序方 法,掌握一种计时方法,测试算法的稳 定性。 2. 实验内容: 1) 分别编写函数实现冒泡排序、快速排 序和简单插入排序算法; 2) 2路归并排序(选做) 3) 编制一个应用程序,它将随机产生的 N个0~65535之间的整数插入到一个顺 序表中,然后分别用上述排序算法对 这个顺序表进行排序;记录并显示各 种方法的运行时间-Experimental Objective: To master the sort sequenc
GrahamFCH
- 本代码主要实现土包问题的算法,采用Graham扫描算法,随机生成指定数量的点,求解其凸包。代码中包含注释-The code of the main problems of soil packet algorithm, using Graham scan algorithm to randomly generate a specified number of points, solving its convex hull. Code contains annotations
internal-sorting
- (1) 对常用的内部排序算法进行比较:直接插入排序、简单选择排序、冒泡排序、快速排序、希尔排序。 (2) 利用随机函数产生N(如30000)个随机整数,作为输入数据作比较;比较的指标为关键字参加的比较次数和关键字的移动次数(关键字交换计为3次移动)。 (3) 对结果作出简要分析。-(1) internal sorting algorithm commonly used to compare: direct insertion sort, simple selection sort
lfu
- LFU算法,页面置换算法,随机生成页号,计算缺页次数和缺页率-The LFU algorithm, the page replacement algorithm, randomly generated page number, calculate the number of page faults and page fault rate
LFU
- LFU算法,页面置换算法,随机生成页号,可选择手动输入,计算缺页次数和缺页率-The LFU algorithm, the page replacement algorithm, randomly generated page number, can choose manual input, calculating the number of page faults and page fault rate
migong
- 用c写的迷宫小游戏 内置有一个随机生成地图的算法 希望对新学者有帮助 提供参考-Written in c maze game With a randomly generated map algorithm hope to have a help to provide the reference for new scholars
testpthread
- pthread实现二路归并算法的并行化。对1000000个随机生成的0-99之间的数字进行排序。-Pthread implementation of the two way merge algorithm. Sorting the numbers between 1000000 randomly generated 0-99.
include
- (1) 随机算法能求解的问题类型和实例。 (2) 求解最近点对问题的方法。 (3) 目前求解最近点对问题的常用算法中,最快的算法时间复杂度是多少 -(1) the problem types and instances can be solved by the random algorithm. (2) the method of solving the problem of the nearest point. (3) at present, the time compl