3,101 views
5 votes
5 votes
$L = \left \{ a^nb \ ; n\geq 0 \right \} \cup \left \{ b^na \ ; n\geq 1 \right \}$

Minimal DFA for the above language ?

6 Answers

11 votes
11 votes

Two DFA's are shown for languages {anb | n>=0} and {bna | n>=1} respectively .

Take these 2 as M1 and M2 respectively .

DFA M using cross product of M1×M2 having start state as {x1,y1} and mark final state as any state contain x2 or y3 and then do minimization .

The table is as follows => ( Sorry, for the handwriting )

Hence, after minimizing it, there are total 6 states and 2 final states . 

Required M will be =>

edited by
7 votes
7 votes

 

Min no of states = 6.

1 votes
1 votes

$L=\left \{ a^{n}b\, n\geq 0 \right \}\, \cup \left \{ b^{n}a\, ,n\geqslant 1 \right \}$

$L=\left \{ b,ba,ab,bba,aab,bbba,aaab\cdots \right \}$

Here is my DFA-:

Note -:you have to make a  Trap(Dead State) for language $ba\left ( a+b \right )^{+} \, OR \,\, ab\left ( a+b \right )^{+}$

0 votes
0 votes
first draw epsilon nfa----

convert it into nfa without epsilon(A ia initial state)

after that convert it into dfa and minimize it so now it has total 6(2 final states) states
in dfa state O represents dead state
edited by

Related questions

1 votes
1 votes
1 answer
1
Prajwal Bhat asked Jan 17, 2017
1,348 views
No. of states in the DFA accepting the following set of strings are:( ( aa* + φ* )* (aa* + φ* ) + bb* + φ* φ + φ* )*Quite confusing to me. Share your approach!
1 votes
1 votes
0 answers
3
sripo asked Oct 17, 2018
1,357 views
What is the difference between a dfa accepting epsilon moves and dfa accepting nothing?I have a dfa which has no states what will be the dfa this is regarding,this questi...
4 votes
4 votes
3 answers
4