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.
Similar content being viewed by others
References
T. Altman, Solving the jigsaw puzzle problem in linear time. Appl. Artif. Intell. Int. J. 3(4), 453–462 (1989)
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)
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
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
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
A. Deever, A. Gallagher, Semi-automatic assembly of real cross-cut shredded documents, in IEEE International Conference on Image Processing (2012), pp. 233–236
E. Demaine, M. Demaine, Jigsaw puzzles, edge matching, and polyomino packing: connections and complexity. Graphs Comb. 23, 195–208 (2007)
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)
A. Gallagher, Jigsaw puzzles with pieces of unknown orientation, in IEEE Conference on Computer Vision and Pattern Recognition (2012), pp. 382–389
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)
E. Justino, L. Oliveira, C. Freitas, Reconstructing shredded documents through feature matching. Forensic Sci. Int. 160(2), 140–147 (2006)
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)
W. Marande, G. Burger, Mitochondrial DNA as a genomic jigsaw puzzle. Science 318(5849), 415–415 (2007)
M. Marques, C. Freitas, Reconstructing strip-shredded documents using color as feature matching, in ACM Symposium on Applied Computing (2009), pp. 893–894
A.Q. Morton, M. Levison, The computer in literary studies, in IFIP Congress (1968), pp. 1072–1081
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
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
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
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
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
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
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
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
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/
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
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
Author information
Authors and Affiliations
Corresponding author
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
About this article
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
Received:
Revised:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10710-015-9258-0