On the Design of a Heuristic based on Artificial Neural Networks for the Near Optimal Solving of the (N2-1)-puzzle

This paper addresses optimal and near-optimal solving of the (N2–1)-puzzle using the A* search algorithm. We develop a novel heuristic based on artificial neural networks (ANNs) called ANN-distance that attempts to estimate the minimum number of moves necessary to reach the goal configuration of the puzzle. With a well trained ANN-distance heuristic, whose inputs are just the positions of the pebbles, we are able to achieve better accuracy of predictions than with conventional heuristics such as those derived from the Manhattan distance or pattern database heuristics. Though we cannot guarantee admissibility of ANN-distance, an experimental evaluation on random 15-puzzles shows that in most cases ANN-distance calculates the true minimum distance from the goal, and furthermore, A* search with the ANN-distance heuristic usually finds an optimal solution or a solution that is very close to the optimum. Moreover, the underlying neural network in ANN-distance consumes much less memory than a comparable pattern database.

[1]  Trevor Scott Standley Finding Optimal Solutions to Cooperative Pathfinding Problems , 2010, AAAI.

[2]  Gaël Varoquaux,et al.  The NumPy Array: A Structure for Efficient Numerical Computation , 2011, Computing in Science & Engineering.

[3]  R. E. Korf SLIDING-TILE PUZZLES AND RUBIK'S CUBE IN AL RESEARCH , 1999 .

[4]  Pavel Surynek,et al.  A novel approach to path planning for multiple robots in bi-connected graphs , 2009, 2009 IEEE International Conference on Robotics and Automation.

[5]  Richard M. Wilson,et al.  Graph puzzles, homotopy, and the alternating group☆ , 1974 .

[6]  Roni Stern,et al.  The increasing cost tree search for optimal multi-agent pathfinding , 2011, Artif. Intell..

[7]  Marco Gori,et al.  Likely-Admissible and Sub-Symbolic Heuristics , 2004, ECAI.

[8]  Manfred K. Warmuth,et al.  Finding a Shortest Solution for the N × N Extension of the 15-PUZZLE Is Intractable , 1986, AAAI.

[9]  Ian Parberry A Memory-Efficient Method for Fast Computation of Short 15-Puzzle Solutions , 2015, IEEE Transactions on Computational Intelligence and AI in Games.

[10]  Richard E. Korf,et al.  Compressed Pattern Databases , 2007, J. Artif. Intell. Res..

[11]  Richard E. Korf,et al.  Additive Pattern Database Heuristics , 2004, J. Artif. Intell. Res..

[12]  Geoffrey E. Hinton,et al.  Learning representations by back-propagating errors , 1986, Nature.

[13]  Jürgen Schmidhuber,et al.  Deep learning in neural networks: An overview , 2014, Neural Networks.

[14]  S. Hyakin,et al.  Neural Networks: A Comprehensive Foundation , 1994 .

[15]  Manfred K. Warmuth,et al.  NxN Puzzle and Related Relocation Problem , 1990, J. Symb. Comput..

[16]  Pavel Surynek,et al.  The joint movement of pebbles in solving the ($$N^2-1$$N2-1)-puzzle suboptimally and its applications in rule-based cooperative path-finding , 2016, Autonomous Agents and Multi-Agent Systems.

[17]  Geoffrey E. Hinton,et al.  Learning internal representations by error propagation , 1986 .

[18]  Jonathan Schaeffer,et al.  Learning from Multiple Heuristics , 2008, AAAI.

[19]  Nathan R. Sturtevant,et al.  Conflict-based search for optimal multi-agent pathfinding , 2012, Artif. Intell..

[20]  Erik D. Demaine,et al.  A simple proof that the $(n^2-1)$-puzzle is hard , 2018, Theor. Comput. Sci..

[21]  Ariel Felner,et al.  Solving the 24 Puzzle with Instance Dependent Pattern Databases , 2005, SARA.

[22]  David Tolpin,et al.  ICBS: The Improved Conflict-Based Search Algorithm for Multi-Agent Pathfinding , 2015, SOCS.

[23]  Richard E. Korf,et al.  Finding Optimal Solutions to the Twenty-Four Puzzle , 1996, AAAI/IAAI, Vol. 2.

[24]  Sandra Zilles,et al.  Learning heuristic functions for large state spaces , 2011, Artif. Intell..

[25]  Jerry Slocum,et al.  The 15 Puzzle , 2006 .

[26]  Jonathan Schaeffer,et al.  Efficiently Searching the 15-Puzzle , 1994 .

[27]  Kostas E. Bekris,et al.  Efficient and complete centralized multi-robot path planning , 2011, 2011 IEEE/RSJ International Conference on Intelligent Robots and Systems.

[28]  Ian Parberry Solving the (n2 - 1)-Puzzle with 8/3 n3 Expected Moves , 2015, Algorithms.

[29]  Nils J. Nilsson,et al.  A Formal Basis for the Heuristic Determination of Minimum Cost Paths , 1968, IEEE Trans. Syst. Sci. Cybern..