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.
標(biāo)簽: Implemented following compile command
上傳時(shí)間: 2014-01-01
上傳用戶:lhc9102
隨著微電子技術(shù)和超大規(guī)模集成電路技術(shù)的發(fā)展,單片微型計(jì)算機(jī)以其體積小、性價(jià)比高、功能強(qiáng)、可靠性高等獨(dú)有的特點(diǎn),在各個(gè)領(lǐng)域(如工業(yè)控制、家電產(chǎn)品、汽車(chē)電子、通信、智能儀器儀表)得到了廣泛的應(yīng)用。學(xué)習(xí)、使用單片機(jī)的人越來(lái)越多,而生產(chǎn)單片機(jī)的廠家很多,單片機(jī)種類(lèi)繁雜,不知如何選擇。據(jù)統(tǒng)計(jì),八位單片機(jī)占全球單片機(jī)銷(xiāo)量的65%。在八位單片機(jī)中,Intel公司的8051單片機(jī)內(nèi)核已成為8位單片機(jī)事實(shí)上的標(biāo)準(zhǔn)。因此,對(duì)初學(xué)者而言,選擇8051單片機(jī)來(lái)學(xué)習(xí)不失為明智的選擇。 學(xué)習(xí)單片機(jī),除了搞清單片機(jī)內(nèi)部功能、存儲(chǔ)空間分配及I/O接口外,還應(yīng)掌握其指令系統(tǒng)。MCS-51共有111條指令,現(xiàn)介紹我們總結(jié)出的快速記憶MCS-51指令的方法,供大家參考。
標(biāo)簽: 電子技術(shù) 大規(guī)模 發(fā)展 集成
上傳時(shí)間: 2015-09-05
上傳用戶:bakdesec
A book about Java I/O
上傳時(shí)間: 2015-09-05
上傳用戶:秦莞爾w
基于nRF9E5的無(wú)線通訊程序,該程序使用LM35做溫度檢測(cè),并通過(guò)915M無(wú)線頻率向外發(fā)射.適合做無(wú)線通訊的應(yīng)用.
標(biāo)簽: nRF9E5 915M 無(wú)線通訊 程序
上傳時(shí)間: 2015-09-05
上傳用戶:dyctj
GSM信道仿真源程序,包括各個(gè)模塊(交織器,卷及碼,外編碼)和全信道程序
上傳時(shí)間: 2014-11-17
上傳用戶:sammi
在S3C2410平臺(tái)上做視頻顯示源碼,可以顯示圖片,觸碰螢?zāi)粫?huì)顯示座標(biāo)等
標(biāo)簽: S3C2410
上傳時(shí)間: 2014-01-25
上傳用戶:戀天使569
TMS320VC55x 音頻I/O工程文件,可以用來(lái)測(cè)試語(yǔ)音的錄入和音頻信號(hào)的輸出。
上傳時(shí)間: 2013-12-30
上傳用戶:6546544
非常實(shí)用,方便編程----- 預(yù)處理命令 操作符優(yōu)先級(jí) 轉(zhuǎn)義字符 ASCII碼表 基本數(shù)據(jù)類(lèi)型 關(guān)鍵字 C++ I/O C++ Strings C++ 標(biāo)準(zhǔn)模板庫(kù) 標(biāo)準(zhǔn) C 庫(kù)
上傳時(shí)間: 2013-12-14
上傳用戶:磊子226
在C++ builder 平臺(tái)上利用AMpciI/O卡控制步進(jìn)電機(jī)!
標(biāo)簽: builder AMpciI 控制 步進(jìn)電機(jī)
上傳時(shí)間: 2014-01-17
上傳用戶:nanshan
軟件質(zhì)量是被大多數(shù)程序員掛在嘴上而不是放在心上的東西! 除了完全外行和真正的編程高手外,初讀本書(shū),你最先的感受將是驚慌:“哇!我以前捏造的C++/C程序怎么會(huì)有那么多的毛病?” 別難過(guò),作者只不過(guò)比你早幾年、多幾次驚慌而已。 請(qǐng)花一兩個(gè)小時(shí)認(rèn)真閱讀這本百頁(yè)經(jīng)書(shū),你將會(huì)獲益匪淺,這是前面N-1個(gè)讀者的建議。
上傳時(shí)間: 2014-01-11
上傳用戶:shinesyh
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1