Lecture 04 - Transition Graphs, FA & Regular Expression-2024
Lecture 04 - Transition Graphs, FA & Regular Expression-2024
Finite Automata: Finite number of states, exactly one of them will be the initial state, zero
or more will be final state.
For every RE there exist at least one FA and for every FA there exist at least one RE.
1. Ф
2. a a
3. a + b a,b
4. a . b a b
7. (ab)* b
a
b
8. (ab + ba)* b a
1. A finite set of states at least one of which is designated as the start state (→) and some (maybe
2. An alphabet ∑ of possible input letters from which input strings are formed.
3. A finite set of transitions that show how to go from one state to another based on reading
a,b
a
a
b
b
a,b
This theorem is the most important and fundamental result in the Theory of Finite
Automata.
This means that we present a procedure that starts out with an FA, transition graph and
ends up with a regular expression that defines the same language.
є
Converted to
Converted to
є
3. The final state should be one (if there’s exist more than one final state, should be reduced to
one)
+ є
Converted to
є +
+
є
+
State Elimination: Remove states 1 by 1 (other than the initial and final state) and you will
get target RE.
Example:
a,b,c
+
OR RE = a + b + c
a+b+c
+
Example:
ab
+ RE = ab
ab*c
+
RE = ab*c
2/9/2024 33