ArticleslgStudy

computer science

DSPACE

DSPACE 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 DSPACE rather than just read about it. In short: In computational complexity theory, DSPACE or SPACE is the computational resource describing the resource of memory space for a deterministic Turing machine. It represents the total amount of memory space that a "normal" physical computer would need to solve a given computational problem with a given algorithm.

Key takeaways

  • DSPACE 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 DSPACE to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DSPACE from memory before moving on to harder problems.

Reference excerpt

In computational complexity theory, DSPACE or SPACE is the computational resource describing the resource of memory space for a deterministic Turing machine. It represents the total amount of memory space that a "normal" physical computer would need to solve a given computational problem with a given algorithm.

Complexity classes The measure DSPACE is used to define complexity classes, sets of all of the decision problems that can be solved using a certain amount of memory space. For each function f(n), there is a complexity class SPACE(f(n)), the set of decision problems that can be solved by a deterministic Turing machine using space O(f(n)). There is no restriction on the amount of computation time that can be used, though there may be restrictions on some other complexity measures (like alternation). Several important complexity classes are defined in terms of DSPACE. These include:

REG = DSPACE(O(1)), where REG is the class of regular languages. In fact, REG = DSPACE(o(log log n)) (that is, Ω(log log n) space is required to recognize any non-regular language). Proof: Suppose that there exists a non-regular language L ∈ DSPACE(s(n)), for s(n) = o(log log n). Let M be a Turing machine deciding L in space s(n). By our assumption L ∉ DSPACE(O(1)); thus, for any arbitrary k ∈ N {\displaystyle k\in \mathbb {N} } , there exists an input of M requiring more space than k. Let x be an input of smallest size, denoted by n, that requires more space than k, and C {\displaystyle {\mathcal {C}}} be the set of all configurations of M on input x. Because M ∈ DSPACE(s(n)), then | C | ≤ 2 c ⋅ s ( n ) = o ( log ⁡ n ) {\displaystyle |{\mathcal {C}}|\leq 2^{c\cdot s(n)}=o(\log n)} , where c is a constant depending on M. Let S denote the set of all possible crossing sequences of M on x. Note that the length of a crossing sequence of M on x is at most | C | {\displaystyle |{\mathcal {C}}|} : if it is longer than that, then some configuration will repeat, and M will go into an infinite loop. There are also at most | C | {\displaystyle |{\mathcal {C}}|} possibilities for every element of a crossing sequence, so the number of different crossing sequences of M on x is

| S | ≤ | C | | C | ≤ ( 2 c ⋅ s ( n ) ) 2 c ⋅ s ( n ) = 2 c ⋅ s ( n ) ⋅ 2 c ⋅ s ( n ) < 2 2 2 c ⋅ s ( n ) = 2 2 o ( log ⁡ log ⁡ n ) = o ( n ) {\displaystyle |S|\leq |{\mathcal {C}}|^{|{\mathcal {C}}|}\leq (2^{c\cdot s(n)})^{2^{c\cdot s(n)}}=2^{c\cdot s(n)\cdot 2^{c\cdot s(n)}}<2^{2^{2c\cdot s(n)}}=2^{2^{o(\log \log n)}}=o(n)}

According to pigeonhole principle, there exist indexes i < j such that C i ( x ) = C j ( x ) {\displaystyle {\mathcal {C}}_{i}(x)={\mathcal {C}}_{j}(x)} , where C i ( x ) {\displaystyle {\mathcal {C}}_{i}(x)} and C j ( x ) {\displaystyle {\mathcal {C}}_{j}(x)} are the crossing sequences at boundary i and j, respectively. Let x' be the string obtained from x by removing all cells from i + 1 to j. The machine M still behaves exactly the same way on input x' as on input x, so it needs the same space to compute x' as to compute x. However, |x' | < |x|, contradicting the definition of x. Hence, there does not exist such a language L as assumed. □ The above theorem implies the necessity of the space-constructible function assumption in the space hierarchy theorem.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with DSPACE

Start with the simplest possible case. Write down what DSPACE 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 DSPACE 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 DSPACE 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 DSPACE

In research
DSPACE 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 DSPACE 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
DSPACE 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 DSPACE 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study DSPACE in 20 minutes

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

Frequently asked questions

What is DSPACE in simple terms?

In computational complexity theory, DSPACE or SPACE is the computational resource describing the resource of memory space for a deterministic Turing machine. It represents the total amount of memory space that a "normal" physical computer would need to solve a given computational problem with a giv…

Why does DSPACE 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 DSPACE?

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

Tags

  • Complexity classes
  • Computational resources

Keep exploring