GATE CS 2025 Set 2 | Question 60
Theory of Computation › Regular Grammar · NAT · 2 marks · Answer: 6
- Question 60Theory of Computationnat2 marksLet . For , is the product of the symbols modulo 7 (with ). Define . The number of states in a minimum-state DFA for is ___________. (Answer in integer)
Answer: 6
Solution
Answer: 6 Track the running product modulo 7. The symbols are all non-zero mod 7, so the product is always a unit — it lives in the multiplicative group , which has 6 elements. Starting from , these symbols (e.g. 3 is a generator) can reach every residue in , and each residue leads to different acceptance behaviour, so all 6 are distinct, non-mergeable states (0 is never reachable). The accepting state is residue . Minimum DFA has states.
More GATE PYQ on Regular Grammar
All GATE CS Theory of Computation PYQ →Attempt GATE CS 2025 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →