B-cells with random antibody bit-strings compete to bind an antigen. Top binders clone and hypermutate. Over generations, the population's average affinity rises — the immune system's evolutionary algorithm.