Question
Consider the languages , and as given below.
Which of the following statements is NOT TRUE?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2011 answer key
Solution
Classify languages L1, L2, and L3 within the Chomsky hierarchy.
- Language has independent counts and , generated by the regular expression . Therefore, is regular, and any regular language can be recognized by a PDA and a Turing machine.
- Language requires matching a single count between 0s and 1s, which is a deterministic context-free language recognized by a PDA.
- Language requires simultaneous matching of three counts across separated blocks. By the pumping lemma for context-free languages, is NOT context-free; it is a context-sensitive language recognized by a linear-bounded automaton or Turing machine.
- Therefore, statement C ("All the three languages are context free") is FALSE.
Final answer
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2011 Computer Science and Information Technology (CS)
- Question
- 26 of 65, printed as CS Q.26
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.