Section 6.2

Time and Space Complexity

[13/38%]
Show
LaTeX
Example 6.11

Suppose lim⁡n→∞t1(n)/n=∞\lim_{n \rightarrow \infty } t_{1}(n) / n=\infty. If t1(n)=t2(n)t_{1}(n)=t_{2}(n) for sufficiently large nn, then DTIME⁡(t1(n))=DTIME⁡(t2(n))\operatorname {DTIME}\left(t_{1}(n)\right)=\operatorname {DTIME}\left(t_{2}(n)\right).

?
Example 6.12

If c>1c>1, then for any ϵ>0,DTIME⁡(cn)=DTIME⁡((1+ϵ)n\epsilon >0, \operatorname {DTIME}(c n)=\operatorname {DTIME}((1+ \epsilon ) n).

?
Example 6.13

Show that if A,B∈PA, B \in P, then AB∈PA B \in P.

?
Example 6.14

Show that if A∈PA \in P, then A∗∈PA^{*} \in P.

?
Example 6.15

PSPACE⁡⊆EXPPOLY⁡\operatorname {PSPACE}\subseteq \operatorname {EXPPOLY}.

?
Problem 6.2.1

Suppose that s(n)≥log⁡ns(n) \geq \log n. Prove that if a Turing machine halts on all inputs and has a space bound s(n)s(n), then it must have a time bound cs(n)c^{s(n)} for a constant cc. Use this result to show that, for any s(n)s(n), every set in DSPACE⁡(s(n))\operatorname {DSPACE}(s(n)) is a recursive set.

?
Problem 6.2.2

Show that every finite set of strings belongs to DTIME⁡(n)\operatorname {DTIME}(n).

?
Problem 6.2.3

Let A∈DTIME⁡(f(n))A \in \operatorname {DTIME}(f(n)) and B∈DTIME⁡(g(n))B \in \operatorname {DTIME}(g(n)). Prove that A∪BA \cup B and A∩BA \cap B are in DTIME⁡(max⁡{f(n),g(n)})\operatorname {DTIME}(\max \left\{ f(n), g(n)\right\} ). Conclude from these results that the complexity classes P,PSPACE,EXPP, \mathrm{PSPACE}, \mathrm{EXP} and EXPPOLY\mathrm{EXPPOLY} are all closed under Boolean operations union, intersection and complementation.

?
Problem 6.2.4

In the proof of Theorem 6.10, we can actually use nine moves of M′M^{\prime }, instead of ten moves, to simulate at least mm moves of MM. This can be done by merging the fourth and fifth moves into one move. Can you use less than nine moves in M′M^{\prime } to do the same job?

?
Problem 6.2.5

Estimate how many possible local configurations there are in the proof of Theorem 6.10.

?
Problem 6.2.6

Show that every context-free language is in PP (i.e., for every context-free grammar, there is a polynomial-time parsing algorithm).

?
Problem 6.2.7

Show that if AA and BB are in PSPACE\mathrm{PSPACE}, then ABA B and A∗A^{*} are also in PSPACE\mathrm{PSPACE}.

?
Problem 6.2.8

Let A,B⊆1(0+1)∗+0A, B \subseteq 1(0+1)^{*}+0 such that each string xx in AA or BB is a binary representation of a natural number. We let n(x)n(x) be the natural number whose binary representation is xx.

?
(a)

Let A+B={x∈1(0+1)∗+0∣n(x)=n(y)+n(z) for some y∈A and z∈B}A+B=\left\{ x \in 1(0+1)^{*}+0 \mid n(x)=n(y)+n(z)\text{ for some }y \in A\text{ and }z \in B\right\}. Show that if A,B∈PSPACEA, B \in \mathrm{PSPACE}, then A+BA+B is also in PSPACE.

(b)

Let A⋆B={x∈1(0+1)∗+0∣n(x)=n(y)⋅n(z) for some y∈A and z∈B}A \star B=\left\{ x \in 1(0+1)^{*}+0 \mid n(x)=n(y) \cdot n(z)\text{ for some }y \in A\text{ and }z \in B\right\}. Show that if A,B∈PSPACEA, B \in \mathrm{PSPACE} then A⋆BA \star B is also in PSPACE.

(c)

Assume that A,B∈PA, B \in P. Is it true that A+BA+B is also in PP? Is it true that A⋆BA \star B is also in PP?