In the world of algorithms, elegance is not optional.