xxx_hd4_8

# xxx_hd4_8 - 332 CHAPTER 8 SPACE COMPLEXITY 8.28 Show that...

• Notes
• 2

This preview shows pages 1–2. Sign up to view the full content.

332 CHAPTER 8 / SPACE COMPLEXITY 8.28 Show that A NFA is NL -complete. 8.29 Show that E DFA is NL -complete. 8.30 Give an example of an NL -complete context-free language. A 8.31 Define CYCLE = { G | G is an directed graph that contains a directed cycle } . Show that CYCLE is NL -complete. SELECTED SOLUTIONS 8.5 Let A 1 and A 2 be languages that are decided by NL -machines N 1 and N 2 . We construct three Turing machines: N deciding A 1 A 2 ; N deciding A 1 A 2 ; and N * deciding A * 1 . Each of these machines receives input w . Machine N nondeterministically branches to simulate N 1 or to simulate N 2 . In either case, N accepts if the simulated machine accepts. Machine N nondeterministically selects a position on the input to divide it into two substrings. Only a pointer to that position is stored on the work tape— insufficient space is available to store the substrings themselves. Then N simulates N 1 on the first substrings, branching nondeterministically to simulate N 1 ’s nonde- terminism. On any branch that reaches

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Spring '09
• Ib
• ANFA, N1 ’s nondeterminism, ﬁrst input symbol, input position pointers

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern