Computer Science EngineeringHardISRO SC
The minimal complete DFA over {0,1} for strings ending with 001 has how many states? (The empty string is not accepted.)
- A. 5
- B. 3
- C. 6
- D. 4
Correct answer: D. 4
Track the longest suffix of the input that is a prefix of 001: states for lengths 0..3, giving 4 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 minimal complete DFA over {0,1} for strings ending with 0011 has how many states? (The empty string is not accepted.)
- For strings over {0,1} that do NOT contain 01001 as a substring, the minimal complete DFA (including any dead state) has how many states?
- For strings over {0,1} that do NOT contain 01101 as a substring, the minimal complete DFA (including any dead state) has how many states?
- A minimal complete DFA reading binary numbers most-significant bit first accepts exactly those divisible by 7 (the empty string counts as…
- 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…