Giter Site home page Giter Site logo

8-puzzle-solver's Introduction

This code solves the 8-Puzzle problem using various kinds of searches.
We have a start state and a goal state for the 8-Puzzle and we use all the following 9 search strategies on it to reach the goal state.

This code has following searches:
1-> Brute Force DFS
2->Brute Force BFS
3->Iterative Depth First Search
4->Greedy Best First Search using Manhatten Heuristic
5->Greedy Best First Search using Out of Place Tile Heuristic
6->A Star Search using Manhatten Heuristic
7->A Star Search using Out of Place Tile Heuristic
8->IDA Star Search using Manhatten Heuristic
9->IDA Star Search using Out of Place Heuristic

The programs returns the time used, the total number of nodes visited, ram used and other statistics to help compare various search strategies and determine the best one.

The program can be run using command python search.py
Also, basic user interactivity has been provided and three sample inputs have been included in the code to check the results.

8-puzzle-solver's People

Contributors

mragankyadav avatar

Watchers

James Cloos avatar

8-puzzle-solver's Issues

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.