The question of 'why sex' has long been a puzzle. The randomness of recombination, which potentially produces low fitness progeny, contradicts notions of fitness landscape hill climbing. We use the concept of evolution as an algorithm for learning unpredictable environments to provide a possible answer. While sex and asex both implement similar machine learning no-regret algorithms in the context of random samples that are small relative to a vast genotype space, the algorithm of sex constitutes a more efficient goal-directed walk through this space. Simulations indicate this gives sex an evolutionary advantage, even in stable, unchanging environments. Asexual populations rapidly reach a fitness plateau, but the learning aspect of the no-regret algorithm most often eventually boosts the fitness of sexual populations past the maximal viability of corresponding asexual populations. In this light, the randomness of sexual recombination is not a hindrance but a crucial component of the 'sampling for learning' algorithm of sexual reproduction.
Keywords: Evolution; Learning algorithms; Sexual reproduction.
Copyright © 2017 Elsevier Ltd. All rights reserved.