Skip to main content

Advertisement

Log in

An automatic solver for very large jigsaw puzzles using genetic algorithms

  • Published:
Genetic Programming and Evolvable Machines Aims and scope Submit manuscript

Abstract

In this paper we propose the first effective genetic algorithm (GA)-based jigsaw puzzle solver. We introduce a novel crossover procedure that merges two “parent” solutions to an improved “child” configuration by detecting, extracting, and combining correctly assembled puzzle segments. The solver proposed exhibits state-of-the-art performance, as far as handling previously attempted puzzles more accurately and efficiently, as well puzzle sizes that have not been attempted before. The extended experimental results provided in this paper include, among others, a thorough inspection of up to 30,745-piece puzzles (compared to previous attempts on 22,755-piece puzzles), using a considerably faster concurrent implementation of the algorithm. Furthermore, we explore the impact of different phases of the novel crossover operator by experimenting with several variants of the GA. Finally, we compare different fitness functions and their effect on the overall results of the GA-based solver.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  1. T. Altman, Solving the jigsaw puzzle problem in linear time. Appl. Artif. Intell. Int. J. 3(4), 453–462 (1989)

    Article  Google Scholar 

  2. B. Brown, C. Toler-Franklin, D. Nehab, M. Burns, D. Dobkin, A. Vlachopoulos, C. Doumas, S. Rusinkiewicz, T. Weyrich, A system for high-volume acquisition and matching of fresco fragments: Reassembling Theran wall paintings. ACM Trans. Graph. 27(3), 84 (2008)

    Article  Google Scholar 

  3. S. Cao, H. Liu, S. Yan, Automated assembly of shredded pieces from multiple photos, in IEEE International Conference on Multimedia and Expo (2010), pp. 358–363

  4. T. Cho, S. Avidan, W. Freeman, A probabilistic image jigsaw puzzle solver, in IEEE Conference on Computer Vision and Pattern Recognition (2010), pp. 183–190

  5. T. Cho, M. Butman, S. Avidan, W. Freeman, The patch transform and its applications to image editing, in IEEE Conference on Computer Vision and Pattern Recognition (2008), pp. 1–8

  6. A. Deever, A. Gallagher, Semi-automatic assembly of real cross-cut shredded documents, in IEEE International Conference on Image Processing (2012), pp. 233–236

  7. E. Demaine, M. Demaine, Jigsaw puzzles, edge matching, and polyomino packing: connections and complexity. Graphs Comb. 23, 195–208 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  8. H. Freeman, L. Garder, Apictorial jigsaw puzzles: the computer solution of a problem in pattern recognition. IEEE Trans. Electron. Comput. EC–13(2), 118–127 (1964)

    Article  Google Scholar 

  9. A. Gallagher, Jigsaw puzzles with pieces of unknown orientation, in IEEE Conference on Computer Vision and Pattern Recognition (2012), pp. 382–389

  10. D. Goldberg, C. Malon, M. Bern, A global approach to automatic solution of jigsaw puzzles. Comput. Geom. Theory Appl. 28(2–3), 165–174 (2004)

    Article  MathSciNet  Google Scholar 

  11. E. Justino, L. Oliveira, C. Freitas, Reconstructing shredded documents through feature matching. Forensic Sci. Int. 160(2), 140–147 (2006)

    Article  Google Scholar 

  12. D . Koller, M. Levoy, Computer-aided reconstruction and new matches in the forma urbis romae. Bullettino della Commissione Archeologica Comunale di Roma. Supplementi. 15, 103–125 (2006)

    Google Scholar 

  13. W. Marande, G. Burger, Mitochondrial DNA as a genomic jigsaw puzzle. Science 318(5849), 415–415 (2007)

    Article  Google Scholar 

  14. M. Marques, C. Freitas, Reconstructing strip-shredded documents using color as feature matching, in ACM Symposium on Applied Computing (2009), pp. 893–894

  15. A.Q. Morton, M. Levison, The computer in literary studies, in IFIP Congress (1968), pp. 1072–1081

  16. D. Pomeranz, M. Shemesh, O. Ben-Shahar, A fully automated greedy square jigsaw puzzle solver, in IEEE Conference on Computer Vision and Pattern Recognition (2011), pp. 9–16

  17. D. Pomeranz, M. Shemesh, O. Ben-Shahar, A fully automated greedy square jigsaw puzzle solver MATLAB code and images (2011). https://sites.google.com/site/greedyjigsawsolver/home

  18. D. Sholomon, O.E. David, N.S. Netanyahu, Datasets of larger images and GA-based solver’s results on these and other sets. http://www.cs.biu.ac.il/~nathan/Jigsaw

  19. D. Sholomon, O.E. David, N.S. Netanyahu, A genetic algorithm-based solver for very large jigsaw puzzles, in IEEE Conference on Computer Vision and Pattern Recognition (2013), pp. 1767–1774

  20. D. Sholomon, O.E. David, N.S. Netanyahu, Genetic algorithm-based solver for very large multiple jigsaw puzzles of unknown dimensions and piece orientation, in ACM Conference on Genetic and Evolutionary Computation (2014), pp. 1191–1198

  21. D. Sholomon, O.E. David, N.S. Netanyahu, A generalized genetic algorithm-based solver for very large jigsaw puzzles of complex types, in AAAI Conference on Artificial Intelligence (2014), pp. 2839–2845

  22. K. Son, J. Hays, D.B. Cooper, Solving square jigsaw puzzles with loop constraints, in European Conference on Computer Vision 2014 (Springer, 2014), LNCS 8694, pp. 32–46

  23. F. Toyama, Y. Fujiki, K. Shoji, J. Miyamichi, Assembly of puzzles using a genetic algorithm, in International Conference on Pattern Recognition (2002) (Vol. 4), pp. 389–392

  24. C.S.E. Wang, Determining molecular conformation from distance or density data, Ph.D. thesis, Massachusetts Institute of Technology, Department of Electrical Engineering and Computer Science (2000). http://theses.mit.edu/Dienst/UI/2.0/Describe/0018.mit.etheses/2000-2. Also available online at the MIT theses online homepage http://thesis.mit.edu/

  25. X. Yang, N. Adluru, L.J. Latecki, Particle filter with state permutations for solving image jigsaw puzzles, in IEEE Conference on Computer Vision and Pattern Recognition (2011), pp. 2873–2880

  26. Y. Zhao, M. Su, Z. Chou, J. Lee, A puzzle solver and its application in speech descrambling, in WSEAS International Conference Computer Engineering and Applications (2007), pp. 171–176

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Omid E. David.

Additional information

A preliminary version of this paper appeared in Proceedings of the IEEE Computer Vision and Pattern Recognition Conference [19].

Area Editor for Games: Moshe Sipper.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Sholomon, D., David, O.E. & Netanyahu, N.S. An automatic solver for very large jigsaw puzzles using genetic algorithms. Genet Program Evolvable Mach 17, 291–313 (2016). https://doi.org/10.1007/s10710-015-9258-0

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10710-015-9258-0

Keywords

Navigation