Chapter 2-Finite Automata FLAT
Chapter 2-Finite Automata FLAT
Chapter 2-Finite Automata FLAT
Theory
• The start symbol of the equivalent DFA is ε-closure(0) – all the states
reachable from state 0 via a path in which every edge is labeled ε.
Note that a path can have no edges, so 0 is reached from itself by such
a path.
07/10/2021 Formal Language and Automata Theory 30
Example(cont..)
• ε-closure(0) = {0, 1, 2, 4, 7} = A Let ε-closure(0) be named as “A”.
• The input symbol alphabet here is {a, b}.
• The algorithm tells us to mark A and then to compute ε-closure(move(A, a)).
• We first compute move(A, a) – the set of states, N, having transitions on ‘a’
from members of A.
• Among the states 0, 1, 2, 4 and 7 (the members of A), only 2 and 7 have such
transitions, to 3 and 8 so, move(A, a) = {3, 8}
• Then compute
• ε-closure({3, 8}) – all the states reachable from the states 3 and 8, separately,
via a path in which every edge is labeled ε.
• ε-closure(move(A, a)) = ε-closure({3, 8})
• = {1, 2, 3, 4, 6, 7, 8} = B
• Let us call this set B. Thus Dtran[A, a] = B.
• Repeat the same process for the input symbol ‘b’ and compute ε-
closure(move(A, b)).
• Among the states in A, only 4 has a transition on b to 5. So, move(A, b) =
{5}.
07/10/2021 Formal Language and Automata Theory 31
Example(cont..)
• ε-closure(move(A, b)) = ε-closure({5})
= {1, 2, 4, 5, 6, 7} = C
• Let us call it as C and thus Dtran[A, b] = C.
• Apply the same procedure to the newly derived sets
B and C. As a result we obtain 5 different sets
A = {0, 1, 2, 4, 7}
B = {1, 2, 3, 4, 6, 7, 8}
C = {1, 2, 4, 5, 6, 7}
D = {1, 2, 4, 5, 6, 7, 9}
E = {1, 2, 4, 5, 6, 7, 9’}
• State A is the start state, and state E is the only
accepting state.