Skip to content

losedavidpb/city-search-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

City Search Problem

These project resolves City Search Problem using searching graph algorithms that optimitize the path cost from one city to another. We have included a graph whose nodes are Romania's cities in order to illustrate how the code works, but you can try other instances. Furthermore, the main execution of this program returns the minimum path for some cities from Romania, as well as how many nodes have been expanded during the search.

romania

Search Strategies

  • Breadth first graph search (BFS)
  • Depth first graph search (DFS)
  • Branch and bound graph search (BBS)
  • Branch and bound with subestimation graph search (BBES)

Comparison of visited and expanded nodes between BBS and BBES

In this comparative table you can see the number of expanded nodes obtained using the BBS and BBES techniques. Therefore, we can say that the paths chosen by both search algorithms are the same, except that the number of expanded nodes obtained by the branch and bound with underestimation are the smallest. This is because the second algorithm is an informed graph search while the other one does not know any information about destination.

Start Objective Result Visited Nodes BBS Visited Nodes BBES Expanded Nodes BBS Expanded Nodes BBES
A B A S F B 12 10 28 23
L P L M D C P 9 8 20 18
R H R P B U H 15 12 36 30
S A S A 4 2 9 4
C G G P B G 11 8 28 21

Authors

About

Implementations of searching graph algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages