Abstract
For \(n\ge 4\), the \((n^2-1)\)-Puzzle is a generalization of the well known 15-Puzzle. Ratner et al. showed that finding a sequence of moves of minimum length for the \((n^2-1)\)-Puzzle is NP-hard, and many researches have been devoted to it. For the \((n^2-1)\)-Puzzle, a real-time algorithm is proposed by Parberry, which completes the puzzle in at most \(5n^3 - 9n^2/2 + 19n/2 -89\) moves and needs O(1) computation time per move, although there is no guarantee that the number of moves is minimum. In this paper, we follow the direction of the research by Parberry, and present an algorithm, which is obtained by modifying Parberry’s algorithm and giving a tight analysis. The number of moves by the new algorithm is smaller; it needs at most \(5n^3 -21n^2/2 + 35n/2 - 141\) moves.
This work was supported by JSPS KAKENHI Grant Number 25330018.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Bhasin, H., Singla, N.: Genetic based algorithm for N-puzzle problem. Int. J. Computer Applications 51(22), 44–50 (2012)
Brüngger, A., Marzetta, A., Fukuda, K., Nievegelt, J.: The parallel search bench ZRAM and its applications. Annals of Operations Research 90, 45–63 (1999)
Johnson, W., Story, W.E.: Notes on the “15” puzzle. American Journal of Mathematics 2(4), 397–404 (1879)
Levitin A., Papalaskari, M.-A.: Using puzzles in teaching algorithms. In: Proc. SIGCSE 2002, pp. 292–296 (2002)
Parberry, I.: A real-time algorithm for the (\(n^2-1\))-puzzle. Information Processing Letters 56, 23–28 (1995)
Ratner, D., Warmuth, M.: The \((n^2-1)\)-puzzle and related relocation problems. J. Symbolic Computation 10, 111–137 (1990)
Reinefeld, A.: Complete solution of the eight-puzzle and the benefit of node ordering in IDA*. In: Proc. Int. Joint Conf. Artificial Intelligence, pp. 248–253 (1993)
Schofield, P.D.A.: Complete solution of the eight puzzle. Machine Intelligence 1, 125–133 (1967)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this paper
Cite this paper
Utsunomiya, K., Asahiro, Y. (2015). An Improvement of the Greedy Algorithm for the \((n^2-1)\)-Puzzle. In: Gervasi, O., et al. Computational Science and Its Applications -- ICCSA 2015. ICCSA 2015. Lecture Notes in Computer Science(), vol 9156. Springer, Cham. https://doi.org/10.1007/978-3-319-21407-8_33
Download citation
DOI: https://doi.org/10.1007/978-3-319-21407-8_33
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-21406-1
Online ISBN: 978-3-319-21407-8
eBook Packages: Computer ScienceComputer Science (R0)