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
Predefined Style options define the style by setting several other options. If other options are also used, the placement of the predefined style option in the command line is important. If the predefined style option is placed first, the other options may override the predefined style. If placed last, the predefined style will override the other options. For example the style --style=ansi sets the option --brackets=break . If the command line specifies "--style=ansi --brackets=attach", the brackets will be attached and the style will not be ansi style. If the order on the command line is reversed to "--brackets=attach --style=ansi ", the brackets will be broken (ansi style) and the attach option will be ignored. For the options set by each style check the parseOption function in astyle_main.cpp
标签: options other Predefined setting
上传时间: 2014-12-21
上传用户:zhangliming420
The function conload takes a dataset and a model (PCA, PLS, PARAFAC etc.) and calculates congruence loadings which is the extension of correlation loadings to uncentered and multi-way models
标签: calculates congruence and function
上传时间: 2014-01-08
上传用户:sz_hjbf
AutoSummary contains the JWords Java Interface for WordNet, and you will need to edit the JWords configuration file to provide a path to the WordNet command line interface.
标签: JWords AutoSummary Interface the
上传时间: 2015-10-09
上传用户:lmeeworm
基于FPGA的I2C总线模拟,采用verilog HDL语言编写。- Based on the FPGA I2C main line simulation, uses verilog the HDL language compilation.
上传时间: 2013-12-13
上传用户:PresidentHuang
HDOJ ACM input:The input consists of T test cases. The number of test cases ) (T is given in the first line of the input. Each test case begins with a line containing an integer N , 1<=N<=200 , that represents the number of tables to move. Each of the following N lines contains two positive integers s and t, representing that a table is to move from room number s to room number t (each room number appears at most once in the N lines). From the N+3-rd line, the remaining test cases are listed in the same manner as above.
上传时间: 2015-10-18
上传用户:三人用菜
Welcome to the ASTA 3 Help Tutorials. These are documented tutorials that included new user jump start, to file sends to server techniques with non-database servers showing how to use Providers and ServerMethods. A Current version of these tutorials can always be found on line
标签: documented Tutorials tutorials included
上传时间: 2013-12-18
上传用户:gyq
实现一个类,描述二维平面的直线Line。 描述属性:私有属性 直线所通过的点:Point p; 直线的斜率:double m 实现方法: 直线的构建; 返回直线的两个属性; 返回直线在Y轴上的截距:yIntercept ; 判断两条直线是否相等; 显示直线的内容:y = mx + b isParallelTo(Line line2),判断本直线与直线line2是否平行; isPeroendicularTo(Line line2),判断本直线与直线line2是否垂直; translate(double dx, double dy),将直线向右移动dx单位,向上移动dy单位; rarate(double ta),将直线沿逆时针方向旋转ta度
标签:
上传时间: 2015-10-24
上传用户:Divine
This designs uses a Nios II system to demonstrate how to read from the SD card. The software reads WAV files from the SD card and plays it through the LINE OUT line. Simply put a SD card into the slot on the board and connect some speakers to the LINE OUT port.Preparing the SD card
标签: demonstrate software designs system
上传时间: 2015-10-26
上传用户:lizhen9880
主要特点 * Flexible finite element space construction based template element library 基于模板单元库灵活的构造有限元空间 * Convenient facilities to implement mesh adaption 很方便的进行网格加密和稀疏化 * Multi-mesh operation supported 支持多套网格操作 需要有一定的有限元基础和C++语言基础,最好在linux平台下用。 http://162.105.68.168/AFEPack/
标签: element construction Flexible template
上传时间: 2014-11-21
上传用户:qq1604324866