Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Show that PSPACE is closed under the operations union, complementation, and star.

Short Answer

Expert verified

The entire running time is O(nk+1). This means that M is a nondeterministic poly-time decider forL1*.

Step by step solution

01

To PSPACE the collection

PSPACE is the collection of all decision problems that a Turing machine can answer using a polynomial space in computational complexity theory. If we denote by SPACEfn, the set of all problems that can be solved by turning machines using Otn space for some function t of the input size n, then we can define PSPACE formally as

PSPACE=kNSPACEnk

PSPACE is a strict superset of the set of context-sensitive languages.

02

To explain the nondeterministic function

Suppose that L1,L2NP. This means that there exist nondeterministic deciders M1and M2that decide L1in nondeterministic time and in nondeterministic time O(nk)and L2in nondeterministic time O(nl), respectively.

It is possible to demonstrate that

  1. There is a poly-time deciderMthat is nondeterministic and can be given as L(M)=L1L2.
  2. There is a poly-time decider Mthat is nondeterministic and can be given as L(M)=L1L2, and
  3. There is a poly-time decider M that is nondeterministic and can be given as role="math" localid="1663221411071" L(M)=L1L2, and
  4. There is a poly-time decider Mthat is nondeterministic and can be given as L(M)=L1*.
03

To Set up the four machines

Now, set up the four machines Mfor the various operations. The structures are typical; the complexity analysis of the running time is an added feature. It's worth noting that it can simplify the constructs by leveraging the power of nondeterministic options.

  1. Intersection:

M=”On input :

  1. Execute M1on w. If M1is rejected, then reject.
  2. Otherwise, execute M2on w. If rejected then reject.
  3. Else accept.”
  4. Union:

M=”On input w:

  1. Execute M1on w. If M1is rejected, then reject.
  2. Otherwise, execute M2 on w. If rejected then reject.
  3. Else accept.”

Clearly, in every computation tree on input wof length n, the longest branch is O(nmax{k,l}). As a result, M is a nondeterministic poly-time decider for L1L2.

Note that we are not running M1and M2in parallel in the preceding situations, as this was required in the proof that identifiable languages are closed under union. Another option is to choose either M1 or M2in a nondeterministic manner and then simulate only that machine.

04

To Concatenation the input states

  1. Concatenation:

M = ”On input :

  1. Split winto w1,w2in a nondeterministic way so that w=w1,w2.
  2. Execute M1 on role="math" localid="1663222239526" w. If M1 is rejected, then reject.
  3. Otherwise, execute role="math" localid="1663222276819" M2on w. If M2rejected then reject.
  4. Else accept.”

Clearly, in every computation tree on input w of length n, the longest branch is O(nmax{k,l}). Because on a two-tape TM, step 1 requires just On steps. As a result, Mis a nondeterministic poly-time decider forL1L2.

  1. Kleene star:

M = ”On input :

  1. Accept if it is a w=.
  2. Select a number min a nondeterministic manner such that 1m|w|.
  3. Split nondeterministicallyrole="math" localid="1663222498881" w intom pieces in such a way thatw=w1w2...wm
  4. For all i,1im;: Execute M1on w. IfM1is rejected, then reject.
  5. Else ( M1accepted all wi,1im), accept”.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

For each n, exhibit two regular expressions,R  and  S , of length poly(n), whereL(R)L(S), but where the first string on which they differ is exponentially long. In other words,L(R)and  L(S) must be different yet agree on all strings of length up to2nd for some constant ε>0.

Show that EDFAis NL-complete.

Give an example of an NL-complete context-free language.

The game of Nim is played with a collection of piles of sticks. In one move, aplayer may remove any nonzero number of sticks from a single pile. The players alternately take turns making moves. The player who removes the very last stick loses. Say that we have a game position in Nim with k piles containing s1,.....,sksticks. Call the position balanced if each column of bits contains an even number of 1s when each of the numbers s , is written in binary, and the binary numbers are written as rows of a matrix aligned at the low order bits. Prove the following two facts.

  1. Starting in an unbalanced position, a single move exists that changes theposition into a balanced one.
  2. Starting in a balanced position, every single move changes the position intoan unbalanced one.

Let NIM={s1,...,sk|each siis a binary number and Player I has a winningstrategy in the Nim game starting at this position}. Use the preceding facts about balanced positions to show that NIMLis missing.

Show that for any function f:NR+where f(n)n, the space complexity class isSPACE(f(n))the same whether you define the class by using the single tape TM model or the two-tape read-only input TM model.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free