Lecture No. 11
Dated: 26-10-2024
Let's prove the 2nd statement of kleene's theorem
.1
To prove that a transition graph
2 can represent a regular expression
,3 we will develop an algorithm
which converts the transition graph
2 into generalized transition graph
4
The transition graph
4 we want to convert is the following.
Step 1
If a transition graph
2 has more than one initial states
then make one initial state
, connecting the old initial states
.
Step 2
Repeat the step 1 but for final states
.
Step 3
If there are 2 states
connected with more than one transition edges
, including the loops, convert these edges into one edge.
this can be converted into
This works with any number of transition edges
.
Step 4
If 3 states
are connected in a sequence, then we can skip the middle state
.
Connecting the first state
with the last one with the transition edge
labeled as the concatenation of the regular expressions
3 of all the edges.
Example
Example
This can be converted into
Which can further be converted to
References
-
Read more about kleene's theorem. ↩
-
Read more about transition graphs. ↩↩↩
-
Read more about regular expressions. ↩↩
-
Read more about transition graphs. ↩↩