Home Lex Fridman Notes
Lex Fridman · 2019-12-30 · 1h 45m

Donald Knuth: Algorithms, Complexity, and The Art of Computer Programming | Lex Fridman Podcast #62

Donald Knuth reflects on a life of algorithms, beauty in code and typography, mortality, faith, and why P probably equals NP.

Donald Knuth: Algorithms, Complexity, and The Art of Computer Programming | Lex Fridman Podcast #62
The guest

Donald Knuth — Legendary Stanford computer scientist, 1974 Turing Award winner, author of The Art of Computer Programming, and creator of the TeX typesetting system. Widely regarded as one of the most influential figures in the field.

The gist

Lex Fridman visits Donald Knuth at his home for a wide-ranging conversation spanning his first encounter with an IBM 650 in 1957 through the decades-long writing of The Art of Computer Programming. Knuth explains 'geek' thinking as the ability to jump between levels of abstraction, walks through the volumes of his magnum opus, and describes his daily writing and programming routine. The talk ranges into literature, the art versus science of programming, his intuition that P equals NP, and the limits of artificial intelligence. He also discusses his study of the Bible, his prostate cancer diagnosis, his belief in God, and finishing a long-desired musical composition, ending with what he would ask God.

Big reveals

  • Knuth says when asked what about computing surprised him he rattled off a couple dozen things but could not name a single thing he would have correctly predicted.
  • Knuth states he believes P may actually equal NP, contrary to most computer scientists.
  • He argues that even if P equals NP it would not yield usable algorithms, because vastly more algorithms exist than humans can ever discover or comprehend.
  • On AI he warns about people believing they've succeeded, citing a huge gap between real understanding and the illusion of understanding.
  • Knuth describes coming to terms with mortality after his father's death and again after his 2006 prostate cancer diagnosis, accepting he might die with no expectation he deserved better.
  • He reveals a lifelong unfulfilled goal to compose a piece of music, which premiered on his 80th birthday.
  • He recalls being furious when Volume 2 was reprinted because the number '2' in the page numbers looked ugly to him, forcing him to retune the whole typeface.

Things worth remembering

  • The IBM 650 had only 2,000 words of memory and adding two numbers took about three milliseconds because of the spinning drum.
  • Knuth estimates 'geeks' make up about 2% of the population, a figure he says held fairly constant over his career.
  • He admires Alan Turing as the first fully legitimate geek, who wrote numbers backwards (left to right) to think like a computer.
  • Knuth's literate programming philosophy: good technical writing says everything twice, formally and informally, to lodge concepts in the reader's brain.
  • The Binary Decision Diagram (BDD), invented by Randy Bryant in 1986, was a total surprise that added a whole new section to his book.
  • Knuth lives by a 'point eight is enough' philosophy: an organism happy about 80% of the time is better designed than one happy all the time.
  • He notes that all numbers humans can comprehend are still vastly smaller than almost all finite numbers, citing Knuth arrow notation and 'supernatural numbers'.
  • Asked what he would ask God, Knuth jokes: 'What kind of browser do you have up here?'

Recommended in this episode

Books, products and media the guest or host genuinely endorsed here — with the buy link.

Affiliate link — we may earn a commission at no extra cost to you.

Guest’s ownBook

The Art of Computer Programming

Donald Knuth

“he's the author of the multi-volume work the magnum opus the art of computer programming” — Lex Fridman 00:00:00
Find it on Amazon
RecommendedBook

Anna Karenina

Leo Tolstoy

“Tolstoy was one of the big influences on me I especially like Anna Karenina not because of a particular area of the plot” — Donald Knuth 00:16:22
Find it on Amazon
RecommendedBook

American Pastoral

Philip Roth

“I've heard mentioned a Philip Roth's American pastoral which I love as a book” — Lex Fridman 00:15:50
Find it on Amazon
RecommendedBook

Marjorie Morningstar

Herman Wouk

“I like Herman Wouk as a novelist I think I like his book Marjorie Morningstar has a similar character” — Donald Knuth 00:17:58
Find it on Amazon