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
P (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!
==Properties== Polynomial-time algorithms are closed under composition. Intuitively, this says that if one writes a function that is polynomial-time assuming that function calls are constant-time, and if those called functions themselves require polynomial time, then the entire algorithm takes polynomial time. One consequence of this is that P is [[low (complexity)|low]] for itself. This is also one of the main reasons that P is considered to be a machine-independent class; any machine "feature", such as [[random access]], that can be simulated in polynomial time can simply be composed with the main polynomial-time algorithm to reduce it to a polynomial-time algorithm on a more basic machine. Languages in P are also closed under reversal, [[Intersection (set theory)|intersection]], [[Union (set theory)|union]], [[concatenation]], [[Kleene closure]], inverse [[homomorphism]], and [[Complement (complexity)|complementation]].<ref>{{cite book|last=Hopcroft|first=John E.|title=Introduction to automata theory, languages, and computation|year=2001|publisher=Addison-Wesley|location=Boston|isbn=978-0201441246|pages=425β426|edition=2.|author2=Rajeev Motwani |author3=Jeffrey D. Ullman }}</ref>
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)