This a A* pathfinding example to illustrate how to implement a A* pathfinding algorithm into your program. It s a port from Patrick Lesters example in BlitzBasic to VB.Net. It uses a Binary Heap class I made to SORT the score values.
标签: pathfinding illustrate algorithm implement
上传时间: 2013-12-25
上传用户:shawvi
This source code is about the basic SORTing algorithm implemented in C#. The algorithms included are Bubble SORT, Insertion SORT, Selection SORT. User can trace how s the SORTing algorithm works.
标签: implemented algorithms algorithm included
上传时间: 2013-12-25
上传用户:woshiayin
这是个在Linux系统下用C编写的一个shell程序,这个shell程序实现了包括vi,add,ls,SORT,args,history等功能。
上传时间: 2014-11-25
上传用户:qlpqlq
一、课程设计题目、内容、要求 题目:《学生成绩管理系统》(第二套 难度:2) 内容:按要求完成的基础上,增加了输入学号查询学生记录的功能,和错误输入报错功能 要求: 1)输入将本班学生的信息(每个学生至少包括学号、姓名、科目成绩(三门)、学分、平均分)。 A.要求编写函数SORT对个学生按某个条件(比如某科成绩,学号,学分)升序或降序(可选择)排序,并将结果(包括名次、学号、姓名、成绩、学分、平均分)显示出来。 B.编写函数find,用折半法查找某科某个成绩,并将结果打印出来。 C.要求编写函数fun找出所有及格的同学,并将他们的信息存显示出来。
标签: 管理系统
上传时间: 2015-11-12
上传用户:徐孺
[问题描述] 将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N) [输入] 待排序记录个数,各关键字的值。 [输出] 关键字从正负分开,正数在前 [存储结构] 待排序记录顺序存储。 [算法的基本思想] 快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。 #include <iostream> using namespace std #define MAXNUM 100//设文件的最长可能长度 void SORT(int* keys, const int len)//排序
上传时间: 2014-01-13
上传用户:aig85
经典的剪枝,全排序,排序组合。使用了很棒的递归算法。a good SORT agorithm.
标签:
上传时间: 2013-12-10
上传用户:agent
#if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen { public: CGAQueen(int nPopulation,int nIteration,float Mutation,int mChBoard) virtual ~CGAQueen() void Clear() // to clear chess board with 0 value void InitialPopulation() // to create the first and initial randompopulation void FillArea(int index) // to fill chess board with desired chromosome int CostFunc(int index) // determine the cost of matrix[index][index] void PopulationSORT() // to SORT population from the best to the worst void GenerateCrossOverMatrix() // a way to create children from parent is CcrossOver void Mating() // to create children from parents void Ap
标签: AFX_GAQUEEN_H INCLUDED defined define
上传时间: 2015-12-27
上传用户:wuyuying
This forced me to write about more interesting and comprehensive SORTing methods, the result of which is this one. Through this writing I have tried to give in-depth coverage of the entire SORT algorithm I hope Peter wouldn t mind reading it. This article assumes that you really don t know about the iterations, looping, and so forth hence, it explains these in detail first.
标签: comprehensive interesting methods SORTing
上传时间: 2016-01-10
上传用户:athjac
你已经熟悉了STL。你知道怎么建立容器,迭代它们的内容,添加删除元素和应用常见算法,比如find和SORT。但你并不满足,你不能摆脱STL所提供的超过它们能带来的好处的感觉。应该简单的任务并非那样。应该直截了当的操作确有资源泄漏或错误行为。应该高效的过程却需要比你希望给它们的更多的时间和内存。是的,你知道怎么使用STL,但你不确定你在有效地使用它。
上传时间: 2016-02-12
上传用户:wyc199288
(1)写一个final参数类M,包括比较次数、交换次数、探测次数属性,并重写构造器和toString方法。 (2)写一个抽象类A,其中包括要排序的数据。提供三个final方法,分别完成比较、探测、交换操作的同时,正确改变私有的M类对象成员的相关属性。并提供一个虚方法doSORT,同时提供一个final方法SORT(先设置M对象初值,然后调用doSORT方法,返回M对象引用) (3)写三个采用不同方法排序的A类的派生类A1,A2,A3 (4)写一个测试类作为主类,分别生成A1,A2,A3的对象并调用SORT方法,显示三个方法在排序时候的性能参数。
上传时间: 2014-01-03
上传用户:牛津鞋