Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
硬件知識CD-R光盤大家族 隨著刻錄機的日益普及,市場上CD-R光盤的種類也越來越多,容量、顏色、形狀、品牌五花八門,消費者往往有一種無所適從的感覺。下面,我們就從不同的角度向大家全面介紹一下CD-R光盤家族的成員,供大家在選購時作參考。
上傳時間: 2014-07-27
上傳用戶:tb_6877751
Linux* Base Driver for the Attansic(R) L1 Gigabit Ethernet Adapter
標簽: Attansic Ethernet Adapter Gigabit
上傳時間: 2014-06-14
上傳用戶:1583060504
The source code samples for chapter 2, 4, 6, and 8 are contained in the EvenChapters project. Those chapters all reference various aspects of this single project. The source code for the BullsEye control (chapter 10 example) is in the BullEyeCtl project. The source samples for the other chapters are provided in the Chapter XX sub-directories.
標簽: EvenChapters contained chapter samples
上傳時間: 2015-09-07
上傳用戶:yuchunhai1990
Kohonen network project適合從事該領域的學生學習
上傳時間: 2015-09-09
上傳用戶:jcljkh
This the project README file. Here, you should describe your project. Tell the reader (someone who does not know anything about this project) all he/she needs to know.
標簽: project the describe someone
上傳時間: 2013-12-22
上傳用戶:CSUSheep
network Programming Project 用NetBeans寫的有界面的PING命令程序,程序中用的線程.
標簽: Programming NetBeans network Project
上傳時間: 2015-09-14
上傳用戶:GHF
skiplist JAVA程序,數據結構課的Project
上傳時間: 2014-01-14
上傳用戶:ynzfm
3rd Generation Partnership Project Specification of the SIM Application Toolkit for the Subscriber Identity Module - Mobile Equipment (SIM - ME) interface (Release 4)
標簽: Specification Application Partnership Generation
上傳時間: 2015-09-17
上傳用戶:caozhizhi
問題描述: 設R={r1,r2,…,rn}是要進行排列的n個元素,其中r1,r2,…,rn可能相同。試設計一個算法,列出R的所有不同排列。 編程任務: 給定以及待排列的個元素。計算出這個元素的所有不同排列。
上傳時間: 2015-09-17
上傳用戶:xuan‘nian