Skip to content

vansh900/N-PUZZLE-PROBLEM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

N-PUZZLE-PROBLEM

Here in the source code , we will be taking the input n ( as size of the n* n matrix ) . After that we generate a start state n* n matrix and a goal state n* n matrix .

We will be computing the heuristic value dynamically as the number of differing cells in the current state matrix and goal state matrix. Our objective will be to try to minimise this heuristic value as much as possible using the following three algorithms :

  1. Simple Hill Climbing .

  2. Simple Hill Climbing with Random Restarts .

  3. Hill Climbing with Simulated Annealing .

We are applying these three algorithms ,in the same order as specified above , and we are displaying the maximum optimised heuristic value and the final state matrix .

We will also be telling whether goal state is achieved or not in each of these algorithms .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%