cs.AIAug 20, 2026

Class-Based Heuristic Selection for Solving the Flying Block Puzzle

Authors: Sanyar Ahmadi, Pedram Asadzadeh, Amanj Khorramian

Organizations: Faculty of Computer Engineering University of Tehran Tehran, Iran · Faculty of Computer Engineering K. N. Toosi University of Technology Tehran, Iran · Department of Electrical and Computer Engineering University of Kurdistan Sanandaj, Iran

Abstract

Heuristic search underlies planning in autonomous systems ranging from warehouse logistics to robotic navigation, yet generic heuristics fail to exploit the structural constraints that govern constrained spatial domains, causing search performance to degrade catastrophically on harder instances. We study this problem through the two-column Flying Block Puzzle, a rigorously NP-complete spatial planning microworld whose bottleneck geometry mirrors clearance-to-size constraints encountered in multi-agent path finding, autonomous vehicle navigation, and block relocation systems. We introduce the Class-Based Heuristic A* (CBHA*) algorithm, which integrates a General Move Constraint to capture minimum displacement costs when vacant units are scarce, a formal kinematic taxonomy partitioning the state space into seven mutually exclusive classes with provably admissible heuristics based on vacancy ratio and goal-piece geometry, and a class-conditional tie-breaking mechanism that dynamically switches between depth-priority and vertical-distance ordering to overcome f-value plateaus. Over 146 benchmark instances, CBHA* achieves a 93.4% success rate against 64% for Depth-Prioritized A*, 39% for Standard A*, and 17% for BFS, while reducing node expansions by 87.98% relative to Standard A* and sustaining an average effective branching factor of approximately 3, demonstrating that class-triggered adaptive heuristics constitute a principled mechanism for efficient spatial planning that generalizes structurally to physical constraint systems.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Bidirectional Incremental Generalized Hybrid A*

    May 28, 2026Sidharth Talia, Oren Salzman, Siddhartha SrinivasaKinodynamic Motion PlanningTree Search

  2. GONDOR to the Rescue: Satisficing Planning with Low Memory

    May 27, 2026Yonatan Vernik, Alexander Tuisov, Alexander ShleyfmanTree SearchMemory-Efficient Optimization

  3. FlexPath: Learned Semantic Path Priors for Image-Based Planning

    Jun 8, 2026Taehyoung Kim, Tim Schoenbrod, David Eckel +1Motion Planning