In 1956, 26-year-old Edgar Dijkstra invented a classic path-finding algorithm while out with his fiancée at a café in Amsterdam. It all happened in his head: “Without pencil and paper you are almost forced to avoid all avoidable complexities,” he said.