Skip to content

Multi-Heuristic A* Algorithms (IMHA and SMHA) for N-queens problem

Notifications You must be signed in to change notification settings

cnoren/Multi-Heuristic-AStar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Multi-Heuristic-AStar

Multi-Heuristic A* Algorithms (IMHA and SMHA) for N-queens problem

Heuristic usage and calls to imha and smha are internal to code.

New problem domain can be implemented with new planner and state, but imha should be updated to reflect the possibility of reaching same state with lower cost within a given Open,i queue.

N-Queens Problem: Fill an NxN grid columnwise with N queens such that they do not attack each other (share diagonal, column, or row).

A* setting: give heuristic value to each state (valid placement of some number of queens on the board). Action takes a state with x queens placed in columns 0 .. x-1, and places a queen in column x.

-n number of queens

-t experiment to run

> python mhastar.py -n 10 -t 0

About

Multi-Heuristic A* Algorithms (IMHA and SMHA) for N-queens problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%