Δ(q0,a)=q1.; Δ(q0,b)=q2.
Δ(q1,a)=q0. Δ(q1,b)=q3.
Δ(q2,a)=q3. Δ(q2,b)=q0.
Δ(q3,a)=q2. Δ(q3,b)=q1.
The initial and final states are.
Options.
A)
Q0 and q0
B)
Q0 and q1.
C)
Q0 and q2
D)
Q0 and q3.
Answer D.
Explanation.
Accepted words are { ab, ba, aaab,abaa, aaba,bbba-----}
A and b are of odd length. Hence from diagram from the above
transitions. option D is correct.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.