1. Find an NFA without
that accepts the same language as the following NFA-
:
[26]
|
|
|
||||
| { |
{ |
||||
| { |
{ |
The initial state is
and the accepting state is
.
The transitions not given in the table are to the empty set.
Solution
|
|
|
||||
| {
|
{ |
||||
| { |
{
|
||||
| {
|
{ |
The initial state is
and the accepting state is
.
2. Find an FA that accepts the same language as the following NFA: [26]
|
|
|
||||
| { |
{ |
||||
| { |
{ |
||||
| { |
The initial state is
and the accepting state is
.
Solution
|
|
|
||||
| { |
{ |
{ |
{ |
||
| { |
{ |
{ |
{ |
||
| { |
{ |
{ |
{ |
||
| { |
{ |
{ |
{ |
||
| { |
|||||
| { |
The initial state is {
} and the accepting states are {
} and {
} .
3. Let
and
be sets of states of an NFA-
.
Prove that
by structural induction. [20]
Proof: Proof by induction on
Note that here we are trying to prove that all elements of
have a certain property.
The property here is "being in set
".
Basis Step: Since the basis of
is
, we show
.
By the definition of
-closure,
and
.
Hence
and
.
Hence
.
Inductive Step: Assume that for any arbitrary state
in
,
.
We need to show that
.
If
,
then
or
.
Hence by the definition of
-closure
or
.
Hence
, which is what we needed to show.
4. For the FA given below answer the following questions:
(a) Find
using the recursive formula given by Kleene's Theorem. [10]
(b) Find the language accepted by this FA. You may answer this by inspection. [18]
|
|
|
||||
The initial state is
and the accepting state is
({, } have been deleted from the original question).
Solutions
Let us use
to denote state
for simplicity.
(a)
=
=
Hence
=
=
(b)
or
or any other equivalent one.