Example-02: Design the NFA transition diagram M= ( {q0,q1, q2 }, δ , q1, {q3}) ,Where δ is given by
δ( q1 , 0)= {q2,q3} ,δ (q1,1)= {q1}
δ( q2, 0)= {q1,q2} ,δ (q2,1)= ∅
δ( q3, 0)= {q2} ,δ (q3,1)= {q1,q2}
SOLUTION:
Transition diagram:
Present State
|
Next State
| |
Input 0
|
Input 1
| |
à q1
|
{q2,q3}
|
{q1}
|
q2
|
{q1,q2}
|
∅
|
*q3
|
{q2}
|
{q1,q2}
|
Hii can u tell me why you have givenself loop to q3?? .
ReplyDelete