Question
Official answer and solution
- Official answer
- C and D
- From
- Official GATE 2026 answer key
Solution
List all simple directed cycles from the start/accept state back to itself in and .
In both and , only the start state is accepting, and every simple cycle from the start state back to itself has length :
- In , the simple 3-step paths from the start state back to itself are labeled and . Hence .
- In , the simple 3-step paths from the start state back to itself are labeled and . Hence .
Notice that and form a partition of all binary strings of length ( and ):
- Any non-empty string in is a concatenation of blocks from , and any non-empty string in is a concatenation of blocks from . Since , no non-empty string belongs to both, so (C is true, while A and B are false).
- Moreover, , which is the set of all binary strings whose length is a multiple of 3 (D is true).
Final answer
Options (C), (D)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2026 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 47 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.