UGC NET Paper 2 (Computer Science)Hard
The minimum number of states of a DFA over {a, b} accepting strings with the number of a's divisible by 3 and the number of b's divisible by 2 is:
- A. 5
- B. 8
- C. 3
- D. 6
Correct answer: D. 6
The product of a mod-3 and a mod-2 counter gives 3 x 2 = 6 reachable and distinguishable states.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- Assertion (A): Whether a given Turing machine accepts at least one string is undecidable. Reason (R): By Rice's theorem every non-trivial…
- For the same grammar, an LALR(1) parser has the same number of states as:
- For the grammar E -> TE', E' -> +TE' | e, T -> FT', T' -> FT' | e, F -> (E) | id, FOLLOW(T) is:
- For the statement x = (a + b) (a + b) + c, the number of three-address instructions after common sub-expression elimination (via DAG) is:
- The value of the postfix expression 8 2 3 ^ / 2 3 + 5 1 - is:
- Keys 30, 10, 20 are inserted in this order into an empty AVL tree. The rebalancing needed and the resulting root are: