Question: Construct a NFA , N= {Q, S, d, q0, F}, S ={0,1}, that recognize the language: L = { w/w contains 2 consecutive identical digits}

Construct a NFA , N= {Q, S, d, q0, F}, S ={0,1}, that recognize the language:

L = { w/w contains 2 consecutive identical digits}

Hint: (a) start with q0 and define two paths depended on the input symbols, use transitions from the same input symbol to move to different states

- define 5 states , -q0,q1,q2,q3,q4,q5-

- create the transition table

b. find if the word 01001 is accepted from the NFA (formal proof)

Hint: start with dh (q0,01001),

c. find if the word 0100011 is accepted from the NFA (formal proof)

d. give the states of the NFA (stuck, threads) for any input digit of the 0100011

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!