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
 Binary numeral system, 11100 L, NFA represents. a,b

Click to edit the document details