| ▲ | dpweb 2 hours ago | |||||||
P and NP are classes of computational problems. A problem in P can be solved in polynomial time - the computation required grows relatively slowly as the input size increases. Like sorting a list of numbers. A problem in NP requires exponential time or greater, but a proposed solution can be verified quickly. For example, checking a completed Sudoku puzzle. It is believed but unproven that all problems in NP are NOT in P. | ||||||||
| ▲ | calfuris an hour ago | parent | next [-] | |||||||
A problem in NP can have a (positive) solution verified in polynomial time. That's it. Requiring more than polynomial time to solve isn't part of the definition, and in fact it's an open question whether any problems in NP require more than polynomial time to solve. Every single problem in P is in NP. What is believed but unproven is that some problems in NP are not in P. | ||||||||
| ▲ | SoftTalker an hour ago | parent | prev | next [-] | |||||||
I have never really understood this, from the time it was first introduced to me in my undergraduate education nearly 40 years ago. It seems to boil down to saying "all unsolvable problems are not in the set of solvable problems" which seems like a tautology. I don't get why "P != NP" is considered so profound. I feel like I have not yet found the proper explanation. Or I'm just too dense to get it. | ||||||||
| ||||||||
| ▲ | bjourne an hour ago | parent | prev [-] | |||||||
NP contains P. You're thinking of NP-hard problems. | ||||||||