Skip to content
Official PYQ · 2000

GATE CS 2000 Q2.8 — Regular and Context-free Languages

Explain with AI

What can be said about a regular language LL over {a}\{ a \} whose minimal finite state automaton has two states?

Marks were awarded to all candidates for this question. It is not scored as a normal quiz.

View worked solution

Marks to all

To find the correct option, let us analyze the possible minimal Deterministic Finite Automata (DFA) with exactly 22 states over the alphabet Σ={a}\Sigma = \{a\}.

Let the two states be q0q_0 (start state) and q1q_1. Since the DFA is minimal, both states must be reachable, meaning there must be a transition q0→aq1q_0 \xrightarrow{a} q_1. There are two possibilities for the transition from q1q_1 on symbol aa:

  1. Case 1: q1→aq0q_1 \xrightarrow{a} q_0 (Loop of length 2)
    • If q0q_0 is the only accepting state, L={an∣n is even}L = \{a^n \mid n \text{ is even}\}.
    • If q1q_1 is the only accepting state, L={an∣n is odd}L = \{a^n \mid n \text{ is odd}\}.
  2. Case 2: q1→aq1q_1 \xrightarrow{a} q_1 (Self-loop on q1q_1)
    • If q1q_1 is the only accepting state, L={an∣n≥1}L = \{a^n \mid n \geq 1\}.
    • If q0q_0 is the only accepting state, L={ϵ}L = \{\epsilon\}.

Since LL can also be {an∣n≥1}\{a^n \mid n \geq 1\} or {ϵ}\{\epsilon\}, none of the options (A), (B), (C), or (D) are correct. Thus, this question has no correct option among the choices provided, which is why the official key is marked as X (Marks to All).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Regular and Context-free Languages questions