I want to make regular expression having even number of b's and odd number of a's also DFA AND NFA of it
for this i made below DFA
I got these two Regular Expression
Regular Expression
For Even no of b's(a*a*a*bb)*
Regular Expression
For Odd no of a's(a b*b*)(a b*b*a)*
QUESTION: Did I make the right DFA ?
- How to merge above two Regular Expressions into one if both are correct??
- How to Convert
DFA
intoNFA
?
Edits: I got DFA From Grijesh Chauhan
Answer
still unable to make regular expression which will allow only even number of b's and odd nubmer of a's .
I also tried this Regular Expression
(a(bb)*(aa)*)*
Note: From above RE only those strings are generated which start from a but i want that RE which generate string of even number of b's and odd number of a's regardles of starting from a or b