Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Time complexity
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Superpolynomial time == An algorithm is defined to take '''superpolynomial time''' if ''T''(''n'') is not bounded above by any polynomial; that is, if {{tmath|T(n)\not\in O(n^c)}} for every positive integer {{math|''c''}}. For example, an algorithm that runs for {{math|2<sup>''n''</sup>}} steps on an input of size {{math|''n''}} requires superpolynomial time (more specifically, exponential time). An algorithm that uses exponential resources is clearly superpolynomial, but some algorithms are only very weakly superpolynomial. For example, the [[Adleman–Pomerance–Rumely primality test]] runs for {{math|''n''<sup>''O''(log log ''n'')</sup>}} time on {{math|''n''}}-bit inputs; this grows faster than any polynomial for large enough {{math|''n''}}, but the input size must become impractically large before it cannot be dominated by a polynomial with small degree. An algorithm that requires superpolynomial time lies outside the [[complexity class]] '''[[P (complexity)|P]]'''. [[Cobham's thesis]] posits that these algorithms are impractical, and in many cases they are. Since the [[P versus NP problem]] is unresolved, it is unknown whether [[NP-complete]] problems require superpolynomial time.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)