Question
Select the correct alternative from the given choices.The language $L=\left\{0^{2^{i}}: i \geq 1\right\}$ is:(A) Context free(B) DCFL(C) Both CFL and DCFL(D) Not context free language
Step 1
This language consists of strings of zeros, where the number of zeros is a power of 2 (i.e., 2, 4, 8, 16, and so on). Show more…
Show all steps
Your feedback will help us improve your experience
James Kiss and 83 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. The language, $L=\left\{b_{i} \# b_{i+1}: b_{i}\right.$ is $i$ in binary, $\left.i \geq 1\right\}$ is: (A) Regular (B) Context free (C) Regular and context free (D) Neither context free nor Regular
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD