Skip to content

The project was about to find all the possible states of the 8-Puzzle starting from the given initial state, keeping in mind, the states should be unique (no repetitions). After that use the brute force search algorithm (BFS) to find the path to reach the goal state using the possible states of 8-puzzle.

Notifications You must be signed in to change notification settings

rvnandwani/ENPM661-P1-8-Puzzle-Implementation-using-brute-force-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Problem Statement :-

Implement a 8-puzzle solution i.e. path from
Temp ----------> Temp
by using brute force search algorithm (BFS).

Instructions to run the code

  1. Input must be given in form of a matrix where number 0 represents empty cell
  2. Enter the initial node row wise with a space between each element of the row and all elements must be either (0,1,2,3,4,5,6,7,8) without any repetition and press enter key after inserting every row
  3. Check puzzle solvablity I used this algorithm - https://www.geeksforgeeks.org/check-instance-8-puzzle-solvable/

About

The project was about to find all the possible states of the 8-Puzzle starting from the given initial state, keeping in mind, the states should be unique (no repetitions). After that use the brute force search algorithm (BFS) to find the path to reach the goal state using the possible states of 8-puzzle.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages