Computer Science EngineeringVery hard
The minimal DFA over {0, 1} for strings having an even number of 0s and an even number of 1s has how many states?
- A. 3
- B. 4
- C. 2
- D. 5
Correct answer: B. 4
The parity pair (zeros mod 2, ones mod 2) gives 4 distinguishable 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
- Which class of languages is recognized by linear bounded automata?
- The language of unary strings a^n with n divisible by 2 or by 3 has a minimal DFA with how many states?
- For void f(int x, int y){ x = x + 1; y = y + x; } with int a = 1, b = 2; calling f(a, b) by reference, what are the values of a and b…
- Peephole optimization operates on
- In graph-colouring register allocation, the nodes of the interference graph represent
- S-attributed grammars use only which kind of attributes?