You are on page 1of 7

WELCOME TO

COMPUTER SCIENCE
HUB
DESIGNING DFA
IMPORTANT POINTS FOR DESIGNING DFA

• If DFA accepts only 0* (ie. Zero or more number of 0’s)


0

q0
L={ε,0,00,000,…}
• If DFA accepts only 1* (ie. Zero or more number of 1’s)
1
q0
L= {ε,11,111,11111…}
IMPORTANT POINTS FOR DESIGNING DFA

• If DFA accepts only 0+ (ie. One or more number of 0’s)


0 0
q0
q0
L={0,00,000..}
• If DFA accepts only (0/1)
0,1
q0
q0
L={0,1}
IMPORTANT POINTS FOR DESIGNING DFA

• If DFA accepts (0/1)* L={ε ,0,1,01,0011,1101,10101,111100011…}


0,1

q0

• If DFA accepts only (0/1)+ L={0,1,01,0011,101,1100,111}


0,1 0,1
q0
q0
IMPORTANT POINTS FOR DESIGNING DFA

• If DFA accepts only 01 L={01}


0 1
q0 q1 q2

• If DFA accepts only (01)*

q0
0 q1
1 L={ 01,0101,010101,….}
q2
0
THANK YOU!!

You might also like