Metabolic theory of ecology: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Addbot
m Bot: Migrating 1 interwiki links, now provided by Wikidata on d:q6822353
en>Wavelength
inserting 1 hyphen: —> "three-dimensional"—wikt:three-dimensional
 
Line 1: Line 1:
In [[computational complexity theory]], the '''Cook–Levin theorem''', also known as '''Cook's theorem''', states that the [[Boolean satisfiability problem]] is [[NP-completeness|NP-complete]]. That is, any problem in [[NP (complexity)|NP]] can be [[reduction (complexity)|reduced]] in polynomial time by a [[deterministic Turing machine]] to the problem of determining whether a Boolean formula is satisfiable.
Howdy. The author's name is Eusebio regrettably he never really beloved that name. In his professional life he can be a people manager. He's always loved living for Guam and he owns everything that he has to have there. To drive is one of those things he loves virtually. He's been working by his website for selected time now. Check understand it out here: http://[http://wordpress.org/search/circuspartypanama circuspartypanama].com<br><br>


The theorem is named after [[Stephen Cook]] and [[Leonid Levin]].
Here is my site ... clash of clans cheats - [http://circuspartypanama.com My Web Site],
 
An important consequence of the theorem is that if there exists a deterministic polynomial time algorithm for solving Boolean satisfiability, then there exists a deterministic polynomial time algorithm for solving ''all'' problems in [[NP (complexity)|NP]].  Crucially, the same follows for any [[NP complete]] problem.
 
The question of whether such an algorithm exists is called the [[P versus NP problem]] and it is widely considered the most important unsolved problem in theoretical computer science.
 
==Contributions==
The concept of NP-completeness was developed in the late 1960s and early 1970s in parallel by researchers in the US and the [[USSR]].
In the US in 1971, [[Stephen Cook]] published his paper "The complexity of theorem proving procedures"<ref>{{cite book|last=Cook|first=Stephen|authorlink=Stephen Cook|year=1971|chapter=The complexity of theorem proving procedures|chapterurl=http://portal.acm.org/citation.cfm?coll=GUIDE&dl=GUIDE&id=805047|title=Proceedings of the Third Annual ACM Symposium on Theory of Computing|pages=151–158}}</ref> in conference proceedings of the newly founded ACM [[Symposium on Theory of Computing]]. [[Richard Karp]]'s subsequent paper, "Reducibility among
combinatorial problems",<ref name="Karp"/> generated renewed interest in Cook's paper by providing a [[Karp's 21 NP-complete problems|list of 21 NP-complete problems]]. Cook and Karp received a [[Turing Award]] for this work.
 
<!--
THIS IS POORLY WORDED:
 
Another important contribution of Karp was to notice
that many NP-complete problems, while seemingly intractable in the
worst case, are actually easy for almost all random instances.{{Citation needed|date=March 2008}} In 1984, Levin
extended this result by proving that some NP problems
are complete in the average case as well.<ref>http://www.claymath.org/millennium/P_vs_NP/pvsnp.pdf</ref>
 
-->
The theoretical interest in NP-completeness was also enhanced by the work of Theodore P. Baker, John Gill, and [[Robert Solovay]] who showed that solving NP-problems in [[Oracle machine]] models requires exponential time. That is, there exists an oracle ''A'' such that, for all subexponential deterministic time complexity classes T, the relativized complexity class NP<sup>''A''</sup> is not a subset of T<sup>''A''</sup>. In particular, for this oracle, P<sup>''A''</sup>&nbsp;≠&nbsp;NP<sup>''A''</sup>.<ref>{{cite journal|author = T. P. Baker|coauthors = J. Gill, R. Solovay|title = Relativizations of the P = NP question|journal = SIAM Journal on Computing |volume = 4|issue = 4|pages = 431–442|year = 1975|doi = 10.1137/0204037}}</ref>
 
In the USSR, a result equivalent to Baker, Gill, and Solovay's was published in 1969 by M. Dekhtiar.<ref>{{cite journal|last=Dekhtiar|first=M.|title = On the impossibility of eliminating exhaustive search in computing a function relative to its graph|journal = [[Proceedings of the USSR Academy of Sciences]]|volume = 14|pages = 1146–1148|year = 1969}} {{ru icon}}</ref> Later [[Leonid Levin|Levin]]'s paper, "Universal search problems",<ref>{{cite journal|last=Levin|first=Leonid|authorlink=Leonid Levin|title = Universal search problems ({{lang-ru|Универсальные задачи перебора}}, Universal'nye perebornye zadachi)|journal = Problems of Information Transmission ({{lang-ru|Проблемы передачи информации}}, Problemy Peredachi Informatsii)|volume = 9|issue = 3|pages = 115–116|year = 1973}} [http://www.mathnet.ru/php/getFT.phtml?jrnid=ppi&paperid=914&volume=9&year=1973&issue=3&fpage=115&what=fullt&option_lang=eng (pdf)] {{ru icon}}, translated into English by {{cite journal|last=Trakhtenbrot|first=B. A.|title = A survey of Russian approaches to ''perebor'' (brute-force searches) algorithms|journal = Annals of the History of Computing |volume = 6|issue = 4|pages = 384–400|year = 1984|doi=10.1109/MAHC.1984.10036}}</ref> was published in 1973, although it was mentioned in talks and submitted for publication a few years earlier.
 
Levin's approach was slightly different from Cook's and Karp's in that he considered [[search problem]]s, which require finding solutions rather than simply determining existence. He provided 6 such NP-complete search problems, or ''universal problems'', and
additionally found that each has an algorithm which solves it in optimal time.{{Vague|date=March 2008}}
 
==Definitions==
A [[decision problem]] is ''in [[NP (complexity)|NP]]'' if it can be solved by a [[non-deterministic algorithm]] in [[polynomial time]].
 
An ''instance of the Boolean satisfiability problem'' is a [[Boolean expression]] that combines [[Boolean variable]]s using [[Logical connective|Boolean operator]]s.
 
An expression is ''satisfiable'' if there is some assignment of [[truth value]]s to the variables that makes the entire expression true.
 
==Idea==
Given any decision problem in NP, construct a non-deterministic machine that solves it in polynomial time. Then for each input to that machine, build a Boolean expression which says that the input is passed to the machine, the machine runs correctly, and the machine halts and answers "yes". Then the expression can be satisfied if and only if there is a way for the machine to run correctly and answer "yes", so the satisfiability of the constructed expression is equivalent to asking whether or not the machine will answer "yes".
 
==Proof==
''This proof is based on the one given by Garey and Johnson.''<ref name="Garey">{{cite book|last=Garey|first=Michael R.|coauthors=David S. Johnson|title = Computers and Intractability: A Guide to the Theory of NP-Completeness|publisher = W. H. Freeman|year = 1979|isbn=0-7167-1045-5}}</ref>
 
There are two parts to proving that the Boolean satisfiability problem (SAT) is NP-complete. One is to show that SAT is an NP problem. The other is to show that every NP problem can be reduced to an instance of a SAT problem by a [[polynomial-time many-one reduction]].
 
SAT is in NP because any assignment of Boolean values to Boolean variables that is claimed to satisfy the given expression can be ''verified'' in polynomial time by a deterministic Turing machine. (The statements '''''verifiable''' in polynomial time by a '''deterministic''' Turing machine'' and '''''solvable''' in polynomial time by a '''non-deterministic''' Turing machine'' are totally equivalent, and the proof can be found in many textbooks, for example Sipser's ''Introduction to the Theory of Computation'', section 7.3.).
 
Now suppose that a given problem in NP can be solved by the [[nondeterministic Turing machine]] ''M''&nbsp;=&nbsp;(''Q'',&nbsp;Σ,&nbsp;''s'',&nbsp;''F'',&nbsp;δ), where ''Q'' is the set of states, Σ is the alphabet of tape symbols, ''s''&nbsp;∈&nbsp;''Q'' is the initial state, ''F''&nbsp;⊆&nbsp;''Q'' is the set of accepting states, and δ&nbsp;⊆&nbsp;((''Q''&nbsp;\&nbsp;''F'')&nbsp;×&nbsp;Σ)&nbsp;×&nbsp;(''Q''&nbsp;×&nbsp;Σ&nbsp;×&nbsp;{−1,&nbsp;+1}) is the transition relation. Suppose further that ''M'' accepts or rejects an instance of the problem in time ''p''(''n'') where ''n'' is the size of the instance and ''p'' is a polynomial function.
 
For each input, ''I'', we specify a Boolean expression which is satisfiable [[if and only if]] the machine ''M'' accepts ''I''.
 
The Boolean expression uses the variables set out in the following table. Here, ''q''&nbsp;∈&nbsp;''Q'', −''p''(''n'')&nbsp;≤&nbsp;''i''&nbsp;≤&nbsp;''p''(''n''), ''j''&nbsp;∈&nbsp;Σ, and 0&nbsp;≤&nbsp;''k''&nbsp;≤&nbsp;''p''(''n'').
 
{| class="wikitable"
!Variables
!Intended interpretation
!How many?
|-
|''T<sub>ijk</sub>''
|True if tape cell ''i'' contains symbol ''j'' at step ''k'' of the computation.
|O(''p''(''n'')<sup>2</sup>)
|-
|''H<sub>ik</sub>''
|True if the ''M''&#39;s read/write head is at tape cell ''i'' at step ''k'' of the computation.
|O(''p''(''n'')<sup>2</sup>)
|-
|''Q<sub>qk</sub>''
|True if ''M'' is in state ''q'' at step ''k'' of the computation.
|O(''p''(''n''))
|}
 
Define the Boolean expression ''B'' to be the [[Logical conjunction|conjunction]] of the sub-expressions in the following table, for all −''p''(''n'')&nbsp;≤&nbsp;''i''&nbsp;≤&nbsp;''p''(''n'') and 0&nbsp;≤&nbsp;''k''&nbsp;≤&nbsp;''p''(''n''):
 
{| class="wikitable"
!Expression
!Conditions
!Interpretation
!How many?
|-
|''T<sub>ij0</sub>''
|Tape cell ''i'' initially contains symbol ''j''
|Initial contents of the tape.  For ''i'' > ''n''-1 and ''i'' < 0, outside of the actual input ''I'', the initial symbol is the special default/blank symbol.
|O(''p''(''n''))
|-
|''Q<sub>s0</sub>''
|&nbsp;
|Initial  state of ''M''.
|1
|-
|''H<sub>00</sub>''
|&nbsp;
|Initial position of read/write head.
|1
|-
|''T<sub>ijk</sub>'' → ¬ ''T<sub>ij&prime;k</sub>''
|''j'' ≠ ''j&prime;''
|One symbol per tape cell.
|O(''p''(''n'')<sup>2</sup>)
|-
|''T<sub>ijk</sub>'' ∧ ''T''<sub>''ij&prime;''(''k''+1)</sub> → ''H<sub>ik</sub>''
|''j'' ≠ ''j&prime;''
|Tape remains unchanged unless written.
|O(''p''(''n'')<sup>2</sup>)
|-
|''Q<sub>qk</sub>'' → ¬ ''Q<sub>q&prime;k</sub>''
|''q'' ≠ ''q&prime;''
|Only one state at a time.
|O(''p''(''n''))
|-
|''H<sub>ik</sub>'' → ¬ ''H<sub>i&prime;k</sub>''
|''i'' ≠ ''i&prime;''
|Only one head position at a time.
|O(''p''(''n'')<sup>3</sup>)
|-
|(''H<sub>ik</sub>'' ∧ ''Q<sub>qk</sub>'' ∧ ''T<sub>iσk</sub>'') → <br><math>\bigvee</math><sub>(''q'', ''σ'', ''q&prime;'', ''σ&prime;'', ''d'') ∈ ''δ''</sub>(''H''<sub>(''i''+''d'')(''k''+1)</sub> ∧ ''Q''<sub>''q&prime;''(''k''+1)</sub> ∧ ''T''<sub>''iσ&prime;''(''k''+1)</sub>)
|''k''<''p''(''n'')
|Possible transitions at computation step ''k'' when head is at position ''i''.
|O(''p''(''n'')<sup>2</sup>)
|-
|<math>\bigvee</math><sub>''f'' ∈ ''F''</sub> ''Q''<sub>''fp''(''n'')</sub>
|
|Must finish in an accepting state.
|1
|}
 
If there is an accepting computation for ''M'' on input ''I'', then ''B'' is satisfiable by assigning ''T''<sub>''ijk''</sub>, ''H''<sub>''ik''</sub> and ''Q''<sub>''ik''</sub> their intended interpretations. On the other hand, if ''B'' is satisfiable, then there is an accepting computation for ''M'' on input ''I'' that follows the steps indicated by the assignments to the variables.
 
There are ''O''(''p''(''n'')<sup>2</sup>) Boolean variables, each encodeable in space ''O''(log&nbsp;''p''(''n'')). The number of clauses is ''O''(''p''(''n'')<sup>3</sup>) so the size of ''B'' is ''O''(log(''p''(''n''))''p''(''n'')<sup>3</sup>). Thus the transformation is certainly a polynomial-time many-one reduction, as required.
 
==Consequences==
The proof shows that any problem in NP can be reduced in polynomial time (in fact, logarithmic space suffices) to an instance of the Boolean satisfiability problem. This means that if the Boolean satisfiability problem could be solved in polynomial time by a [[deterministic Turing machine]], then all problems in NP could be solved in polynomial time, and so the [[complexity class]] NP would be equal to the complexity class P.
 
The significance of NP-completeness was made clear by the publication in 1972 of [[Richard Karp]]'s landmark paper, "Reducibility among combinatorial problems", in which he showed that [[Karp's 21 NP-complete problems|21 diverse combinatorial and graph theoretical problems]], each infamous for its intractability, are NP-complete.<ref name="Karp">{{cite book | last = Karp | first = Richard M. | authorlink = Richard Karp | chapter = Reducibility Among Combinatorial Problems | title = Complexity of Computer Computations | editor = Raymond E. Miller and James W. Thatcher (editors) | publisher = Plenum | location = New York | pages = 85–103 | year = 1972 | url = http://www.cs.berkeley.edu/~luca/cs172/karp.pdf | isbn=0-306-30707-3}}</ref>
 
Karp showed each of his problems to be NP-complete by reducing another problem (already shown to be NP-complete) to that problem.  For example, he showed the problem 3SAT (the [[Boolean satisfiability problem]] for expressions in [[conjunctive normal form]] with exactly three variables or negations of variables per clause) to be NP-complete by showing how to reduce (in polynomial time) any instance of SAT to an equivalent instance of 3SAT.  (First you modify the proof of the Cook–Levin theorem, so that the resulting formula is in conjunctive normal form, then you introduce new variables to split clauses with more than 3 atoms.  For example, the clause (A ∨ B ∨ C ∨ D) can be replaced by the conjunction of clauses (A ∨ B ∨ Z) ∧ (¬Z ∨ C ∨ D), where Z is a new variable which will not be used anywhere else in the expression.  Clauses with fewer than 3 atoms can be padded; for example, A can be replaced by (A ∨ A ∨ A), and  (A ∨ B) can be replaced by (A ∨ B ∨ B) ).
 
Garey and Johnson presented more than 300 NP-complete problems in their book ''Computers and Intractability: A Guide to the Theory of NP-Completeness'',<ref name="Garey"/> and new problems are still being discovered to be within that complexity class.
 
Although many practical instances of SAT can be [[Boolean satisfiability problem#Algorithms for solving SAT|solved by heuristic methods]], the question of whether there is a deterministic polynomial-time algorithm for SAT (and consequently all other NP-complete problems) is still a famous unsolved problem, despite decades of intense effort by complexity theorists, mathematical logicians, and others.  For more details, see the article [[P=NP problem]].
 
==References==
{{reflist}}
 
{{DEFAULTSORT:Cook-Levin theorem}}
[[Category:Theorems in computational complexity theory]]
[[Category:Articles containing proofs]]

Latest revision as of 19:26, 27 February 2014

Howdy. The author's name is Eusebio regrettably he never really beloved that name. In his professional life he can be a people manager. He's always loved living for Guam and he owns everything that he has to have there. To drive is one of those things he loves virtually. He's been working by his website for selected time now. Check understand it out here: http://circuspartypanama.com

Here is my site ... clash of clans cheats - My Web Site,