Consider the following languages:
Which of the following statements is/are
View worked solution
Answer: B;C;D
Let us analyze the properties of the given languages:
- : This is a classic non-context-free language. However, its complement is context-free.
- : This is a deterministic context-free language (DCFL) because we can match 's and 's using a deterministic pushdown automaton (DPDA) and then read any number of 's.
- : This is also a DCFL because we can skip 's and then match 's and 's using a DPDA.
- : This is a well-known non-context-free language.
Now, let us evaluate each statement to find which ones are FALSE:
- Statement A (TRUE): is indeed not context-free, and both and are deterministic context-free.
- Statement B (FALSE): is context-free, so the claim that "neither nor is context-free" is false.
- Statement C (FALSE): is not context-free, so the claim that all three are context-free is false.
- Statement D (FALSE): The complement of is context-free, so the claim that "neither nor its complement is context-free" is false.
Thus, the false statements are B, C, and D.
Free practice · Your answers on this page are not saved.
