Any language called reducible by Karp to the language if function exists calculated in polynomial time, where F (x) belongs if x belongs . A language is called NP-hard if any NP class language reduces to it, and is called NP-complete if it is NP-hard and reduces itself to NP class. If there is an algorithm that solves an NP-complete problem in polynomial time, then all NP-problems are of class P.
Consider two languages and over the alphabets and . Information to Karp is a function computable in polynomial time such that . So informally language "Not harder" language .
If such a function exists say that reducible by Karp to and write
Note that Kap information is a special case of Cook information . In English sources, you can also find the name en: many-one reduction .
The PSPACE language class is the set of languages allowed by a deterministic Turing machine with a polynomial space constraint.
The NPSPACE language class is the set of languages allowed by a non-deterministic Turing machine with a polynomial space constraint.
Transitivity
The main property of Kap information is transitivity. If we represent languages as symbols, then we can consider them as a mathematical operation: Α> Β, Β> Ε → Α> Ε.
See also
- The concept of information. List.
Links
- The course "Introduction to the structural theory of complexity"
- Hopkfroft J., Motvani R., Ulman J. Introduction to the theory of automata, languages and computations, 2nd ed .: Trans. from English - M .: Publishing house "Williams", 2002.
- MN Vyalyy, The complexity of computational problems - the definition of functions, without the concepts of "language", "alphabet", etc.