CS 390 Final Exam


April 25, 1996


1. Find a regular expression for the following languages over the alphabet {0,1}.
(a) the set of strings with an odd number of 0's.
(b) the set of strings not containing a substring 000.

2. Find an FA equivalent to the NFA given below. click here for the NFA.

3. Show that the language L = { tex2html_wrap_inline32 } is not regular.
Hint: Try simple languages for the infinite set of strings.

4 (a) Inductively define the set of states at distance k (i.e. apply tex2html_wrap_inline36 k times) from a state q of an tex2html_wrap_inline42 (not tex2html_wrap_inline44 ).
(b) Prove by induction that tex2html_wrap_inline46 .
tex2html_wrap_inline48 for a set of states S of an tex2html_wrap_inline44 is defined inductively as follows:
Basis: tex2html_wrap_inline54
Induction: For any tex2html_wrap_inline56 , tex2html_wrap_inline58 .
Extremal Clause: No state is in tex2html_wrap_inline48 unless it can be obtained using Basis and Induction.

5. Design a Turing machine for (a) and (b), and answer (c):
You may use the basic Turing machines, shifter, copier and eraser.
(a) A Turing machine that accepts but not decides the language L = {ab}. (b) A Turing machine that decides the language L = {ab}.
(c) Does the Turing machine of (a) solve the problem "Does a string belong to L ?" ? Explain what the Turing machine does when a string is given to it and explain in what sense it solves or does not solve the problem.




S. Toida
Wed Jan 15 18:00:28 EST 1997