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 NL is closed under the operations union, concatenation, and star.

Short Answer

Expert verified

.

Step by step solution

01

Step-1:Class NL(Non-deterministic Logarithmic space)

On a non-deterministic Turing machine, NL is a class of languages that is decidable in logarithmic space.

02

Step-2- To Explain language by ML-machines

TakeB1and B2to be languages determined by NL-machinesN1and N2. Make three Turing machines:NUdeciding B1B2and; NOdeciding B1B2.N*deciding B1..Each of these machines works in the following way.

1.The machine NUbranches nondeterministically to simulate N1or to simulate N2. Accepts NUin either scenario if the simulated machine accepts.

2.To divide the input into two substrings, the machinechooses a nondeterministic place on the input. On the work tape, only a pointer to that spot is maintained because there isn't enough room to hold the substrings themselves. ThenNOsimulatesN1nondeterminism on the first substring by branching nondeterministically.NOsimulatesN2on the second substring on any branch that reaches the accept state.

3.MachineN*has a more complex algorithm, so we describe its stages.

N* = “On input w:

  • Set two input position pointers p1andp2 to 0 and the position immediately before the first input symbol.
  • Accept if no additional input symbols appear afterp2.
  • Movep2to a nondeterministically chosen location.
  • To simulateN1'snondeterminism, simulateN1on the substring of w from the location succeedingp1to the position atp2, branching nondeterministically.
  • Copy p1 to p1 and proceed to stage 2 if such a part of the simulation achieves N1'sapprove state. Reject, if N1 rejects on this branch.

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

Study anywhere. Anytime. Across all devices.

Sign-up for free