Theory of Computation & Computer Graphics β Turing Machine, NEC licence examination syllabus (Nepal Engineering Council).
Not every solvable problem is EQUALLY solvable β this topic is about that gap.
PProblems solvable in polynomial time β considered "efficiently solvable." Example: sorting a list.
NPProblems where a proposed SOLUTION can be VERIFIED in polynomial time, even if finding it might take much longer. Example: given a proposed route, checking if it visits every city (easy) vs actually finding the shortest such route (hard).
NP-CompleteThe "hardest" problems within NP β every other NP problem can be transformed into one of these in polynomial time. If anyone ever finds a fast solution for ANY NP-Complete problem, EVERY NP problem instantly becomes fast too.
NP-HardAt least as hard as NP-Complete problems, but not necessarily required to even BE in NP themselves (may not even be verifiable quickly).
P and NP are usually presented as two boxes. What makes the famous open question comprehensible is what separates them.
PYou can find the answer quickly.
NPYou can check a proposed answer quickly, even if finding one seems to require trying vast numbers of possibilities.
NP-complete problems are the hardest in NP: every problem in NP reduces to each of them. That gives the class a property worth stating.
A polynomial algorithm for any single NP-complete problem would give one for all of them, and prove P = NP. They stand or fall together β which is why finding one problem intractable is evidence about the whole class, and why recognising that your problem is NP-complete is genuinely useful information rather than defeat.Proving it does not end the work β it changes what "solving" means. The practical routes are to accept an approximate answer with a proven bound, use a heuristic that is usually good with no guarantee, solve only the special cases that actually arise, or accept exponential time on the small inputs where it is affordable.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loadingβ¦