Difference between P and NP

December 4, 2026 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-501-CBGS Theory of Computation December 2020 Solved Paper

Question

How P class problems different from NP class problems?

Asked in: CS-501 | December 2020 | 7(b)

Answer

P consists of decision problems solvable by a deterministic TM in polynomial time. NP consists of decision problems with polynomial-length certificates verifiable in deterministic polynomial time, equivalently solvable by a nondeterministic TM in polynomial time. P⊆NP because a verifier can ignore the certificate and run the polynomial algorithm. Graph reachability is in P; SAT and Hamiltonian cycle are in NP and NP-complete. Whether P=NP remains open. NP does not mean non-polynomial. If any NP-complete problem is in P, all NP problems are in P. Complexity is measured in input encoding length, not numeric magnitude.

← RGPV CS-501-CBGS Theory of Computation December 2020 Solved Paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion