Advertisement
acgtyrant

Automata

Sep 13th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. Question 3
  2. 1Here is the transition function of a simple, deterministic automaton with start state A and accepting state B:
  3. 0 1
  4. A A B
  5. B B A
  6. We want to show that this automaton accepts exactly those strings with an odd number of 1's, or more formally:
  7.  
  8. δ(A,w) = B if and only if w has an odd number of 1's.
  9. Here, δ is the extended transition function of the automaton; that is, δ(A,w) is the state that the automaton is in after processing input string w. The proof of the statement above is an induction on the length of w. Below, we give the proof with reasons missing. You must give a reason for each step, and then demonstrate your understanding of the proof by classifying your reasons into the following three categories:
  10.  
  11. A)
  12. Use of the inductive hypothesis.
  13. B)
  14. Reasoning about properties of deterministic finite automata, e.g., that if string s = yz, then δ(q,s) = δ(δ(q,y),z).
  15. C)
  16. Reasoning about properties of binary strings (strings of 0's and 1's), e.g., that every string is longer than any of its proper substrings.
  17. Basis (|w| = 0):
  18. (1)
  19. w = ε because ________
  20. (2)
  21. δ(A,ε) = A because ________
  22. (3)
  23. ε has an even number of 1's because ________
  24. Induction (|w| = n> 0)
  25. (4)
  26. There are two cases: (a) when w = x1 and (b) when w = x0 because ________
  27. Case (a):
  28. (5)
  29. In case (a), w has an odd number of 1's if and only if x has an even number of 1's because ________
  30. (6)
  31. In case (a), δ(A,x) = A if and only if w has an odd number of 1's because ________
  32. (7)
  33. In case (a), δ(A,w) = B if and only if w has an odd number of 1's because ________
  34. Case (b):
  35. (8)
  36. In case (b), w has an odd number of 1's if and only if x has an odd number of 1's because ________
  37. (9)
  38. In case (b), δ(A,x) = B if and only if w has an odd number of 1's because ________
  39. (10)
  40. In case (b), δ(A,w) = B if and only if w has an odd number of 1's because ________
  41. (9) for reason C.
  42. (4) for reason A.
  43. (7) for reason C.
  44. (8) for reason C.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement