Donald Knuth

term

programming

Kept in this browser · My desk

The Stanford computer scientist whose multivolume The Art of Computer Programming, begun with Volume 1 in 1968, organized the analysis of algorithms, and who invented the TeX typesetting system in 1977 because he disliked how his own books were being typeset.

Knuth is the field's encyclopaedist and its typesetter. The Art of Computer Programming set out the fundamental algorithms with a mathematical precision that, in the words of the Kyoto Prize citation, systematized software science; at the end of 1999 American Scientist ranked it among the twelve best physical-science monographs of the century. TeX, begun when the typography proposed for a new volume of that book disappointed him, became the standard for technical and mathematical publishing. His reward cheque of 2.56 dollars for each error found in his books, one hexadecimal dollar, is part of the culture.

Who he is. Donald E. Knuth is the Stanford computer scientist who has been writing The Art of Computer Programming since the 1960s, put the analysis of algorithms on a mathematical footing, created the TeX typesetting system and the METAFONT font system, and named literate programming.

Training. The Computer History Museum (CHM), which made him a Fellow in 1998, records that Knuth was born in Milwaukee, Wisconsin, in 1938, took a BS and an MS in mathematics at the Case Institute of Technology in 1960 and a PhD in mathematics at Caltech in 1963. His love of computers began at Case with an IBM 650, on which he wrote a program to help coach the school's basketball team, which brought him onto the CBS Evening News with Walter Cronkite. He taught at Stanford from 1968.

The Art of Computer Programming. His life's work is The Art of Computer Programming, whose first volume appeared in 1968; his own page for the series shows the volumes published since then and notes that at the end of 1999 American Scientist named them among the best twelve physical-science monographs of the century, beside Dirac on quantum mechanics, Einstein on relativity and Mandelbrot on fractals. The work is still in progress: his news page reports that in February 2025 Addison-Wesley published Volume 4, Fascicle 7, Constraint Satisfaction, a 304-page paperback forming the first third of the future hardcover Volume 4C, and that Volume 4A, of 883 pages, is in its twenty-sixth printing. The Kyoto Prize, which the Inamori Foundation awarded him in 1996 in advanced technology, information science, credits the series with systematizing the fundamental algorithms of computing and with establishing numerical computation as seminumerical algorithms suited to the machine's own arithmetic.

TeX and METAFONT. In 1977, the CHM says, he grew frustrated with the poor quality of the typography proposed for an upcoming volume and invented the typesetting language TeX, which remains a worldwide standard for technical publishing; the Kyoto citation adds METAFONT, his font design system, and credits the pair with founding document technology as a field. The TeXbook, the program's manual, was published by Addison-Wesley in 1984. How the systems are kept stable is unusual: in TUGboat in 1990 he announced that TeX, then at version 3.1, would henceforth change only to fix bugs, its version numbers converging on pi (3.14, 3.141, 3.1415 and so on) and METAFONT's on e (2.71, 2.718), with rewards for the first finders of true bugs, and that at his death the versions then current should be left unchanged forever, the banner reading TeX, Version pi.

Literate programming. His book Literate Programming (Center for the Study of Language and Information, 1992) defines the method as combining a programming language with a documentation language, so that a program is treated as a piece of literature addressed to human beings rather than to a computer; he notes that he used the word WEB for his system long before CERN, the European laboratory for particle physics, took it for the World Wide Web.

Premature optimization. One of the most quoted sentences in programming is his. In Structured Programming with go to Statements (Computing Surveys, December 1974) he wrote that programmers should forget about small efficiencies about 97 per cent of the time, because premature optimization is the root of all evil, yet should not pass up their opportunities in that critical 3 per cent. The full sentence argues for measuring before optimizing, not against optimizing.

Recognition and habits. He received the Turing Award of the Association for Computing Machinery (ACM) in 1974 and the National Medal of Science in 1979. His frequently asked questions record two habits that have become folklore with a paper trail. He pays 2.56 dollars for every error found in his books, because 256 pennies make one hexadecimal dollar, now paid into an account at the Bank of San Serriffe, since he can no longer write personal cheques to the finders; and his name is pronounced Ka-NOOTH.

In 2026. His news page records two events he calls surprises. In a note he calls an unpublication, Claude's Cycles, dated 28 February 2026 and revised on 14 April, he wrote that an open problem he had been working on for weeks, decomposing the arcs of a certain directed graph into three Hamiltonian cycles for a future volume, had been solved by Claude Opus 4.6, a model by Anthropic, with his friend Filip Stappers posing the question and coaching it, and that he would have to revise his opinions about generative artificial intelligence (AI); the same page reports improvements to an older note of his found by GPT 5.4 with human coaching.

Neighbours. Premature optimization, compilers, ALGOL, Edsger Dijkstra and the general entry on programming languages.

Also known as: knuth, taocp, the art of computer programming, tex author

Sources

← Back to D Back to the glossary