by rsofaer · 13y ago · 0 comments
On the other hand, here's a short summary of P=NP itself:
There is a large group of problems called NP (Non-Deterministic Polynomial), which have been shown to be equivalent, in that a polynomial time algorithm for one could be used to construct polynomial time algorithms for all the others. These problems all have the property that a possible solution can be tested in polynomial time. Because NP is big, many of the problems within it are useful, and it isn't intuitively very far from problems which are soluble in polynomial time, a lot of work has been done on trying to either find polynomial time algorithms for NP, or show that no such algorithm could exist.
edit: As lacker mentions, one intuition about NP problems is "Problems for which you must check all the possible solutions and see which one is right."
How does time complexity fit into that?
The balanced binary tree search operation is an example of something whose cost grows very slowly even as the size of the tree grows rapidly.
There are algorithms that are hard the same way the O(log n) tree is easy: they grow exponentially with the size of input, so very small changes in the input size can drastically increase their cost.