Skip to content
Richard Karp: Algorithms and Computational Complexity | Lex Fridman Podcast #111
This video isn’t embeddableWatch on YouTube →
Lex Fridman PodcastLex Fridman Podcast

Richard Karp: Algorithms and Computational Complexity | Lex Fridman Podcast #111

Richard Karp is a professor at Berkeley and one of the key figures in the history of theoretical computer science.

Lex FridmanhostRichard Karpguest
Jul 25, 20202h 7mWatch on YouTube ↗

Summaries, chapters, transcripts, and FAQs on this page are made by uListen, not YouTube.

At a glance

WHAT IT’S REALLY ABOUT

Richard Karp Explores Algorithms, NP-Completeness, and Human Intelligence Limits

  1. Richard Karp discusses his early love of geometry and formal proofs, then builds up the core ideas of algorithms, polynomial-time complexity, and the P vs NP problem. He explains NP-completeness, reductions between classic combinatorial problems, and why most experts believe P ≠ NP despite lacking a proof. Karp highlights elegant algorithms such as the Hungarian method, stable matching, and Rabin–Karp string search, and reflects on randomized algorithms, average-case behavior, and the gap between theory and practice. He also shares skeptical views on superhuman AI, thoughts on machine learning’s limits, applications of algorithms in biology, and personal reflections on teaching and his intellectual development.

IDEAS WORTH REMEMBERING

5 ideas

Understanding P vs NP reshapes expectations about what problems are efficiently solvable.

Karp explains that P is the class of problems solvable in polynomial time, while NP includes problems whose solutions can be verified quickly; if P ≠ NP, as most suspect, many central optimization and decision problems likely have no universally efficient exact algorithms.

Reductions show that many seemingly different hard problems are fundamentally equivalent.

Building on Cook’s work, Karp showed that problems like satisfiability, clique, integer programming, and many others can simulate each other via polynomial-time reductions, meaning either all these NP-complete problems are efficiently solvable or none are.

Randomization can yield simple, powerful algorithms with small, controllable error.

Algorithms like Rabin–Karp for string search and randomized primality testing leverage random sampling and hash-like fingerprints to run fast on large inputs, accepting a tiny probability of error that can often be bounded or checked afterward.

Worst-case complexity can be pessimistic; many NP-complete problems are often easy in practice.

Karp notes that SAT solvers and TSP solvers routinely handle huge real-world instances despite worst-case hardness, illustrating that empirical performance and instance structure can matter more than worst-case theory for many applications.

The stable matching problem exemplifies how elegant algorithms connect theory and practice.

The Gale–Shapley algorithm, which produces stable matchings between two groups (e.g., students and schools), is conceptually simple, provably correct, and underlies real systems like medical residency matching, showing the practical impact of theoretical insights.

WORDS WORTH SAVING

5 quotes

It’s a nice escape from the messiness of the real world where nothing can be proved.

— Richard Karp

I would bet that P is unequal to NP, simply because there are problems that have been around for centuries and no polynomial time algorithms have been found.

— Richard Karp

Either all of these problems or none of them are solvable in polynomial time.

— Richard Karp

I don’t think there’s any computer program which surpasses a six‑month‑old child in terms of comprehension of the world.

— Richard Karp

The top three [secrets of teaching] would be preparation, preparation, and preparation.

— Richard Karp

Read the available transcript
Early fascination with geometry, proofs, and mathematical eleganceFoundations of algorithms, polynomial time, and complexity classes (P, NP, NP-complete, NP-hard)NP-completeness, Cook’s theorem, and Karp’s 21 NP-complete problemsClassic combinatorial algorithms: max flow, assignment problem, stable matching, Rabin–KarpRandomized algorithms and probabilistic analysis versus worst-case complexityLimits of current AI and machine learning, and skepticism about superintelligenceApplications of algorithms in bioinformatics and reflections on teaching and mentorship

High quality AI-generated summary created from speaker-labeled transcript.

Get more out of YouTube videos.

Read along on your phone, search it beside the video, or ask your favorite AI app what was said.