Prentice-Hall     Addision-Wesley

Copyright © 2007 Gradiance Corporation.

 

Gradiance Online Accelerated Learning

 

 

 

 

 

     

Epsilon-NFA's

 

 



1.  

Here is a nondeterministic finite automaton with epsilon-transitions:

http://www.gradiance.com/phmu/pictures/ullman_nfa2.gif

Suppose we use the extended subset construction from Section 2.5.5 (p. 77) to convert this epsilon-NFA to a deterministic finite automaton with a dead state, with all transitions defined, and with no state that is inaccessible from the start state. Which of the following would be a transition of the DFA?

Note: we use S-x->T to say that the DFA has a transition on input x from state S to state T.

 

 

 

 a) 

{A,B}-ε->{B}

 

 b) 

{B,C,D}-2->{B,C,D}

 

 c) 

{A,B}-4->{D}

 

 d) 

{B}-2->{B,C}

 

 

 

 

 

2.  

Identify which automata define the same language and provide the correct counterexample if they don't. Choose the correct statement from the list below.

http://www.gradiance.com/phmu/pictures/ullman_aut5.GIF

 

 

 

 a) 

(c) and (f) define the same language.

 

 b) 

(b) and (f) define the same language.

 

 c) 

(b) and (f) do not define the same language and the following counterexample shows it. String 0012 is accepted by one and not by the other.

 

 d) 

(a) and (e) do not define the same language and the following counterexample shows it. String 0012 is accepted by one and not by the other.

 

 

 

 

 

3.  

Here is an epsilon-NFA:

http://www.gradiance.com/phmu/pictures/ullman_enfa2.gif

Suppose we construct an equivalent DFA by the construction of Section 2.5.5 (p. 77). That is, start with the epsilon-closure of the start state A. For each set of states S we construct (which becomes one state of the DFA), look at the transitions from this set of states on input symbol 0. See where those transitions lead, and take the union of the epsilon-closures of all the states reached on 0. This set of states becomes a state of the DFA. Do the same for the transitions out of S on input 1. When we have found all the sets of epsilon-NFA states that are constructed in this way, we have the DFA and its transitions.

Carry out this construction of a DFA, and identify one of the states of this DFA (as a subset of the epsilon-NFA's states) from the list below.

 

 

 

 a) 

BCDFGHIJK

 

 b) 

BCDEGHIJKMN

 

 c) 

BCDEGHIJKLMN

 

 d) 

BCDGHIJKMN