polynomial-time algorithm
Quick Summary
A polynomial-time algorithm is a type of algorithm whose execution time is bounded by a polynomial function of the input size. This means that as the input size (n) grows, the number of steps required by the algorithm increases at a rate that is a power of n, such as n², n³, etc..12
Algorithms that can be solved in polynomial time are considered efficient or "tractable". This is in contrast to algorithms with exponential time complexity, where the execution time grows much more rapidly with the input size, making them "intractable" for large inputs. The P versus NP problem, a major question in computer science, explores whether all problems whose solutions can be quickly verified (NP problems) can also be quickly solved (P problems).321
Ask Britannica AI about this topic
Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.
- NP-complete problem
Polynomial-time algorithms are considered to be efficient, while exponential-time algorithms are considered inefficient, because the execution times of the latter grow much more rapidly as the problem size increases.
Read MorePolynomial-time algorithms are considered to be efficient, while exponential-time algorithms are considered inefficient, because the execution times of the latter grow much more rapidly as the problem size increases.
Read More - P versus NP problem
…can be solved in “polynomial time,” which means that an algorithm exists for its solution such that the number of steps in the algorithm is bounded by a polynomial function of n, where n corresponds to the length of the input for the problem. Thus, P problems are said…
Read More…can be solved in “polynomial time,” which means that an algorithm exists for its solution such that the number of steps in the algorithm is bounded by a polynomial function of n, where n corresponds to the length of the input for the problem. Thus, P problems are said…
Read More