Computer Science EngineeringHardISRO SC
A minimal complete DFA reading binary numbers most-significant bit first accepts exactly those divisible by 7 (the empty string counts as 0). Its number of states is
- A. 8
- B. 6
- C. 9
- D. 7
Correct answer: D. 7
The state is the value mod 7; all 7 remainders are reachable and distinguishable, so 7 states.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- The language over {0,1} of strings whose 5th symbol from the right end is 1 needs a minimal DFA with how many states?
- Over {a,b}, a language contains the strings in which the number of a's is divisible by 4 and the number of b's is divisible by 5. The…
- Over {a,b}, the minimal complete DFA for strings of length exactly 6 has how many states?
- Over {0,1}, L1 = binary numbers (MSB first) divisible by 3, and L2 = strings ending with 11. The minimal DFA for L1 intersect L2 has how…
- An NFA over {0,1} has start state q0 and accepting state q5, with transitions q0: 0->{q5} 1->{q1}; q1: 0->{q0,q3} 1->{q4,q3}; q2: 0->{q2}…
- How many strings of length 8 over {a,b} contain no two consecutive a's?