Genetic algorithms can solve a multitude of optimization problems by the digital modeling of natural selection, mutation and recombination. This algorithm attempts to draw a faithful representation of the Mona Lisa using only a few triangles. It is implemented in C++ and OpenGL and takes less than 400 lines of code. It is also a parallel implementation of a genetic algorithm, therefore it uses multiple CPU cores. The entire code is available for download below.
Code and details for this project are available here:
Roger Alsing’s original work:
Subscribe →
Web →
Twitter →
source