The 8-queen Problem is solved with 3 different variants of the Hill Climbing Algorithm (Steepest Ascent, First Choice and Hill Climbing with Random Restart) and with Simulated Annealing. The initial checkered page (queen cells are showed with 1) or its dimention is passed to the methods when necessary. As in most Local Search Algorithms, we have used a complete-sate formulation of the problem. Meaning that in each state, all of the 8 queens are in the checkered page, and every column has exactly one queen in it. The queens are then allowed to move in their own column, making 8*7 successor for each state.
-
Notifications
You must be signed in to change notification settings - Fork 2
nikashahabi/8queen-problem-solve-with-hill-climbing-and-simulated-annealing
About
Using two powerful local search algorithms to find a solution for the popular 8-queen problem.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published