next up previous
Next: About this document

CS 390 Final Exam

May 6, 1997


1(a). Find an NFA that recognizes the same language as the following tex2html_wrap_inline41 :

tabular11



The initial state is 0 and the accepting state is 5.
(b) Find tex2html_wrap_inline105 .
(c) Find tex2html_wrap_inline107 .

(d) Find an FA that recognizes the same language as the following NFA:

tabular18

The initial state is 0 and the accepting state is 1.

2. Find a regular expression for each of the following languages over the alphabet {0,1}:

(a) The set of all strings that have an even number of 0's.
(b) The set of all strings that do not have 01 as a substring.
(c) The language L defined recursively as follows:
Basis Clause: tex2html_wrap_inline167
Inductive Clause: If tex2html_wrap_inline169 , then tex2html_wrap_inline171 and tex2html_wrap_inline173 .
Extremal clause: Nothing is in L unless it is obtained from the above two clauses.

3. Prove by induction that if L is regular, then tex2html_wrap_inline179 is regular for all natural number tex2html_wrap_inline181 .

4. In the questions below the languages are over the alphabet {0,1}.

(a) Prove that the language { tex2html_wrap_inline185 : i > j} is non-regular.
You may use { tex2html_wrap_inline189 : tex2html_wrap_inline191 } for the infinite set of strings.
(b) Prove that the set of strings of the form xyx for some string x with tex2html_wrap_inline197 and some string y is non-regular.

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 = {a, ba}. (b) A Turing machine that decides the language L = {a, ba}.
(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.



next up previous
Next: About this document

S. Toida
Fri Aug 22 13:27:01 EDT 1997