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 versus NP problem
(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!
===NP-completeness=== {{Main|NP-completeness}} There are many equivalent ways of describing NP-completeness. Let ''L'' be a language over a finite alphabet Ξ£. ''L'' is NP-complete if, and only if, the following two conditions are satisfied: # ''L'' β NP; and # any ''L′'' in NP is polynomial-time-reducible to ''L'' (written as <math>L' \leq_{p} L</math>), where <math>L' \leq_{p} L</math> if, and only if, the following two conditions are satisfied: ## There exists ''f'' : Ξ£* β Ξ£* such that for all ''w'' in Ξ£* we have: <math>(w\in L' \Leftrightarrow f(w)\in L)</math>; and ## there exists a polynomial-time Turing machine that halts with ''f''(''w'') on its tape on any input ''w''. Alternatively, if ''L'' β NP, and there is another NP-complete problem that can be polynomial-time reduced to ''L'', then ''L'' is NP-complete. This is a common way of proving some new problem is NP-complete.
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)