Abstract
Sliding tile puzzle or n-puzzle is a standard problem for solving a game by a tree search algorithm such as A*, involving heuristics. A typical example of such a puzzle is 15-puzzle that consists of a square frame containing 4 × 4 numbered square tiles, one of which is missing. The goal is to position the tiles in correct order by sliding moves of the tiles, which use the empty space. The problem is NP-complete and for puzzles involving a greater number of tiles, the search space is too big for standard tree search algorithms. This type of puzzles is therefore quite often used for analysis and testing of heuristics. This paper aims to obtain a better characterization of popular heuristics used for this kind of problems by analysis of the transition graph of admissible moves. Our analysis shows, that both Manhattan distance and Tiles out of place heuristics work properly only near the goal, otherwise the information they provide is next to useless for a single move, IDA* with these heuristics works mainly due to reduction of branching of the search tree, for more consecutive moves.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Arfaee, S.J., Zilles, S., Holte, R.C.: Learning heuristic functions for large state spaces. Artif. Intell. 175(16–17), 2075–2098 (2011)
Blum, A.L., Langford, J.C.: Probabilistic planning in the graphplan framework. In European Conference on Planning. Springer, Berlin, Heidelberg, pp. 319–332 (1999)
Cohen, E., Beck, J.C.: Problem difficulty and the phase transition in heuristic search. In: AAAI, pp. 780–786 (2017)
Cooperman, G., Finkelstein, L., Sarawagi, N.: Applications of Cayley graphs. In International Symposium on Applied Algebra, Algebraic Algorithms, and Error-Correcting Codes. Springer, Berlin, pp. 367–378 (1990)
Felner, A.: Early work on optimization-based heuristics for the sliding tile puzzle. In: Workshops at the Twenty-Ninth AAAI Conf. on Artificial Intelligence, pp. 32–38 (2015)
Gaschnig, J.: Exactly how good are heuristics?: Toward a realistic predictive theory of best-first search. IJCAI 5, 434–441 (1977)
Hauptman, A., Elyasaf, A., Sipper, M., Karmon, A.: GP-Rush: using genetic programming to evolve solvers for the Rush Hour puzzle. In: Proceedings of the 11th Annual Conference on Genetic and Evolutionary Computation ACM, pp. 955–962 (2009)
Igwe, K., Pillay, N., Rae, C.: Solving the 8-puzzle problem using genetic programming. In: Proceedings of the South African Institute for Computer Scientists and Information Technologists Conference. ACM, pp. 64–67 (2013)
Johnson, W.W.: Notes on the ‘15 Puzzle. I. Amer. J. Math. 2, 397–399 (1879)
Mathew, K., Tabassum, M.: Experimental comparison of uninformed and heuristic AI algorithms for N Puzzle and 8 Queen puzzle solution. Int. J. Dig. Inf. Wireless Commun. (IJDIWC) 4(1), 143–154 (2014)
Mishra, A.K., Siddalingaswamy, P.C.: Analysis of tree based search techniques for solving 8-puzzle problem. In: Innovations in Power and Advanced Computing Technologies (i-PACT), 2017. IEEE, pp. 1–5 (2017)
Nguyen, X., Kambhampati, S.: Extracting effective and admissible state space heuristics from the planning graph. In: AAAI/IAAI, pp. 798–805 (2000)
Nishimura, N.: Introduction to reconfiguration. Algorithms 11(4), 52 (2018)
Pizlo, Z., Li, Z.: Solving combinatorial problems: The 15-puzzle. Memory Cognit. 33(6), 1069–1084 (2005)
Ratner, D., Warmuth, M.: The (n2–1)-puzzle and related relocation problems. J. Symbol. Comput. 10(2), 111–137 (1990)
Reinefeld, A.: Complete solution of the eight-puzzle and the benefit of node ordering in IDA*. In: International Joint Conference on Artificial Intelligence, pp. 248–253 (1993)
Russell, S., Norvig, P.: Solving problems by searching. In: Artificial Intelligence: A Modern Approach, pp. 65–123 (2008)
Slocum, J., Sonneveld, D.: The 15 puzzle book: how it drove the world crazy. Slocum Puzzle Foundations (2006)
Spaans, R.G.: Improving sliding-block puzzle solving using meta-level reasoning. Master’s thesis, Institutt for datateknikk og informasjonsvitenskap (2010)
Spaans, R.G.: Solving sliding-block puzzles. Specialization project at NTNU (2009). https://www.pvv.org/~spaans/spec-cs.pdf. Last visited 15.5.2018
Story, W.E.: Notes on the ‘15 Puzzle. II. Amer. J. Math. 2, 399–404 (1879)
Swan, J.: Harmonic analysis and resynthesis of sliding-tile puzzle heuristics. In: IEEE Congress on Evolutionary Computation (CEC). IEEE, pp. 516–524 (2017)
Wang, G., Li, R.: DSolving: a novel and efficient intelligent algorithm for large-scale sliding puzzles. J. Exp. Theor. Artif. Intell. 29(4), 809–822 (2017)
Wilt, C., Ruml, W.: Effective heuristics for suboptimal best-first search. J. Artif. Intell. Res. 57, 273–306 (2016)
Acknowledgements
The work was in part supported by the grant APVV-17-0116 Algorithm of collective intelligence: Interdisciplinary study of swarming behaviour in bats, and the grant VEGA 1/0145/18 Optimization of network security by computational intelligence.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Dirgová Luptáková, I., Pospíchal, J. (2021). Transition Graph Analysis of Sliding Tile Puzzle Heuristics. In: Matoušek, R., Kůdela, J. (eds) Recent Advances in Soft Computing and Cybernetics. Studies in Fuzziness and Soft Computing, vol 403. Springer, Cham. https://doi.org/10.1007/978-3-030-61659-5_13
Download citation
DOI: https://doi.org/10.1007/978-3-030-61659-5_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-61658-8
Online ISBN: 978-3-030-61659-5
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)