As basic as it is, and completely uninventive, I've always loved Dijkstra's algorithm.
It was probably the algorithm that cemented my love of computer science, it's such an elegant solution to a problem and so simple once you understand it.
It was probably the algorithm that cemented my love of computer science, it's such an elegant solution to a problem and so simple once you understand it.