Let and let .
Which of the following constraints ensure(s) that the language is context-free?
GATE CSE 2026Theory of Computation › Context-Free Languages & Pushdown AutomataVerified
(A, C, D) i + k = j + ℓ i+k=j+\ell i + k = j + ℓ; i = ℓ i=\ell i = ℓ and j = k j=k j = k; i + j = k + ℓ i+j=k+\ell i + j = k + ℓ
Check each constraint for context-freeness by attempting to construct a PDA or using the pumping lemma for non-context-free cases.
Constraints A, C, and D can be enforced by a single stack (one-counter), making the language context-free. Constraint B requires matching two independent pairs in a cross-serial order, which is not context-free.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.