Professional Documents
Culture Documents
a b
start Σ
q₀ q₁ a
b b
q₂
{
δ(qk, a) = q k if a = r and k = 3 , and
q 0 otherwise
F = {q₀, q₁, q₂}.
Use the DFA editor to draw this exact DFA.
Piece this apart one step at a time. How many states does this DFA have? Which one is the start state? What
is the alphabet, and how many characters are in it? Which states are accepting?
The trickiest part is decoding the transitions. Begin with the start state. Pick any character you want. Where
do you go when you see that character? See if you can take things from there.
Once you’re done, a good question to ponder, but not something you need to submit: what is the language of
this DFA?
ii. Consider the following 5-tuple definition of a DFA:
D = (Q, Σ, δ, q₀, F), where
Q = {q₀, q₁, q₂},
Σ = {r, s},
q(3 k − 7 k + 4)/ 2 if a = r
{
δ(qk, a) = q
2
2
(− 3 k + 5 k +2 )/ 2
,
if a = s and
F = {q₀}.
Use the DFA editor to draw this exact DFA.
Again, we recommend thinking over what the language of this DFA is once you’ve drawn it out. It’s a good
exercise.
7/7