Key differences between P, NP, NP-complete, and NP-hard
CategoryPNPNP-completeNP-hard
DefinitionProblems that can be solved in polynomial time by a deterministic algorithm.Problems whose solutions can be verified in polynomial time by a deterministic algorithm.Problems that are both in NP and as hard a...
programming-dude.com2 min read