Question

Consider the following two finite automata D1D_1 and D2D_2.

Two finite automata over {0, 1}, D1 (left) and D2 (right), each with an accepting start state (double circle) and several other states connected by transitions labelled 0 or 1; drawn as in the question paper.

Which of the following statements is/are true?

Choose every correct option
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 D1D_1 and D2D_2.

In both D1D_1 and D2D_2, only the start state is accepting, and every simple cycle from the start state back to itself has length 33:

  • In D1D_1, the simple 3-step paths from the start state back to itself are labeled 000,001,010,000, 001, 010, and 101101. Hence L(D1)={000,001,010,101}∗L(D_1) = \{000, 001, 010, 101\}^*.
  • In D2D_2, the simple 3-step paths from the start state back to itself are labeled 011,100,110,011, 100, 110, and 111111. Hence L(D2)={011,100,110,111}∗L(D_2) = \{011, 100, 110, 111\}^*.

Notice that S1={000,001,010,101}S_1 = \{000, 001, 010, 101\} and S2={011,100,110,111}S_2 = \{011, 100, 110, 111\} form a partition of all 23=82^3 = 8 binary strings of length 33 (S1∩S2=∅S_1 \cap S_2 = \emptyset and S1∪S2={0,1}3S_1 \cup S_2 = \{0, 1\}^3):

  • Any non-empty string in L(D1)L(D_1) is a concatenation of blocks from S1S_1, and any non-empty string in L(D2)L(D_2) is a concatenation of blocks from S2S_2. Since S1∩S2=∅S_1 \cap S_2 = \emptyset, no non-empty string belongs to both, so L(D1)∩L(D2)={ϵ}L(D_1) \cap L(D_2) = \{\epsilon\} (C is true, while A and B are false).
  • Moreover, (L(D1)∪L(D2))∗=(S1∗∪S2∗)∗=(S1∪S2)∗=({0,1}3)∗(L(D_1) \cup L(D_2))^* = (S_1^* \cup S_2^*)^* = (S_1 \cup S_2)^* = (\{0,1\}^3)^*, 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.