The way fruit flies identify similarities between odors offers a new approach for search algorithms.