Padding technique

from Wikipedia, the free encyclopedia

The padding technique is a method of complexity theory to prove that the equality of certain complexity classes leads to greater equality.

example

The proof that follows from also uses padding. Since, by definition, it is enough to show. (Because of the contraposition , this also shows that it also follows.)

Let and be a suitable nondeterministic Turing machine with running time for a fixed dependent on . Now construct a new language by adding a certain number to 1's to each word:

whereby . This padding artificially inflates the length of the words without significantly increasing the difficulty of the decision problem. With this construction is as set out below. It is then derived from the assumption that .

can for input as follows in non-deterministic polynomial time decision , check if: be of the form , and discard, if this is not the case. Otherwise simulate the nondeterministic Turing machine with input . The simulation takes the time nondeterministically , which is polynomial in the size of . Hence is .

With the assumption there is a deterministic machine that decides in polynomial time. The language can then be decided in exponential time by simulating the machine on the input for an input . This only takes an exponential amount of time, depending on the input size.

This argument is sometimes used for space complexity , alternating classes, and constrained alternating classes .

See also

literature