Computer Science EngineeringHard
The minimal DFA over {a, b} accepting strings whose length is divisible by 3 has how many states?
- A. 3
- B. 4
- C. 6
- D. 2
Correct answer: A. 3
Only the length modulo 3 matters, so 3 states suffice.
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
- Adding extra tapes to a Turing machine
- Savitch's theorem implies that
- If any NP-complete problem is shown to have a polynomial-time algorithm, then
- In a syntax-directed definition, an attribute at a node computed from the attributes of its children is called
- Static links (access links) in activation records are used for
- Tail-call optimization primarily saves