Skip to content

The program will compute a route between the origin city and the destination city, and will print out both the length of the route and the list of all cities that lie on that route. It should also display the number of nodes expanded and nodes generated.

Notifications You must be signed in to change notification settings

Ahaan-R/Informed-and-Uninformed-Search-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation


Language Used: Python

The code contains mainly two different functions for search:
> Uninformed search using a Uniform Cost Search.
> Informed search using a* search.

Code finds a route if present and if route is not present it displays distance as infinity.

To run the code type:

python find_route.py input_file source destination heuristic_file (for informed search)

python find_route.py input_file source destination (for uninformed search)

About

The program will compute a route between the origin city and the destination city, and will print out both the length of the route and the list of all cities that lie on that route. It should also display the number of nodes expanded and nodes generated.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages