GATE CS 2021, set 2 · Question 51 · Theory of Computation · Multiple select (MSQ) · 2 marks · no negative marks

For a string w, we define w^R to be the reverse of w. For example, if w = 01101 then w^R = 10110.
Which of the following languages is/are context-free?

  1. (A) {wxw^Rx^R | w, x ∈ {0,1}^*}
  2. (B) {ww^Rxx^R | w, x ∈ {0,1}^*}
  3. (C) {wxw^R | w, x ∈ {0,1}^*}
  4. (D) {wxx^Rw^R | w, x ∈ {0,1}^*}
Answer

Answer (B), (C), (D)

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes