For an important problem, it seemed as though laboriously trying every possibility was the best possible approach. Now researchers have proved that there’s a better way.