Skip to content

ispobock/N_puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N_puzzle

Two algorithms to solve N_puzzle problem.

8-puzzle-example

Requirements

  • Python3

Algorithms

  • BFS (Breadth-first search)
    • Can find an optimal solution, but time-consuming.
  • A* algorithm
    • An efficient heuristic algorithm.
    • Cost function:steps_from_start + manhattan_distance_to_goal

About

BFS & A* algorithm to solve N_puzzle problem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages