6 Complexity Classes

\P=k1TIME(nk)NP=k1NTIME(nk)PSPACE=k1SPACE(nk)NPSPACE=k1NSPACE(nk)EXP=k1TIME(2nk)LOGSPACE=k1SPACE(k×log(n))

6.1 Hierarchy

LOGSPACE\PNPPSPACE=NPSPACEEXPRRE

Since LOGSPACEPSPACE, at least one of those inclusions is strict:

LOGSPACE\P,\PNP,NPPSPACE

It is not yet know which one of those is a strict inclusion.

Theorem. LOGSPACE\P. Proof. Let ILOGSPACE. There a TM that computes xI in \O(log\absx) space. M can range through \O(\absxlog\absx#Q#Σlog\absx) configurations. A halting computation cannot cycle on configurations. So M computes in \O(\absxk) for some k.

Theorem. (Savitch) NPSPACE=PSPACE.

Theorem. Hierarchy of time and space. If f is appropriate, then TIME(f(n))TIME((f(2n+1))3), and SPACE(f(n))SPACE(f(n)×logf(n)). Corollary. \PEXP
Proof. \PEXP is obvious because 2n grows faster than any polynomial. It is strict because \PTIME(2n)TIME((2(2n+1))3)TIME(2n2). This corollary, together with the fact that NTIME(f(n))TIME(cf(n)) lets us conclude that NPEXP.

Theorem. Hierarchy 2. Let f be an appropriate measuring function, and k a constant. Then

SPACE(f(n))NSPACE(f(n))

TIME(f(n))NTIME(f(n))

NSPACE(f(n))TIME(klogn+f(n))

 


Resulting regular expres­sion:

L2={y:x,z  s.t.|x|=|z| and xyzL}

(Example) is regular.onsider some DFA for L. For every n0, let An be the set of states s such that there is *some* word of length n which leads the DFA from the initial state to s. Let Bn be the set of states t such that there is *some* word of length n which leads the DFA from t to an accepting state. Finally, for any two states s,t, let Rs,t be the (regular) set of words leading the DFA from s to t. We have

L2=n0sAntBnRs,t.

Since there are only finitely many possibilities for s,t, the union is in fact finite, and so regular