Algorithms (Jul 2015)

Solving the (n2 − 1)-Puzzle with 8/3 n3 Expected Moves

  • Ian Parberry

DOI
https://doi.org/10.3390/a8030459
Journal volume & issue
Vol. 8, no. 3
pp. 459 – 465

Abstract

Read online

It is shown that the greedy algorithm for the \((n^2-1)\)-puzzle makes \(\tfrac{8}{3}n^3 +O(n^2)\) expected moves. This analysis is verified experimentally on 10,000 random instances each of the \((n^2-1)\)-puzzle for \(4 \leq n \leq 200\).

Keywords