Turing Award laureate Richard Karp walks Lex Fridman through the beauty of algorithms, NP-completeness, and why he bets P does not equal NP.

Richard Karp — Berkeley professor and 1985 Turing Award winner, one of the founding figures of theoretical computer science, known for the Edmonds-Karp max-flow algorithm, the Hopcroft-Karp matching algorithm, the Rabin-Karp string search, and his landmark paper proving 21 problems NP-complete.
Richard Karp recounts his lifelong love of mathematical elegance, from plane geometry as a teenager to the Hungarian algorithm that revealed him to be a 'geek.' He explains foundational concepts in computational complexity in plain terms: graphs, polynomial time, the classes P, NP, NP-complete, and NP-hard, and how his 1971 reductions tied 21 combinatorial problems together. He discusses randomized algorithms like Rabin-Karp, the limits of worst-case versus average-case analysis, why SAT solvers and traveling-salesman codes work well in practice despite hardness, and his skepticism about human-level AI. He closes on bioinformatics, the ethics of gene editing, and his father's influence on his identity as a teacher.