Lecture No. 07
Dated: 26-10-2024
Finite Automata Corresponding to Finite Languages
Consider \(L = \{\Lambda, b, ab, bb\}\) which can be defined as \((\Lambda + b + ab + bb)\) or \((\Lambda + (\Lambda + a + b)b)\)
Notice the connection between the transition diagram
and the regular expression
?1
\(\Lambda\) suggests that the initial state
is the final state
at the same time.
The right most \(b\) in \((\Lambda + a + b)b\) suggest that every other final state
ends by \(b\).
The number of final states
is equal to the number of strings
in the \(L\).
There are some states
here which are \(x\) and \(y\) and are called:
- Dead
States
- Waste Baskets
- Davey John Lockers
Example
\[L = \{w \in \{a, b\}^* : \text{length}(w) \ge 2, w \text{ ends with neither } aa \text{ or } bb\}\]
\[(a + b)^*(ab + ba)\]
Example
\[L = \{w \in \{a, b\}^* : w \text{ does not ends with } aa\}\]
\[\Lambda + a + b + (a + b)^*(ab + ba + bb)\]
Transition Graph
It is a collection of following:
- Finite number of
states
one of which isinitial state
and some or none beingfinal state
. - Finite
set
2 of inputletters
from whichstrings
3 are formed. - Finite
set
2 of transitions that show how to transition from onestate
to another, based on substrings of input letters, possibly evennull string
\(\Lambda\).