This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: well. Hint: what are the properties of binary numbers that are multiples of 4? 3) (25 points) Give a DFA accepting all binary strings that represent numbers divisible by 5. Leading 0s are allowed. For convenience, accept the empty string as well. a b {0} {0,1} {0} {0,1} {0,1,2} {0,2} {0,2} {0,1} {0} {0,1,2} {0,1,2} {0,2} 1 1 1 1 1 a,b 1 2 a a,b {0} {0,1} {0,2} {0,1,2} a a a a b b b b 4) (20 points, 5 points per part) Given the DFA: Given the DFA N above, answer the following questions: a) Draw the transition graph for N. b) = ) 1 , C ( A c) *(B, 1100) = A d) Is 11100 L(N) ? No, *(A, 11100) {B} e) (Extra credit worth 5/100 points) Briefly describe L(N). L(N) = {x  (# of 1s in x) mod 3 = 1} 1 A A B B B C C C A start final A B C 1 1 1...
View
Full
Document
 Spring '10
 Icamarra

Click to edit the document details