Skip to content
GATEiit

GATE CSE 2022 Q48: False statements about ww, aⁿbⁿcᵐ and aᵐbⁿcⁿ

Question

Consider the following languages:

L1={ww∣w∈{a,b}∗}L_1 = \{ww \mid w \in \{a, b\}^*\}

L2={anbncm∣m,n≥0}L_2 = \{a^n b^n c^m \mid m, n \ge 0\}

L3={ambncn∣m,n≥0}L_3 = \{a^m b^n c^n \mid m, n \ge 0\}

Which of the following statements is/are FALSE?

Try it: multiple select: one or more correct options

Select one or more options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation

Answer: B, C, D (official GATE 2022 final answer key)

Concept used: L2∩L3={anbncn}L_2 \cap L_3 = \{a^n b^n c^n\} is not context-free; the complement of {ww}\{ww\} is context-free.

First step: Classify each language first: L2L_2 and L3L_3 need one counter each (DCFL), L1L_1 is not CFL.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key