Sign inSubmit
ArticleMetrics
Research Article · Free to read · Published 30 November 2009

Solving Square Jigsaw Puzzles Using Dynamic Programming and the Hungarian Procedure

Naif Alajlan1

American Journal of Applied Sciences, Volume 6, Issue 11, pp. 1941–1947 · doi.org/10.3844/ajassp.2009.1941.1947

7,690 accesses6,600 downloads28 citations (Crossref)Metrics
Cite Check for updates

Abstract

Problem statement: To design, implement, and test an algorithm for solving the square jigsaw puzzle problem, which has many applications in image processing, pattern recognition, and computer vision such as restoration of archeological artifacts and image descrambling. Approach: The algorithm used the gray level profiles of border pixels for local matching of the puzzle pieces, which was performed using dynamic programming to facilitate non-rigid alignment of pixels of two gray level profiles. Unlike the classical best-first search, the algorithm simultaneously located the neighbors of a puzzle piece during the search using the well-known Hungarian procedure, which is an optimal assignment procedure. To improve the search for a global solution, every puzzle piece was considered as starting piece at various starting locations. Results: Experiments using four well-known images demonstrated the effectiveness of the proposed approach over the classical piece-by-piece matching approach. The performance evaluation was based on a new precision performance measure. For all four test images, the proposed algorithm achieved 100% precision rate for puzzles up to 8×8. Conclusion: The proposed search mechanism based on simultaneous allocation of puzzle pieces using the Hungarian procedure provided better performance than piece-by-piece used in classical methods.

Licence and reuse

Free to read. This article carries the publisher’s copyright, as printed on it: © 2009 Science Publications. It is free to read; ask us before reusing it.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Alajlan, N. (2009). Solving Square Jigsaw Puzzles Using Dynamic Programming and the Hungarian Procedure. American Journal of Applied Sciences, 6(11), 1941–1947. https://doi.org/10.3844/ajassp.2009.1941.1947

Licence
© Science Publications
Issue
Volume 6, Issue 11
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Solving Square Jigsaw Puzzles Using Dynamic Programming and the Hungarian ProcedureAmerican Journal of Applied Sciences · Volume 6, Issue 11 · pp. 1941–1947 · © Science PublicationsDownload