Recent questions tagged dcfl

1 1 vote
2 2 answers
62
62 views
Suppose $L$ is a deterministic context-free language.Which of the following is always correct about$$L^R=\{w^R\mid w\in L\}?$$$L^R$ must be regular. $L^R$ must be determi...
2 2 votes
2 2 answers
94
94 views
Consider $$L= \{a^ib^jc^k\mid i=j\text{ or }j=k\}.$$ Which of the following correctly classifies $L$?$L$ is regular. $L$ is DCFL but not regular. $L$ is CFL but not DCFL....
1 1 vote
1 1 answer
47
47 views
Let $L_1,L_2$ be deterministic context-free languages and let $R$ be a regular language.Which of the following statements are always true?$L_1\cup L_2$ is deterministic c...
3 3 votes
1 1 answer
96
96 views
Let $L=\{w\in\{a,b\}^*\mid n_a(w)\ne n_b(w)\}$. Which statements are correct?$L$ is regular. $L$ is DCFL. $L$ is not CFL. A DPDA can maintain the current surplus using th...
2 2 votes
1 1 answer
68
68 views
Let $L_1=\{wcw^R\mid w\in\{a,b\}^*\}$ and $L_2=\{ww^R\mid w\in\{a,b\}^*\}$. Which statements are correct?$L_1$ is a DCFL. $L_2$ is a DCFL. $L_2$ is a CFL. $L_2$ is not ac...
2 2 votes
1 1 answer
76
76 views
Let $L=\{a^i b^j c^k\mid i=j\text{ or }j=k,\ i,j,k\ge0\}$. Which statements are correct?$L$ is a CFL. $L$ is a DCFL. $L$ can be written as union of two CFLs: one checking...
1 1 vote
1 1 answer
57
57 views
Let $L_1=\{a^n b^n\mid n\ge0\}$, $L_2=\{a^n b^{2n}\mid n\ge0\}$, and $L=L_1\cup L_2$.Which statements are correct?$L_1$ is a DCFL. $L_2$ is a DCFL. $L$ is a CFL. $L$ is a...
1 1 vote
1 1 answer
57
57 views
Let $A=\{a^n b^n\mid n\ge1\}$. Define $L_a=A\cup\{a\}$ and $L_b=A\cup\{b\}$. Which statements are correct?$L_a$ is a DCFL. $L_b$ is a DCFL. Both $L_a$ and $L_b$ are regul...
1 1 vote
2 2 answers
152
152 views
Which statement about deterministic context-free languages is correct?DCFLs are closed under reversal. If $L$ is a DCFL, then $L^R$ must also be a DCFL. There exists a DC...
1 1 vote
1 1 answer
90
90 views
Let $L_1$ be a DCFL and $R$ be a regular language over the same alphabet. Which languages are guaranteed to be DCFL?$L_1\cap R$ $L_1\cup R$ $L_1-R$ $L_1^R$ $L_1\cap L_2$,...
1 1 vote
1 1 answer
61
61 views
Let $L_1=\{a^i b^j c^i \mid i,j>0\}$ and $L_2=\{a^i b^i c^j \mid i,j>0\}$. Which statements are correct?$L_1$ is a DCFL. $L_2$ is a DCFL. $L_1\cap L_2=\{a^n b^n c^n \mid ...
0 0 votes
0 0 answers
12
12 views
Which of the Following is/ are correct ?1. Regular Language intersection DCFL = DCFL2. Regular Language Concatination DCFL = CFL3. Regular Language Union ...
3 3 votes
0 0 answers
391
391 views
Show that $L = \{a^nb^m,n< 2m \}$ is a deterministic context-free language.
0 0 votes
1 1 answer
1.1k
1.1k views
How a^i b^j | i !=(2j+1) is dcfl?
1 1 vote
1 1 answer
585
585 views
If it’s DCFL then also construct the DPDA ?
0 0 votes
1 1 answer
640
640 views
Can
Can $\Sigma^{*}$ be called DCFL? If yes, what would the state transition diagram of its PDA look like?
0 0 votes
0 0 answers
949
949 views
Can DCFL be ambiguous?
1 1 vote
2 2 answers
1.4k
1.4k views
L = {$a^{n+m}b^{n}a^{m} | n,m \geq 0$}Is the above language DCFL or CFL ?
0 0 votes
1 1 answer
841
841 views
0 0 votes
1 answers 1 answer
1.4k
1.4k views
L = {0^n 1^2n 0^n+m , n,m>=0}Is this Language CFL or non CFL?According to mewe can write this as 0^n 1^n 1^n 0^n 0^mThen we will keep on pushing 0’s and as and when we ge...
1 1 vote
1 answers 1 answer
696
696 views
Consider the following statementS: $\left \{ a^{n}b^{n+k}|n\geq 0,k\geq 1 \right \} \cup \left \{a^{n+k}b^{n}|n\geq 0,k\geq 3 \right \}$ is DCFLThe above statement is:TRU...
0 0 votes
1 1 answer
772
772 views
Consider the following statement:S : {$a^{n}b^{n+k} | n\geq 0,k\geq 1$} $\cup$ {$a^{n+k}b^{n} | n\geq 0,k\geq 3$}Which of the following is TRUE about S? (Also explain HOW...
2 2 votes
1 1 answer
631
631 views
If L and $L^{c}$ both are CFL, the L must be DCFL a. TRUE b.FALSE
0 0 votes
1 answers 1 answer
724
724 views
$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, hence it s...
0 0 votes
0 0 answers
293
293 views
How is equality problem for DCFL decidable?
1 1 vote
2 2 answers
1.9k
1.9k views
Is the following language a DCFL? Please explain your reasoning.
1 1 vote
2 2 answers
1.4k
1.4k views
$L1 =\left \{ a^{m} b^{n} c^{p} | \left ( m \geq n \right )\text{or} \left ( n = p \right ) \right \}$ $L2 =\left \{ a^{m} b^{n} c^{p} | \left ( m \geq n \right )\text{a...
1 1 vote
0 0 answers
1.5k
1.5k views
$\left \{ a^{n}.b^{n+k}\mid n\geq 0,k\geq 1 \right \}\cup \left \{ a^{n+k}.b^{n}\mid n\geq 0,k\geq 3 \right \}$ is DCFLIs it true? As we know union of two DCFL cannot be ...
0 0 votes
0 0 answers
973
973 views
the answer is given that the statement 2 is correct?But how…even if we create a DCFL by final state condition like :q(b,z0| z0)-→ final state ,q(null,a|z0) → final s...