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
SMS傳送Sourcode,compiler with C,AT COMMAND
标签: Sourcode compiler COMMAND with
上传时间: 2015-09-07
上传用户:libinxny
avs decoder sources, added a COMMAND line sample
标签: decoder COMMAND sources sample
上传时间: 2014-01-26
上传用户:familiarsmile
Community中的程序,由Tom Irvine编制的。它的使用方法:在Matlab COMMAND Window中输入 >>zoomfft 将显示出要求输入...我是新手,请教个问题:通过FFT可求出所分析信号的实部、虚部。也可以据此求出模。那么在频谱分析中用的是实部还是...
标签: Community COMMAND zoomfft Irvine
上传时间: 2013-12-30
上传用户:GavinNeko
Community中的程序,由Tom Irvine编制的。它的使用方法:在Matlab COMMAND Window中输入 >>zoomfft 将显示出要求输入...我是新手,请教个问题:通过FFT可求出所分析信号的实部、虚部。也可以据此求出模。那么在频谱分析中用的是实部还是...
标签: Community COMMAND zoomfft Irvine
上传时间: 2015-10-02
上传用户:frank1234
Community中的程序,由Tom Irvine编制的。它的使用方法:在Matlab COMMAND Window中输入 >>zoomfft 将显示出要求输入...我是新手,请教个问题:通过FFT可求出所分析信号的实部、虚部。也可以据此求出模。那么在频谱分析中用的是实部还是...
标签: Community COMMAND zoomfft Irvine
上传时间: 2015-10-02
上传用户:fandeshun
scsi COMMAND readtoc 的总结
上传时间: 2013-12-06
上传用户:asasasas
change passwd_man linux COMMAND
标签: passwd_man COMMAND change linux
上传时间: 2013-12-15
上传用户:lanjisu111
简单的会议议程系统,展示了COMMAND 模式的应用
上传时间: 2015-11-24
上传用户:yepeng139
这个代码生成工具是针对java COMMAND framework(简称jcf)快速生成增删改查代码
标签: framework COMMAND java jcf
上传时间: 2015-11-30
上传用户:kristycreasy