Skip to content
Research Article Open access CC BY 4.0

A Comparative Study of Three Heuristic Functions Used to Solve the 8-Puzzle

Anca-Elena Iordan

Journal of Advances in Mathematics and Computer Science · pp. 1–18 · Published 15 Apr 2016

10.9734/BJMCS/2016/24467

Abstract

This paper introduces a new heuristic function with high efficiency for an optimum solving of the 8-puzzle, this one being the double of the Chebyshev distance. The comparative study is realized among this new heuristic (Chebyshev heuristic), the Hamming heuristic and the Manhattan heuristic using A* algorithm implemented in Java. The Chebyshev heuristic function is more informed than Hamming and Manhattan heuristics. This paper also presents the necessary stages in object oriented development of an interactive software dedicated to simulate the A* search algorithm for 8-puzzle. The modeling of the software is achieved through specific UML diagrams representing the phases of analysis, design and implementation, the system thus being described in a clear and practical manner. In order to confirm the obtained theoretical results which show that Chebyshev heuristic is more efficient, two performance criteria were used: space complexity and time complexity. The space complexity was measured by the number of generated nodes from the search tree, by the number of the expanded nodes and by the effective branching factor. The time complexity was measured by the running time. From the experimental results obtained by using the Chebyshev heuristic, improvements were observed regarding space and time complexity of A* algorithm versus Hamming and Manhattan heuristics.

Heuristic functions A* search algorithm performance evaluation java UML

Cited by 4

A Combined Mirror–EMG Robot-Assisted Therapy System for Lower Limb Rehabilitation

Florin Covaciu, Bogdan Gherman, Calin Vaida · Technologies · 2025

Comparative analysis of AI-based search algorithms in solving 8 puzzle problems

Ghaniyyat Bolanle Balogun, Daniel Ibisagba, Amos Bajeh · Bulletin of the National Research Centre · 2024

A Puzzle-Based Sequencing System for Logistics Items

Raji Alahmad, Kazuo Ishii · Logistics · 2021

Recent Trends in Solving the 8-Puzzle Problem

Y Swathi, Manoj Challa, Mahesh Kumar Jha · 2023 International Conference on Advances in Electronics, Communication, Computing and Intelligent Information Systems (ICAECIS) · 2023

Article metrics

Real usage data collected on this platform.

0

Page views

0

PDF downloads

0

Outbound clicks

4

Citations

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

No views recorded yet.

Traffic sources

Referring site, by host.

No traffic recorded yet.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.