Sheet 1
Sheet 1
Faculty of Engineering
Computer Engineering and Software Systems Program
Sheet 1
1. Let ∑ = {0,1}. Give DFAs for {}, {ϵ}, ∑* , ∑+
• This DFA stays in the same state when the next input symbol is a 0.
This applies for all states (q0, q1, q2).
• In state q0, an input of 1 moves the DFA to state q1. In state q1, an
input of 1 moves the DFA to state q2.
• In state q2, an input of 1 moves the DFA back to state q0. If the DFA
is in state q1 when the input is finished, the DFA accepts the input
string.
• This DFA accepts the following words:
• ω = 00010000
• ω = 00010011001
• ω=1
• It rejects the following words:
• ω = 1100001
• ω = 0110000