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
實現(xiàn)一個類,描述二維平面的直線Line。 描述屬性:私有屬性 直線所通過的點:Point p; 直線的斜率:double m 實現(xiàn)方法: 直線的構建; 返回直線的兩個屬性; 返回直線在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 很方便的進行網(wǎng)格加密和稀疏化 * Multi-mesh operation supported 支持多套網(wǎng)格操作 需要有一定的有限元基礎和C++語言基礎,最好在linux平臺下用。 http://162.105.68.168/AFEPack/
標簽: element construction Flexible template
上傳時間: 2014-11-21
上傳用戶:qq1604324866