1(a) Build an from the simplest s that accepts the language represented
by the regular expression
. DO NOT skip steps and DO NOT simplify the result. [10]
(b) Obtain without s for the of (a). [10]
2. Prove the following statement using the structural induction:
For every string and every symbol ,
. [15]
Here is the reversal of i.e. spelled backward and it is defined as follows:
Basis Clause:
Inductive Clause: For any string and any symbol ,
.
3. Prove that the language
is not regular,
where denotes the reversal of . [15]
4. For the regular expression answer the following questions:
(a) Simplify it by reducing the number of *. [7]
(b) Give your reason for (a). [7]
(c) Describe in English the language it represents as succinctly as possible. [6]
5. Design a Turing machine that accepts the language {
, and are integers.} You may use the Turing machines
discussed
in the lectures as building blocks. [15]
6 (a) Suppose that a language is accepted by a Turing machine
and that its complement is accepted by a Turing machine , which may or may not be
the same as . Is it possible to construct a Turing machine that accepts both
and its complement ? Justify your answer. [8]
(b) What kind of language is if and exist ? [7]