Remark. Why \mathcal {P}? [00VQ]

Why focus on \mathcal {P}? As mentioned previously, we typically take polynomial-time as our definition of "feasible". There is both a theoretical and a practical reason for this. The theoretical reason is that the set of polynomials is closed under many natural operations. For example, if p(n) and q(n) are polynomials, then p(n) + q(n), p(n)q(n), and even p(q(n)) are all polynomials as well. If we have two algorithms which take time p(n) and q(n) respectively, then p(n) + q(n) represents the time to run the two algorithms in sequence; p(n)q(n) represents the time to run one nested inside the other; and even p(q(n)) corresponds to a natural operation on algorithms which we will encounter shortly. So if we focus on algorithms in \mathcal {P}, we can combine them in many natural ways and still remain in \mathcal {P}.

This would be a bad reason if it were only theoretically nice but did not correspond to reality very well. However, polynomial time corresponds well to what is feasible in practice. Most real polynomial-time algorithms have relatively small exponents; the biggest power I have ever seen in an algorithm which is actually used in practice is n^6. And there are many cases where a small tweak is all that separates a problem from being solvable in something like \Theta (n^2) time to requiring \Theta (2^n) time. That is, problems don't "degrade gracefully" from feasible to infeasible; there often seems to be a sharp divide where problems suddenly jump from having a nice, efficient, polynomial-time solution to having only exponential-time solutions.