Evolving self-replication. (A) An evolutionary algorithm, starting with random swarms, evolves swarms with increasing self-replicative ability. (FG = number of filial generations achieved by a given swarm. The fractional part denotes how close the swarm got to achieving another replication round.) The most successful lineage in this evolutionary trial originated from a spheroid that built piles no larger than 74% of the size threshold required to self-replicate (B). A descendent swarm composed of nine flexible tori (C) contained two members that built one pile large enough to self-replicate (two arrows), which, alone, built piles no larger than 51% of the threshold. A descendent of the toroid swarm, a swarm of semitori (D), contained six members (E) that collectively built three piles large enough to mature into offspring (F). One of those offspring built a pile large enough to mature into a second generation offspring (G). An additional 48 independent evolutionary trials (H) evolved self-replicative swarms with diverse progenitor shapes.