DLOGTIME
In computational complexity theory, DLOGTIME is the complexity class of all computational problems solvable in a logarithmic amount of computation time on a deterministic Turing machine. It must be defined on a random-access Turing machine, since otherwise the input tape is longer than the range of cells that can be accessed by the machine. It is a very weak model of time complexity: no random-access Turing machine with a smaller deterministic time bound can access the whole input.[1]
DLOGTIME machines are rarely used as-is. Instead, they are usually used as part of a theoretical construct for studying reducibility. They cannot be used to produce output that is longer than logarithmic length. However, they can be used to indirectly produce such an output, in the following sense: Given any log-length binary address, it produces the corresponding bit of the output. Since a polynomial-sized integer has logarithmic-length binary representation, this is possible in DLOGTIME.
Definition
[edit]Consider a deterministic Turing machine with the following tapes:[1]: 140
- The read-only input tape.
- The address tape, which it can read and write.
- The work tape, which it can read and write.
The machine is only allowed to read from the input tape thus: It transitions to a "read" state, then at the next time-step, it receives the bit on the input tape, at the index according to the binary address on the address tape.
DLOGTIME is the class of decision problems solvable by such a machine in time where is the length of the input.
Examples
[edit]DLOGTIME can solve some problems relating to verifying the length of the input, such as "Is the input of even length?", which can be solved in logarithmic time using binary search.
More generally, for any and integer , it can decide if . It does so by first converting to its binary representation on the work tape, using binary search, then going through the binary representation bit by bit, keeping track of its mod-p status using the lookup table stored in the Turing machine's state-transition table.
The family of DLOGTIME-decidable problems is closed under finite union, finite intersection, and negation.
Transducer
[edit]The DLOGTIME machine may be supplied with an output tape, though in that case, it would have only enough time to output bits. This allows it to perform sequence transduction, from a length sequence to a length sequence.
In order to perform transductions into longer sequences, we may define implicit transduction by the standard trick, also used in Log-space reduction.
A function is implicitly DLOGTIME computable iff:[1]: 140
- It is polynomially bounded: There exists some such that for all .
- is DLOGTIME-decidable.
This allows definition of DLOGTIME-computation of boolean circuit families.
Note: Because DLOGTIME machine only has enough time to check entries in the input, we usually must restrict the input to the function to only unary input. That is, the input to the function can only be , to avoid trivial failures.
Circuit complexity
[edit]DLOGTIME-uniformity is used in circuit complexity. A boolean circuit family is DLOGTIME-uniform iff the function is implicitly DLOGTIME computable, where is a description of the circuit.[1][2]
It is very weak in the following sense: , where AC consists of DLOGTIME-uniform unlimited fan-in circuits of depth between 0 and 2. Also, is not comparable with , meaning that neither one of them contains the other (XOR is in DLOGTIME, AND and OR are in ).[1] The assumption of DLOGTIME-uniformity is important, since otherwise even a circuit family may encode a non-computable sequence in the choice of their indices.
To show , note that the machine can perform only random-access reads, each returning one input bit. Call the transcript of such a computation the ordered listof the positions it probes and the bits it observes. Since each is determined by the previously read bits, there are only possible transcripts. For each accepting transcript, build an AND gate that checks exactly those literals "position contains bit ". Wire all these gates into one big OR. That yields a circuit. It is clear, by construction, that this construction is -uniform.
References
[edit]- ^ a b c d e Leeuwen, Jan (1990-09-12). Algorithms and Complexity. Elsevier. ISBN 978-0-444-88071-0.
- ^ Allender, Eric; Gore, Vivek (1993), "On strong separations from AC0", Advances in computational complexity theory (New Brunswick, NJ, 1990), DIMACS Ser. Discrete Math. Theoret. Comput. Sci., vol. 13, Amer. Math. Soc., Providence, RI, pp. 21–37, MR 1255326. See in particular p. 23.