
4 episodes, about 17 min 1 view across the series
Topics: Software and data foundations Code: abhydesai/p-vs-np-code
P vs NP Explained
Created by Abhyuday DesaiUpdated , episode 4
What P, NP, NP-hard and NP-complete mean, how reductions carry hardness between problems, and what to do when your problem is NP-complete.
Start with episode 1Part oneThe classes
- 01 Watch
Solving Versus Checking: What P and NP Mean
Finding a subset that adds up is a search. Checking one you are handed is one pass. That asymmetry is what P and NP name.
- 02 Watch
What a Reduction Is: How Hardness Passes Between Problems
A reduction converts an instance of one problem into an instance of another, in polynomial time, keeping the answer. Follow the direction and hardness passes with it.
- 03 Watch
NP-Hard and NP-Complete: The Problems Everything in NP Reduces To
A problem every problem in NP reduces to is NP-hard; one that is also in NP is NP-complete. One fast algorithm for any of them would settle P versus NP.
Part twoThe practical response
- 04 Watch
Your Problem Is NP-Complete. Now What?
NP-complete is not hopeless. Four responses, with a dynamic program that answers subset sum for thirty numbers in an instant, and why that does not contradict the theory.