Q1: 10 points Q2: 20 points Q3: 20 points Q4: 30 points Q5: 20 points Q6: 20 points Total: 120 points
b
>(1) ----> ((2))
|^ |
b||L |a
|| |
V| V
(3) <---- (4)
L
(Diagram fixed 8 December 2013 -- it had (4, a, 2) instead of (2, 1, 4).)
Let n be any positive integer. Define the DFA Dn to have alphabet {a}, state set {0, 1, 2,..., n-1}, start state 0, final state set {1}, and transition function δ(i, a) = (i+1) % n where "%" is the Java modular division operator.
Last modified 8 December 2013