Skip to content

Complete Breadth-First Search of the Sliding Tile Puzzles

License

Notifications You must be signed in to change notification settings

lightln2/SlidingTilesSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Complete Breadth-First Search of the Sliding Tile Puzzles

The 4 x 4 and 8 x 2 Fifteen Sliding Tile Puzzles have over ten trillion states that can be reached from initial position. This program performs complete breadth-first search on them in single-tile and multi-tile move metric, and finds puzzle radius and width at all depths.

The algorithm is described in detail here. To achieve best possible performance, the program uses

Minimum requirements:

  • NVidia GPU card
  • 8TB free disk space
  • 16GB RAM

Running time is a few days, depending on the hardware available.

Results:

Single-tile moves

(OEIS A151944 sequence)

Cells Puzzle Radius
4 2 x 2 6
6 3 x 2 21
8 4 x 2 36
9 3 x 3 31
10 5 x 2 55
12 4 x 3 53
12 6 x 2 80
14 7 x 2 108
15 5 x 3 84
16 4 x 4 80
16 8 x 2 140

Multi-tile moves

Cells Puzzle Radius
4 2 x 2 6
6 3 x 2 20
8 4 x 2 25
9 3 x 3 24
10 5 x 2 36
12 4 x 3 33
12 6 x 2 41
14 7 x 2 52
15 5 x 3 44
16 4 x 4 43
16 8 x 2 57

License

About

Complete Breadth-First Search of the Sliding Tile Puzzles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages