Open In App

Designing Finite Automata from Regular Expression (Set 1)

In this article, we will see some popular regular expressions and how we can convert them to finite automata.

 
Question : What will be the minimum number of states for strings with odd number of a’s?
Solution : The regular expression for odd number of a is b*ab*(ab*ab*)* and corresponding automata is given in Figure 6 and minimum number of states are 2.

TOC | Designing Deterministic Finite Automata (Set 1)

 
This article has been contributed by Sonal Tuteja.
 

Article Tags :