Skip to main content

GATE CSE 2026Theory of Computation › Finite Automata & Regular LanguagesVerified

GATE CSE 2026 PYQ: Consider the following two finite automata D 1 D_{1} D 1 ​ and D 2 D_{2} D 2 ​ . Which of the following…

Consider the following two finite automata D1D_{1} and D2D_{2}.

GATE CSE 2026 Finite Automata & Regular Languages diagram: Consider the following two finite automata D 1 D_{1} D 1 ​ a

Which of the following statements is/are true?

  1. A
    L(D1)=L(D2)L\left(D_{1}\right)=L\left(D_{2}\right)
  2. B
    L(D1)L\left(D_{1}\right) is a proper subset of L(D2)L\left(D_{2}\right)
  3. C
    L(D1)∩L(D2)={ϵ}L\left(D_{1}\right) \cap L\left(D_{2}\right)=\{\epsilon\}
    Correct answer
  4. D
    (L(D1)∪L(D2))∗\left(L\left(D_{1}\right) \cup L\left(D_{2}\right)\right)^{*} consists of all strings in {0,1}∗\{0,1\}^{*} whose length is divisible by 3
    Correct answer

Answer

(C, D) L ( D 1 ) ∩ L ( D 2 ) = { ϵ } L\left(D_{1}\right) \cap L\left(D_{2}\right)=\{\epsilon\} L ( D 1 ​ ) ∩ L ( D 2 ​ ) = { ϵ }; ( L ( D 1 ) ∪ L ( D 2 ) ) ∗ \left(L\left(D_{1}\right) \cup L\left(D_{2}\right)\right)^{*} ( L ( D 1 ​ ) ∪ L ( D 2 ​ ) ) ∗ consists of all strings in { 0 , 1 } ∗ \{0,1\}^{*} { 0 , 1 } ∗ whose length is divisible by 3 3 3

Approach

Interpret each automaton's language as the Kleene star of the set of 3-bit blocks it accepts. Compare the block sets to decide equality/subset, use the disjointness of the first blocks to find the intersection, and note that the union of the two languages supplies all 3-bit blocks, which makes the star language exactly the set of binary strings whose length is a multiple of 3.

The two automata accept languages built from disjoint sets of 3-bit blocks, so their intersection is {ε}. Their union supplies all eight possible 3-bit blocks, so the star of the union is exactly the set of all binary strings with length divisible by 3. Therefore the true statements are C and D.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.