Skip to content
Official PYQ · 2005

GATE CS 2005 Q54 — Regular Expressions and Finite Automata

Explain with AI

Let NfN_f and NpN_p denote the classes of languages accepted by non-deterministic finite automata and non-deterministic push-down automata, respectively. Let DfD_f and DpD_p denote the classes of languages accepted by deterministic finite automata and deterministic push-down automata respectively. Which one of the following is TRUE?

Choose one option
View worked solution

Answer: D

To determine the correct relationship between the classes of languages, we analyze the expressive power of deterministic and non-deterministic models for both finite automata and pushdown automata:

  1. Finite Automata (DfD_f and NfN_f):

    Deterministic Finite Automata (DFA) and Non-deterministic Finite Automata (NFA) are equivalent in terms of their language-recognizing power. Every NFA can be converted into an equivalent DFA using the subset construction method. Both models accept the class of Regular Languages.

    Df=NfD_f = N_f

  2. Pushdown Automata (DpD_p and NpN_p):

    Deterministic Pushdown Automata (DPDA) accept the class of Deterministic Context-Free Languages (DCFLs), whereas Non-deterministic Pushdown Automata (NPDA) accept the class of all Context-Free Languages (CFLs).

    Non-determinism strictly increases the power of pushdown automata. For example, the language of even-length palindromes, L={wwR∣w∈{a,b}∗}L = \{ww^R \mid w \in \{a, b\}^*\}, is a CFL but not a DCFL. Thus, DCFLs are a strict subset of CFLs.

    Dp⊂NpD_p \subset N_p

Combining these two results, we get:

Df=NfandDp⊂NpD_f = N_f \quad \text{and} \quad D_p \subset N_p

Therefore, the correct option is D.

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

Published
Report a correction
Keep exploringMore Regular Expressions and Finite Automata questions