Recent questions tagged context-free-language

390
views
1 answers
0 votes
$L=\{a^mb^n\mid m≠n\}∪{(a+b)^∗b(b+a)^*a(a+b)^∗}$$\implies L = \;\{a^mb^n\mid m<n\} \cup \{a^mb^n\mid m>n\} \cup (a+b)^*b(a+b)^*a(a+b)^*$ It is DCFL ∪ Regular, ...
1.4k
views
1 answers
1 votes
identify language is regular or not L={wcw^r | w,c belongs to E*} E={a,b}if yes then why please explain
339
views
0 answers
1 votes
I am trying to construct a CFG for this following langauge: L = $\{0^i 1^j | i \neq j \ and \ i, j 0\}$, this is what I came up with:$ S \rightarrow A \ | \ B $$A \righ...
7.5k
views
2 answers
24 votes
Consider the following languages:$L_{1} = \{ a^{n} wa^{n} | w \in \{a,b\}^{\ast}\}$$L_{2} = \{wxw^{R} | w, x \in \{a,b\}^{*}, |w|, |x| 0 \}$Note that $w^{R}$ is the reve...
11.9k
views
3 answers
20 votes
Consider the following languages:$L_{1} = \{ ww | w \in \{a,b\}^{\ast} \}$$L_{2} = \{a^{n} b^{n} c^{m} | m,n \geq 0 \}$$L_{3} = \{a^{m} b^{n} c^{n} | m,n \geq 0 \}$Which ...
803
views
2 answers
1 votes
Is the following language a DCFL? Please explain your reasoning.
951
views
1 answers
0 votes
Given a CFG and a string, what is the relation between the number of leftmost derivations, the number of rightmost derivations and the number of parse trees?
964
views
2 answers
0 votes
Consider the following context-free grammar:Find the number of unique productions in {Goto (A → D.BC, B) U Goto (A → .DBC, D)}
638
views
2 answers
3 votes
Is this Language a CFL?If yes, Can you please explain the implementation.
1.3k
views
3 answers
2 votes
if L1 and L2 are not regular language then L1 union L2 is not regular.this statement is true or false?my approach is:::true let suppose L1= a^n b^n AND L2= a^k b^kbot...
972
views
3 answers
3 votes
complement of CFL can never be CFL.please explain if the above statement is true of false?
488
views
1 answers
0 votes
let L = “CFL but not REGULAR”, Can we get complement of L as CFL?Unlike in the case of Recursively Enumerable(RE) language where if L = “RE but not RECURSIVE”, it...
305
views
1 answers
1 votes
The language accepted by the given PDA is
283
views
2 answers
1 votes
14.Show that the grammar S → aSb |SS| e is ambiguous, but that the language denoted by it is not.Can someone share the approach for second part.
719
views
3 answers
2 votes
Let $L=\{0^n1^n|n\ge 0\}$ be a context free language. Which of the following is correct?$\overline L$ is context free and $L^k$ is not context free for any $k\ge1$$\overl...
714
views
1 answers
1 votes
For a language $L$ over the alphabet $\{a, b\}$, let $\overline{L}$ denote the complement of $L$ and let $L^{\ast}$ denote the Kleene-closure of $L$. Consider the followi...
7.5k
views
2 answers
27 votes
For a string $w$, we define $w^R$ to be the reverse of $w$. For example, if $w=01101$ then $w^R=10110$.Which of the following languages is/are context-free?$\{ wxw^Rx^R \...
7.7k
views
3 answers
11 votes
Suppose that $L_1$ is a regular language and $L_2$ is a context-free language. Which one of the following languages is $\text{NOT}$ necessarily context-free?$L_1 \cap L_2...
4.1k
views
2 answers
2 votes
Which of the following statements is true?The union of two context free languages is context freeThe intersection of two context free languages is context freeThe complem...
641
views
1 answers
1 votes
Which of the following definitions generates the same languages as $L,$ where$L = \{x^{n}y^{n},n \geq 1\}$$E \rightarrow xEy \mid xy$$xy \mid x^{+}xyy^{+}$$x^{+}y^{+}$ $(...
651
views
2 answers
1 votes
Which of the following definitions generates the same languages as $L,$ where$L = \{x^{n}y^{n},n \geq 1\}$$E \rightarrow xEy \mid xy$$xy \mid x^{+}xyy^{+}$$x^{+}y^{+}$ $(...
990
views
4 answers
2 votes
If $L_1$ and $L_2$ are context free language and $R$ a regular set, then which one of the languages below is not necessarily a context free language?$L_1L_2$$L_1\cap L_2$...
794
views
3 answers
2 votes
If $L1$ is CFL and $L2$ is regular language which of the following is false?$L1-L2$ is not Context free$L1$ intersection $L2$ is Context free$\sim L1$ is Context freeBoth...
1.6k
views
3 answers
2 votes
Which of the following statement is true?Deterministic context free language are closed under complement.Deterministic context free language are not closed under Union.De...
1.6k
views
4 answers
3 votes
Consider the following statements.The intersection of two context-free languages is always context-freeThe super-set of a context-free languages is never regularThe subse...
2.8k
views
4 answers
2 votes
Context free languages are closed underunion, intersectionunion, kleene closureintersection, complementcomplement, kleene closure