Welcome![Sign In][Sign Up]
Location:
Search - DFS.cpp

Search list

[Other resourceBFS_DFS_Astar

Description: 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.
Platform: | Size: 2984 | Author: bo | Hits:

[Mathimatics-Numerical algorithmsdfs

Description: 深度优先搜索算法解决八码难题-depth-first search algorithm to solve eight problems yards
Platform: | Size: 2048 | Author: 高兵 | Hits:

[Data structsdfs

Description: 数据结构里的dfs算法,包括递归与非递归。用vc6.0编写-data structure, the dfs algorithms, including recursive and non- recursive. Prepared with vc6.0
Platform: | Size: 1024 | Author: 叶芦芦 | Hits:

[Data structs图论

Description: BFS、DFS、有向图、无向图中的各种算法的实现,可以自动生成图形。-BFS, DFS, to the map, no map to the realization of the algorithm can be automatically generated graphics.
Platform: | Size: 119808 | Author: 李想 | Hits:

[AI-NN-PRBFS_DFS_Astar

Description: 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 BFS, DFS and A* To compile this project, use the following command: g++-O search main.cppThen you can run it:./SearchThe input is loaded from a input file in.txtHere 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.
Platform: | Size: 3072 | Author: bo | Hits:

[Data structstu-matrix

Description: 图可以采用邻接矩阵、邻接表等多种方式来存储,本程序实现图的邻接矩阵存储-Chart can be used adjacency matrix, adjacency lists to store a variety of ways, this program graph adjacency matrix storage
Platform: | Size: 1024 | Author: youjing | Hits:

[Mathimatics-Numerical algorithmsDFS.cpp

Description: This code do depth first search algorithm. Adjacency matrix symbolize every edge in the graph, for example adj[i][j]=1 is an edge from i to j, i and j are vertices.
Platform: | Size: 1024 | Author: Dennis | Hits:

[Mathimatics-Numerical algorithmsDFS-with-edges.cpp

Description: This code do Depth First Search and marks every edge as Back Edge, Forward Edge, Tree edge and Cross edge.
Platform: | Size: 1024 | Author: Dennis | Hits:

[OS programDFStu.cpp

Description: 这份代码是一个深度搜索图的实例代码,但是效率不是很高,只能实现深度优先的遍历-The code is written for DFS to search for the answers! enjoy it please everybody.I use this stage at the first time.
Platform: | Size: 1024 | Author: ARTHUR FU | Hits:

[Data structsDAG.cpp

Description: DFS algorithm on graphs.
Platform: | Size: 1024 | Author: forall360 | Hits:

[Data structsDFS.cpp

Description: Depth first search algorithm on graphs.
Platform: | Size: 1024 | Author: forall360 | Hits:

[Data structsdata_struct

Description: 自己实现的重要的数据结构以及算法(包括dfs,bfs,huffman code,kmp,dij等)。每一个.cpp或.c文件都是一个可直接运行的程序。-Important data structures and algorithms to achieve their own (including dfs, bfs, huffman code, kmp, dij, etc.). Every one. Cpp or. C file is a program can be run directly.
Platform: | Size: 46080 | Author: 欧龙崎 | Hits:

CodeBus www.codebus.net