Edsger Dijkstra

term

programming

Kept in this browser · My desk

The Dutch computer scientist who devised the shortest-path algorithm in 1956, co-wrote the first ALGOL 60 compiler, invented the semaphore for concurrent programs and was, in Niklaus Wirth's account, the primary advocate of structured programming, recording his thinking in consecutively numbered manuscripts known as EWDs.

Several ideas now taught as basics were first named by Dijkstra: the shortest-path algorithm that link-state routing still runs, the semaphore that lets concurrent processes coordinate, the dining philosophers as the image of deadlock, and the discipline of structured programming that Wirth's Pascal was built on. CWI, the Dutch national research institute for mathematics and computer science where he started, describes him as brilliant, colourful and opinionated, sometimes difficult, and a stylist whose short, largely handwritten reports, numbered consecutively and written with a fountain pen, are known as EWDs.

Who he was. Edsger Wybe Dijkstra (1930 to 2002) was the Dutch computer scientist who devised the shortest-path algorithm, co-wrote the first ALGOL 60 compiler, invented the semaphore, gave concurrent programming its classic problems, argued for structured programming and wrote down his thinking for more than forty years in numbered manuscripts known as EWDs.

Training. Wikipedia gives his birth as 11 May 1930 in Rotterdam and his doctorate at the University of Amsterdam in 1959, with the thesis Communication with an Automatic Computer under Adriaan van Wijngaarden. The history published by CWI (Centrum Wiskunde & Informatica), the institute where he began, says he was studying theoretical physics at Leiden while working as a programmer at the Mathematisch Centrum in Amsterdam when van Wijngaarden, head of its Computation Department, convinced him that programming was here to stay; Dijkstra recalled leaving that meeting as another person. He worked at the Mathematisch Centrum from 1952 to 1962.

The shortest path. In 1956 he needed a problem that laypeople could understand to demonstrate the new ARMAC computer, and devised, in what he called a twenty-minute invention on a café terrace, an algorithm for the shortest route between two Dutch cities. It was published as A Note on Two Problems in Connexion with Graphs in the first volume of Numerische Mathematik, pages 269 to 271, dated December 1959 by Springer. How it works: every node starts with a tentative distance, zero for the source and infinity for the rest; the algorithm repeatedly takes the unvisited node with the smallest tentative distance, fixes it as final, and lowers the tentative distances of its neighbours through it, which is correct as long as no edge has a negative length. Link-state routing protocols such as Open Shortest Path First (OSPF) still run it on every router.

ALGOL and the compiler. In 1958 and 1959 he took part in the meetings that led to the ALGOL 60 report, though his name is not among its 13 authors, and with Jaap Zonneveld he wrote the first ALGOL 60 compiler, with a new method for implementing recursion.

Concurrency. From 1962 he was a professor at the technological university in Eindhoven. His manuscript Cooperating Sequential Processes, numbered EWD 123 and completed in 1965, was published in 1968; it laid foundations for operating systems and concurrent programming and introduced the semaphore with its two operations, P and V: P waits until the counter is positive and decrements it, V increments it, so that processes can take turns at a shared resource. Wikipedia adds that in the late 1960s he built the THE multiprogramming system, whose software-based paged virtual memory influenced later systems. A 1971 paper posed the dining philosophers, five diners sharing five forks, as an image of deadlock. In 1974 he published Self-stabilizing systems in spite of distributed control in the Communications of the ACM, the journal of the Association for Computing Machinery; Donald Knuth recalls on his news page that Dijkstra once told him it might be his most significant contribution, and the problem it posed was still being worked on in 2026. The Dijkstra Prize of the Symposium on Principles of Distributed Computing (PODC) says that no other individual has had a larger influence on that field, citing the semaphore, mutual exclusion, deadlock and self-stabilization.

Structured programming. He was also, in Wirth's account, the primary advocate of structured programming: Wirth, in his own history of Pascal, writes that the language was strongly influenced by that discipline, advocated primarily by Dijkstra to fight the threatening software crisis. His 1968 letter against the goto statement has its own entry here. He received the Association for Computing Machinery's Turing Award in 1972, which Wikipedia says recognized his contributions to developing structured programming languages.

Burroughs, the EWDs and Austin. From 1973 he worked from home in Nuenen as the only research fellow of the Burroughs Corporation, signing his reports with that title, and kept one day a week at the university for his Tuesday Afternoon Club. Krzysztof Apt's essay in Inference describes the arrangement: the reports gave his home address, which led some to assume that Burroughs had opened an office there. Apt also counts the EWDs: begun in 1959, numbered consecutively with his initials, photocopied by Dijkstra himself and mailed to about twenty recipients each, they ran for more than forty years to number 1,318, dated 14 April 2002, over 7,700 pages in all. He moved to the University of Texas at Austin in 1984, holding the Schlumberger Centennial Chair, Wikipedia says, until he retired in November 1999. Shortly before his death the PODC conference gave his self-stabilization paper its Influential Paper Award, renamed the Dijkstra Prize the following year. He died in Nuenen on 6 August 2002.

What gets misread. The goto letter, published in the Communications of the ACM in March 1968 (volume 11, number 3, pages 147 and 148, Wikipedia records), is remembered as a ban, but it was a letter to the editor that started a debate. And the algorithm is often credited with routing the internet; it computes shortest paths inside one link-state domain, while routing between networks uses other protocols.

Neighbours. Goto considered harmful, Dijkstra's algorithm, ALGOL, Niklaus Wirth, compilers, Alan Turing and Donald Knuth.

Also known as: edsger w. dijkstra, ewd, ewd manuscripts

Sources

← Back to E Back to the glossary