C++ code snippets from a multi-core parallel memory-efficient crossover for genetic programming are given. They may be adapted for separate generation evolutionary algorithms where large chromosomes or small RAM require no more than M + (2 times nthreads) simultaneously active individuals.
@article{arxiv.2009.10460,
title = {Multi-threaded Memory Efficient Crossover in C++ for Generational Genetic Programming},
author = {W. B. Langdon},
journal= {arXiv preprint arXiv:2009.10460},
year = {2026}
}