ArticleslgStudy

computer science

DTIME

DTIME is a computer 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 DTIME rather than just read about it. In short: In computational complexity theory, DTIME (or TIME) is the computational resource of computation time for a deterministic Turing machine. It represents the amount of time (or number of computation steps) that a "normal" physical computer would take to solve a certain computational problem using a certain algorithm.

Key takeaways

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

Reference excerpt

In computational complexity theory, DTIME (or TIME) is the computational resource of computation time for a deterministic Turing machine. It represents the amount of time (or number of computation steps) that a "normal" physical computer would take to solve a certain computational problem using a certain algorithm. It is one of the most well-studied complexity resources, because it corresponds so closely to an important real-world resource (the amount of time it takes a computer to solve a problem). The resource DTIME is used to define complexity classes, sets of all of the decision problems that can be solved using a certain amount of computation time. If problem instances of input size n can be solved in ⁠O(f(n))⁠, the problem is in the complexity class ⁠𝖣𝖳𝖨𝖬𝖤(f(n))⁠ (or ⁠𝖳𝖨𝖬𝖤(f(n))⁠). There is no restriction on the amount of memory space used, but there may be restrictions on some other complexity resources (like alternation).

Complexity classes in DTIME Many important complexity classes are defined in terms of DTIME, containing all of the problems that can be solved in a certain amount of deterministic time. Any proper complexity function can be used to define a complexity class, but only certain classes are useful to study. In general, we desire our complexity classes to be robust against changes in the computational model, and to be closed under composition of subroutines. DTIME satisfies the time hierarchy theorem, meaning that asymptotically larger amounts of time always create strictly larger sets of problems. The well-known complexity class P comprises all of the problems that can be solved in a polynomial amount of DTIME. It can be defined formally as:

𝖯=⋃k∈ℕ𝖣𝖳𝖨𝖬𝖤(nk) P is the smallest robust class that includes linear-time problems 𝖣𝖳𝖨𝖬𝖤(n) (AMS 2004, Lecture 2.2, pg. 20). P is one of the largest complexity classes considered "computationally feasible". A much larger class using deterministic time is EXPTIME, which contains all of the problems solvable using a deterministic machine in exponential time. Formally, we have

𝖤𝖷𝖯𝖳𝖨𝖬𝖤=⋃k∈ℕ𝖣𝖳𝖨𝖬𝖤(2nk). Larger complexity classes can be defined similarly. Because of the time hierarchy theorem, these classes form a strict hierarchy; we know that 𝖯⊊𝖤𝖷𝖯𝖳𝖨𝖬𝖤, and on up.

Machine model For robust classes, such as P, the exact machine model used to define DTIME can vary without affecting the power of the resource. The computational complexity literature often defines DTIME based on multitape Turing machines, particularly when discussing very small time classes. A multitape deterministic Turing machine can never provide more than a quadratic time speedup over a singletape machine. Due to the linear speedup theorem for Turing machines, multiplicative constants in the time bound do not affect the extent of DTIME classes; a constant multiplicative speedup can always be obtained by increasing the number of states in the finite state control and the size of the tape alphabet. In the statement of Papadimitriou, for a language L,

Let L∈𝖣𝖳𝖨𝖬𝖤(f(n)). Then, for any ϵ>0, L∈𝖣𝖳𝖨𝖬𝖤(f′(n)), where f′(n)=ϵf(n)+n+2.

Generalizations Using a model other than a deterministic Turing machine, there are various generalizations and restrictions of DTIME. For example, if we use a nondeterministic Turing machine, we have the resource NTIME. The relationship between the expressive powers of DTIME and other computational resources are very poorly understood. One of the few known results is

𝖣𝖳𝖨𝖬𝖤(O(n))≠𝖭𝖳𝖨𝖬𝖤(O(n)) for multitape machines. This was extended to 𝖣𝖳𝖨𝖬𝖤(O(nlog∗n))≠𝖭𝖳𝖨𝖬𝖤(O(nlog∗n)) by Santhanam, where log∗n is the iterated logarithm. If we use an alternating Turing machine, we have the resource ATIME.

Notes

References

Worked examples

Example 1 — a first encounter with DTIME

Start with the simplest possible case. Write down what DTIME claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer 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 DTIME 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 DTIME 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 DTIME

In research
DTIME appears in computer 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 DTIME 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
DTIME is common in secondary-school and first-year university syllabi. It links to neighbouring topics Complexity classes, Computational resources, so understanding it makes those chapters shorter.
In everyday life
Look for DTIME 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 “DTIME” →

How to study DTIME in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DTIME 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 DTIME out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DTIME in simple terms?

In computational complexity theory, DTIME (or TIME) is the computational resource of computation time for a deterministic Turing machine. It represents the amount of time (or number of computation steps) that a "normal" physical computer would take to solve a certain computational problem using a c…

Why does DTIME matter?

Because it connects several computer 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 DTIME?

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 DTIME.

Tags

  • Complexity classes
  • Computational resources

Keep exploring