ArticleslgStudy

science

DLOGTIME

DLOGTIME is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DLOGTIME rather than just read about it. In short: 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.

Key takeaways

  • DLOGTIME belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DLOGTIME to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DLOGTIME from memory before moving on to harder problems.

Reference excerpt

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. 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 Consider a deterministic Turing machine with the following tapes:

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 O(log⁡n) time where n is the length of the input.

Examples 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 p≥1 and integer k, it can decide if |x|≡kmodp. It does so by first converting |x| 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 The DLOGTIME machine may be supplied with an output tape, though in that case, it would have only enough time to output O(log⁡n) bits. This allows it to perform sequence transduction, from a length n sequence to a length O(log⁡n) 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 f:2∗→2∗ is implicitly DLOGTIME computable iff:

It is polynomially bounded: There exists some c>0 such that f(x)≤|x|c for all x∈2∗. Lf={⟨x,i,c⟩∣f(x)i=c} is DLOGTIME-decidable. This allows definition of DLOGTIME-computation of Boolean circuit families. Note: Because DLOGTIME machine only has enough time to check O(log⁡n)≪n entries in the input, we usually must restrict the input to the function f to only unary input. That is, the input to the function can only be ϵ,1,11,111,…, to avoid trivial failures.

Circuit complexity DLOGTIME-uniformity is used in circuit complexity. A Boolean circuit family C0,C1,… is DLOGTIME-uniform iff the function 1n↦desc(Cn) is implicitly DLOGTIME computable, where desc(Cn) is a description of the circuit. It is very weak in the following sense: 𝖠𝖢00⊊𝖣𝖫𝖮𝖦𝖳𝖨𝖬𝖤⊊𝖠𝖢20, where AC consists of DLOGTIME-uniform unlimited fan-in circuits of depth between 0 and 2. Also, 𝖣𝖫𝖮𝖦𝖳𝖨𝖬𝖤 is not comparable with 𝖠𝖢10, meaning that neither one of them contains the other (XOR is in DLOGTIME, AND and OR are in 𝖠𝖢10). The assumption of DLOGTIME-uniformity is important, since otherwise even a 𝖠𝖢00 circuit family may encode a non-computable sequence in the choice of their indices. To show 𝖣𝖫𝖮𝖦𝖳𝖨𝖬𝖤⊂𝖠𝖢20, note that the machine can perform only O(log⁡n) random-access reads, each returning one input bit. Call the transcript of such a computation the ordered list((p1,b1),…,(pclog⁡n,bclog⁡n))of the positions it probes and the bits it observes. Since each pt is determined by the previously read bits, there are only 2clog⁡n=𝗉𝗈𝗅𝗒(n) possible transcripts. For each accepting transcript, build an AND gate that checks exactly those clog⁡n literals ↦ "position pj contains bit bj". Wire all these gates into one big OR. That yields a 𝖠𝖢20 circuit. It is clear, by construction, that this construction is 𝖣𝖫𝖮𝖦𝖳𝖨𝖬𝖤-uniform.

References

Worked examples

Example 1 — a first encounter with DLOGTIME

Start with the simplest possible case. Write down what DLOGTIME claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DLOGTIME before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DLOGTIME ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DLOGTIME

In research
DLOGTIME appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DLOGTIME in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DLOGTIME is common in secondary-school and first-year university syllabi. It links to neighbouring topics Complexity classes, so understanding it makes those chapters shorter.
In everyday life
Look for DLOGTIME outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DLOGTIME” →

How to study DLOGTIME in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DLOGTIME means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DLOGTIME out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DLOGTIME in simple terms?

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…

Why does DLOGTIME matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DLOGTIME?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DLOGTIME.

Tags

  • Complexity classes

Keep exploring