The brain of a common fruit fly (Drosophila melanogaster) is no larger than a poppy seed, but the miniscule piece of tissue holds tens of thousands of neurons joined by tens of millions of synapses.