Skip to main content

Transition Graph Analysis of Sliding Tile Puzzle Heuristics

  • Chapter
  • First Online:
Recent Advances in Soft Computing and Cybernetics

Part of the book series: Studies in Fuzziness and Soft Computing ((STUDFUZZ,volume 403))

  • 335 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 139.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 179.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 179.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Arfaee, S.J., Zilles, S., Holte, R.C.: Learning heuristic functions for large state spaces. Artif. Intell. 175(16–17), 2075–2098 (2011)

    Article  MathSciNet  Google Scholar 

  2. Blum, A.L., Langford, J.C.: Probabilistic planning in the graphplan framework. In European Conference on Planning. Springer, Berlin, Heidelberg, pp. 319–332 (1999)

    Google Scholar 

  3. Cohen, E., Beck, J.C.: Problem difficulty and the phase transition in heuristic search. In: AAAI, pp. 780–786 (2017)

    Google Scholar 

  4. 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)

    Google Scholar 

  5. 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)

    Google Scholar 

  6. Gaschnig, J.: Exactly how good are heuristics?: Toward a realistic predictive theory of best-first search. IJCAI 5, 434–441 (1977)

    Google Scholar 

  7. 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)

    Google Scholar 

  8. 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)

    Google Scholar 

  9. Johnson, W.W.: Notes on the ‘15 Puzzle. I. Amer. J. Math. 2, 397–399 (1879)

    Article  MathSciNet  Google Scholar 

  10. 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)

    Google Scholar 

  11. 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)

    Google Scholar 

  12. Nguyen, X., Kambhampati, S.: Extracting effective and admissible state space heuristics from the planning graph. In: AAAI/IAAI, pp. 798–805 (2000)

    Google Scholar 

  13. Nishimura, N.: Introduction to reconfiguration. Algorithms 11(4), 52 (2018)

    Article  MathSciNet  Google Scholar 

  14. Pizlo, Z., Li, Z.: Solving combinatorial problems: The 15-puzzle. Memory Cognit. 33(6), 1069–1084 (2005)

    Article  Google Scholar 

  15. Ratner, D., Warmuth, M.: The (n2–1)-puzzle and related relocation problems. J. Symbol. Comput. 10(2), 111–137 (1990)

    Article  Google Scholar 

  16. 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)

    Google Scholar 

  17. Russell, S., Norvig, P.: Solving problems by searching. In: Artificial Intelligence: A Modern Approach, pp. 65–123 (2008)

    Google Scholar 

  18. Slocum, J., Sonneveld, D.: The 15 puzzle book: how it drove the world crazy. Slocum Puzzle Foundations (2006)

    Google Scholar 

  19. Spaans, R.G.: Improving sliding-block puzzle solving using meta-level reasoning. Master’s thesis, Institutt for datateknikk og informasjonsvitenskap (2010)

    Google Scholar 

  20. 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

  21. Story, W.E.: Notes on the ‘15 Puzzle. II. Amer. J. Math. 2, 399–404 (1879)

    MathSciNet  MATH  Google Scholar 

  22. Swan, J.: Harmonic analysis and resynthesis of sliding-tile puzzle heuristics. In: IEEE Congress on Evolutionary Computation (CEC). IEEE, pp. 516–524 (2017)

    Google Scholar 

  23. 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)

    Article  Google Scholar 

  24. Wilt, C., Ruml, W.: Effective heuristics for suboptimal best-first search. J. Artif. Intell. Res. 57, 273–306 (2016)

    Article  MathSciNet  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Iveta Dirgová Luptáková .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics