Code Monkey home page Code Monkey logo

2dmazesolver's Introduction

2D Maze Solver

CSE4082 Artificial Intelligence Course Project (Marmara University)

This program solves 2D maze using various uninformed and informed (heuristic) search strategies. It takes the maze structure as input file and performs selected search algorithm. The cost of the solution found, the solution path itself and the list of expanded nodes are given as output. Thus, the results and differences of algorithms can be compared. Also, a GUI is implemented that visualizes the search steps.

Details of the Program

- Input File

The first line of the input file consists of 2 numbers, that are mapped to row and column indexes, representing the dimensions of the maze. The remaining lines consist of 1 letter and 2 numbers. The letter indicates the expression in the line(the type of wall or square), while the numbers indicate the row and column indexes, respectively.

Maze Structure Input Letter
v: vertical walls
h: horizontal walls
s: the starting square
t: trap squares
g: goal squares

- Execution

start_screen
When the program is run, the algorithm must be selected. The program consists of following algorithms:

  1. Depth First Search
  2. Breadth First Search
  3. Iterative Deepening
  4. Uniform Cost Search
  5. Greedy Best First Search
  6. A* Heuristic Search

For Greedy Best First Search and A* Heuristic Search,city block distance (Manhattan distance) is used as an admissible heuristic.

- Example Output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.