Recent questions tagged context-free-language

29 29 votes
3 answers 3 answers
10.8k
10.8k views
Context-free languages are closed under:Union, intersectionUnion, Kleene closureIntersection, complementComplement, Kleene closure
51 51 votes
8 answers 8 answers
15.9k
15.9k views
Consider the languages:$L_1 = \left\{ww^R \mid w \in \{0, 1\}^* \right\}$$L_2 = \left\{w\text{#}w^R \mid w \in \{0, 1\}^* \right\}$, where $\text{#}$ is a special symbol$...
50 50 votes
11 answers 11 answers
30.9k
30.9k views
$$S \to aSa \mid bSb\mid a\mid b$$The language generated by the above grammar over the alphabet $\{a,b\}$ is the set of:all palindromesall odd length palindromesstrings t...
67 67 votes
7 answers 7 answers
26.2k
26.2k views
Let$L_1=\{0^{n+m}1^n0^m\mid n,m\geq 0 \}$,$L_2=\{0^{n+m}1^{n+m}0^m\mid n,m\geq 0\}$ and$L_3=\{0^{n+m}1^{n+m}0^{n+m}\mid n,m\geq 0\} $. Which of these languages are NOT c...
88 88 votes
6 answers 6 answers
27.6k
27.6k views
Let $G=\left(\left\{S\right\}, \left\{a,b\right\},R,S\right)$ be a context free grammar where the rule set R is $S \to a S b \mid S S \mid \epsilon$Which of the following...
37 37 votes
4 answers 4 answers
17.8k
17.8k views
Which of the following statements is true?If a language is context free it can always be accepted by a deterministic push-down automatonThe union of two context free lang...
41 41 votes
2 answers 2 answers
8.8k
8.8k views
Construct as minimal finite state machine that accepts the language, over $\{0,1\}$, of all strings that contain neither the substring $00$ nor the substring $11$.Conside...
31 31 votes
5 answers 5 answers
9.3k
9.3k views
Context-free languages are:closed under unionclosed under complementationclosed under intersectionclosed under Kleene closure
5 5 votes
2 answers 2 answers
3.1k
3.1k views
Which of the following languages are CFL?$$L_1= \left \{ 0^n 1^m \mid n \leq m \leq 2n \right \} \\[1em] L_2 =\left \{ a^i b^j c^k \mid i=2j \text{ or } j=2k \right \}$$