Consider the languages:
and
Which one of the following statements is FALSE?
View worked solution
Answer: A
Let us analyze the properties of the given languages:
- and are Context-Free Languages (CFLs):
- For , we can use a pushdown automaton (PDA) to push 's onto the stack and pop them matching with 's, while ignoring the count of 's.
- For , we can ignore the count of 's, push 's onto the stack, and pop them matching with 's.
- Thus, both and are CFLs. Statement (C) is TRUE.
- is a CFL:
- Since the class of context-free languages is closed under union, and both and are CFLs, their union is also a CFL.
- Alternatively, a non-deterministic PDA can make an initial -transition to either match 's with 's (for ) or match 's with 's (for ).
- Thus, Statement (B) is TRUE.
- is Context-Sensitive but NOT Context-Free:
- The intersection of and is:
- This is a classic non-context-free language because it requires comparing three counts ( of 's, 's, and 's) simultaneously, which cannot be done with a single stack.
- However, it can be recognized by a Linear Bounded Automaton (LBA), making it a Context-Sensitive Language (CSL).
- Thus, Statement (D) is TRUE, and Statement (A) is FALSE.
Therefore, the false statement is A.
Free practice · Your answers on this page are not saved.
