GATE / CS ARCHIVE

GATE CSE 2026 SET 2 / QUESTION 47

Languages of two three-step automata

Theory of Computation · Finite Automata · Full GATE CSE 2026 Set 2 paper

GATE 2026 Set 2, Q47 2 marks · MSQ
Report issue

Finite Automata

Question 47, GATE 2026: Transcribe the source automata as follows; s is the only start/accept state and omitted transitions reject. D1: s−0→u, s−1→v, u−0→w, u−1→z, w−0→s, w−1→s, z−0→s, v−0→t, t−1→s. D2: s−0→u, s−1→v, u−1→w, v−0→t, v−1→t and v−1→w, w−1→s, t−0→s. Select: A equal languages; B L(D1) proper subset of L(D2); C intersection {ε}; D (L(D1)∪L(D2))* is all binary strings of length divisible by 3.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Givens and goal

Transcribe the source automata as follows; s is the only start/accept state and omitted transitions reject. D1: s−0→u, s−1→v, u−0→w, u−1→z, w−0→s, w−1→s, z−0→s, v−0→t, t−1→s. D2: s−0→u, s−1→v, u−1→w, v−0→t, v−1→t and v−1→w, w−1→s, t−0→s. Select: A equal languages; B L(D1) proper subset of L(D2); C intersection {ε}; D (L(D1)∪L(D2))* is all binary strings of length divisible by 3.

Approach

Enumerate the three-edge returns to the accepting state and exploit unique block boundaries.

Step-by-step solution

1. In D1 the upper paths give 000 and 001 through u,w, and 010 through u,z. The lower path through v,t gives 101. Thus L(D1)={000,001,010,101}*, since every accepting return to s has exactly three symbols.
2. In D2 the path through u,w gives 011. Paths through v,t give 100 and 110, and the path through v,w gives 111. Hence L(D2)={011,100,110,111}*. The two transitions from v on 1 are nondeterministic alternatives, both included.
3. These two block sets are disjoint. A nonempty string of length divisible by three has a unique partition into successive three-bit blocks starting at position 1. Its first block cannot simultaneously belong to both sets, so the languages have no common nonempty word.
4. Both automata accept ε because their start state is accepting. Thus the intersection is exactly {ε}, proving C. The word 000 is accepted only by D1, refuting both equality and the claimed subset in A and B.
5. Together the two block sets contain all eight three-bit words. Kleene star of the union permits concatenations mixing blocks from either automaton, yielding every binary word of length 3k, including k=0. Conversely each concatenated component has length divisible by 3. This proves D.
6. Select C,D. The outer star in D is essential: the plain union need not accept a word whose successive blocks alternate between the two sets. Transitions were verified on the source image.

Original paper, page 33 · Answer key