I implement whole program using python programming language. In “Programming_Assignment_1_Part1.py” I implement only BFS and in “Programming_Assignment_1_Part2” we implement BFS, IDS and A* search.
These python programs can be run from any python IDE only using the command line argument. To execute Breadth First Search we will give “BFS” command as algorithm name. To execute Depth First Search we will give “DFS” command as algorithm name. To execute A* Search we will give “A*” command as algorithm name. For Spyder we use this.
Format: runfile('Path', args='input_file search_algorithm_name')
Example: runfile('.../Programming_Assignment_1_Part2.py', args='map1.txt BFS')
Example: runfile('.../Programming_Assignment_1_Part2.py', args='map1.txt IDS')
Example: runfile('.../Programming_Assignment_1_Part2.py', args='map1.txt A*')
To run our executable form any computer, just make sure that executable and input map text file are in same folder.
Format : Executable_name.exe input_file search_algorithm_name
Example : Programming_Assignment_1_Part2.exe map1.txt BFS
Example : Programming_Assignment_1_Part2.exe map1.txt IDS
Example : Programming_Assignment_1_Part2.exe map1.txt A*
Example : Programming_Assignment_1_Part2.exe map5.txt BFS
Example : Programming_Assignment_1_Part2.exe map5.txt IDS
Example : Programming_Assignment_1_Part2.exe map5.txt A*