1. T 2. T 3. T 4. T 5. T 6. T 7. T 8. T 9. T 10. T 11. T 12. T
Added by Richard B.
Close
Step 1
Step 1: The first statement is true. Show more…
Show all steps
Your feedback will help us improve your experience
James Kiss and 96 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Select the correct alternative from the given choices. Let the language $L_{1}, L_{2}$ are defined as: $L_{1}:\left\{a^{i} b^{2 i} c^{j} \mid i, j \geq 0\right\}, L_{2}=\left\{a^{i} b^{2 i} a^{i} \mid i \geq 0\right\} .$ Which of following is true? (A) $L_{1}, L_{2}$ are context free (B) Only $L_{1}$ is context free (C) Only $L_{2}$ is context free (D) Neither $L_{1}$ nor $L_{2}$ is context free
Theory of Computation
CONTEXT FREE LANGUAGES AND PUSH DOWN AUTOMATA
Select the correct alternative from the given choices. Consider the following languages $L_{1}, L_{2}$ and $L_{3}$ : $L_{1}=\left\{a^{n} b^{m} c^{n+m} \mid n, m \geq 0\right\}$ $L_{2}=\left\{a^{n} b^{n+1} c^{n+2} \mid n \geq 0\right\}$ $L_{3}=\left\{a^{n} b^{n} c^{m} \mid n, m \geq 0\right\}$ Which of following statement is true? (A) $L_{1}, L_{2}, L_{3}$ are context free languages (B) $L_{1}, L_{2}$ are context free but not $L_{3}$ (C) $L_{1}, L_{3}$ are context free but $\operatorname{not} L_{2}$ (D) $L_{1}, L_{2}, L_{3}$ are not context free languages.
Select the correct alternative from the given choices. Two languages $L_{1}, L_{2}$ are defined as: $L_{1}=\left\{a^{i} b^{j} c^{k}: i, j, k \geq 0, i=j\right\}$ $L_{2}=\left\{a^{i} b^{j} c^{k}: i, j, k \geq 0, j=k\right\}$ which of following statements are true? (i) $L_{1} \cap L_{2}$ is context free (ii) $L_{1} \cap L_{2}=\left\{a^{n} b^{n} c^{n} \mid n \geq 0\right\}$ (iii) $L_{1}, L_{2}$ are context free (iv) Only $L_{1}$ is context free (A) All are true (B) (i), (ii) are true (C) (iii), (iv) are true (D) (ii), (iii) are true
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD