(1 point) The language C={0"1"2"} is not context-free (unlike { On1"}, which is). Leverage this information to show that
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
(1 point) The language C={0"1"2"} is not context-free (unlike { On1"}, which is). Leverage this information to show that
(1 point) The language C={0"1"2"} is not context-free (unlike { On1"}, which is). Leverage this information to show that the two context-free languages, A={ w"x"ym | nm >= 0 } and B={ wmxmy" | nm >= 0 }, are context-free but their intersection is not. Thus, context-free languages are not closed under intersections as this case proves by counterexample. First, prove A and B are context-free (provide a CFG for each). You do not have to prove C is not context-free, you can just believe me. Then, intersect A,B to complete the proof that context-free languages cannot be closed under intersection. SA-> Sp -> > L(SA) N L(SB) = =
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!