Git Product home page Git Product logo

15puzzle's Introduction

15Puzzle

The project was done for unviersity Artificial Inteligence and Expert Systems course

The given problem of finding solution to solve the puzzle had to be achieved with different strategies:

  • BFS (Breadth-First Search)
  • DFS (Depth-First Search)
  • IDDFS (Iterative Deepening Depth-First Search)
  • Best-first search
  • A*
  • SMA* (Simplified Memory Bounded A*)

Some search algorithms require an additional heuristcs to work. The following has been implemented:

  • Hamming distance
  • Manhattan distance
  • Hamming distance with weights

Input

In the first line of standard input two integer values R C are given: , row count and column count respectively, defining frame size. In each subsequent R lines of standard input contains C space separated integer values describing a piece in the puzzle. Value 0 denotes empty space in the given frame.

Output

If the solution was found a list of moves is returned

Viewer

An additional program to visualize process of solving a puzzle step by step

15puzzle's People

Contributors

ssslimer avatar revan1899 avatar

Watchers

James Cloos avatar  avatar

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.