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系統(tǒng)下用C編寫的一個shell程序,這個shell程序?qū)崿F(xiàn)了包括vi,add,ls,SORT,args,history等功能。
上傳時間: 2014-11-25
上傳用戶:qlpqlq
一、課程設(shè)計題目、內(nèi)容、要求 題目:《學(xué)生成績管理系統(tǒng)》(第二套 難度:2) 內(nèi)容:按要求完成的基礎(chǔ)上,增加了輸入學(xué)號查詢學(xué)生記錄的功能,和錯誤輸入報錯功能 要求: 1)輸入將本班學(xué)生的信息(每個學(xué)生至少包括學(xué)號、姓名、科目成績(三門)、學(xué)分、平均分)。 A.要求編寫函數(shù)SORT對個學(xué)生按某個條件(比如某科成績,學(xué)號,學(xué)分)升序或降序(可選擇)排序,并將結(jié)果(包括名次、學(xué)號、姓名、成績、學(xué)分、平均分)顯示出來。 B.編寫函數(shù)find,用折半法查找某科某個成績,并將結(jié)果打印出來。 C.要求編寫函數(shù)fun找出所有及格的同學(xué),并將他們的信息存顯示出來。
標簽: 管理系統(tǒng)
上傳時間: 2015-11-12
上傳用戶:徐孺
[問題描述] 將N個關(guān)鍵字去整數(shù)的記錄進行整序, 以使所有關(guān)鍵字為非負數(shù)的記錄排在關(guān)鍵字為負數(shù)的記錄之前,要求使用最少的附加空間,且算法的時間復(fù)雜度為O(N) [輸入] 待排序記錄個數(shù),各關(guān)鍵字的值。 [輸出] 關(guān)鍵字從正負分開,正數(shù)在前 [存儲結(jié)構(gòu)] 待排序記錄順序存儲。 [算法的基本思想] 快速排序算法每次任取一個記錄的關(guān)鍵字為標準,將其余記錄分為兩組將,N個關(guān)鍵字去整數(shù)的記錄進行整序, 以使所有關(guān)鍵字為非負數(shù)的記錄排在關(guān)鍵字為負數(shù)的記錄之前。 #include <iostream> using namespace std #define MAXNUM 100//設(shè)文件的最長可能長度 void SORT(int* keys, const int len)//排序
上傳時間: 2014-01-13
上傳用戶:aig85
經(jīng)典的剪枝,全排序,排序組合。使用了很棒的遞歸算法。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
你已經(jīng)熟悉了STL。你知道怎么建立容器,迭代它們的內(nèi)容,添加刪除元素和應(yīng)用常見算法,比如find和SORT。但你并不滿足,你不能擺脫STL所提供的超過它們能帶來的好處的感覺。應(yīng)該簡單的任務(wù)并非那樣。應(yīng)該直截了當?shù)牟僮鞔_有資源泄漏或錯誤行為。應(yīng)該高效的過程卻需要比你希望給它們的更多的時間和內(nèi)存。是的,你知道怎么使用STL,但你不確定你在有效地使用它。
上傳時間: 2016-02-12
上傳用戶:wyc199288
(1)寫一個final參數(shù)類M,包括比較次數(shù)、交換次數(shù)、探測次數(shù)屬性,并重寫構(gòu)造器和toString方法。 (2)寫一個抽象類A,其中包括要排序的數(shù)據(jù)。提供三個final方法,分別完成比較、探測、交換操作的同時,正確改變私有的M類對象成員的相關(guān)屬性。并提供一個虛方法doSORT,同時提供一個final方法SORT(先設(shè)置M對象初值,然后調(diào)用doSORT方法,返回M對象引用) (3)寫三個采用不同方法排序的A類的派生類A1,A2,A3 (4)寫一個測試類作為主類,分別生成A1,A2,A3的對象并調(diào)用SORT方法,顯示三個方法在排序時候的性能參數(shù)。
上傳時間: 2014-01-03
上傳用戶:牛津鞋
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1