1. Which of the following statements are true and which are false ?
(a)
.
(b)
.
(c)
is regular if
,
, and
ar
e regular.
(d) The string
is represented neither by
nor
by
.
(e) Suppose that A and B are sets, that S and T are subsets of A and that
is a function from A to B. Then
.
2 (a) Find an
that recognizes the same language as the following
:
| State |
|||
| { |
{ |
||
| { |
{ |
||
| { |
{ |
The initial state is
and the accepting state is
.
(b) Find
.
(c) Find
.
3. Find a DFA that accepts the same language as the following NFA:
|
|
|
||||
| { |
{ |
||||
| { |
{ |
||||
| { |
|||||
4. Find a regular expression for each of the following languages over the alphabet {0, 1}:
(a) The language of all strings containing at least two 0's.
(b) The language of all strings not containing the string 00
as their substring.
5. Prove that
=
for all strings
over the alphabet {a, b} by structural (general) induction,
where
is the reversal of string
(i.e.
spelled backward)
and
denotes the length of string
.