SOLUTION:
∑={a,b}
Ø So DFA can be Q={ q0 , q1 },∑={a,b }, q0={ q0},F={ q0 } and δ is given by the table
1)Transition
diagram:
2)Transition Table:
Present State
|
Next State
|
Input a
|
Input b
|
à *q0
|
q1
|
q1
|
q1
|
q1
|
q1
|
3)Transition function:
δ( q0, a)= q0 ,δ (q0,b)=
q0
δ( q1, a)= q1 ,δ (q1,b)=
q1
it will only accept empty string so it's wrong acc. to me.
ReplyDeleteNo. Except a and b means the strings "a" and "b" are not allowed. Other strings possible such as aa , aaaab, bba , etc are allowed
Delete