Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.
/ 2D-Maze-Solver Public archive

This program solves a 2D maze with the help of several search algorithms like BFS, DFS, A* (A-Star) etc.

Notifications You must be signed in to change notification settings

EmreKumas/2D-Maze-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-Maze-Solver

This program solves a 2D maze with the help of several search algorithms like BFS, DFS, A* (A-Star) etc. It takes an input file containing different kinds of informations about the maze and perform each search algorithms, so you can compare and see the differences between each algorithm.

Details

The program firstly reads the input file you provided and creates the maze. The input file must contain the following informations:

  • Maze Size
  • Wall Locations
  • Trap Locations
  • Goal Locations
  • Start Location

img

After that, the program start to search the maze based upon the algorithms it contains. After the algorithm finishes, it prints out the cost of the solution found, the solution path itself and the list of expanded nodes. Here are the algorithms that is contained within the program itself:

  • Depth-First Search (DFS)
  • Breath-First Search (BFS)
  • Iterative-Deepening Search (IDS)
  • Uniform-Cost Search (UCS)
  • Greedy-Best-First Search (GBFS)
  • A-Star Search (A*)

Greedy-Best-First Search and A-Star Search algorithms use an admissible heuristic that is created within the program itself.