757 views
5 votes
5 votes

Let L={ai bj ck ┤|if j is odd then i=k} where i,j,k>0. Which of the following option is true about L?

  1.   L is CSL but not CFL
  2.   L is CFL but not DCFL
  3.   L is regular
  4.   L is DCFL but not regular
     

1 Answer

5 votes
5 votes
L = {$a^ib^jc^k$ | if j is odd then i=k, where i,j,k >0}

This language can be divided into two parts.
i. when j is odd
ii. when j is even

i. L1 = {$a^nb(bb)^*c^n | n>1$}, and this language is DCFL

ii. if J is even then a's and c's can be anything either equal or notequal.
    L2 = {$a^p(bb)^*c^q | p,q >0$}, L2 is Regular

$\text{L = L1 U L2 = DCFL U Regular = DCFL}$

Related questions

1.2k
views
1 answers
2 votes
rahuljai asked Dec 13, 2018
1,170 views
Which of the following languages is regular? L = { bba (ba)* a^n-1 | n> 0 }L = {a^nb^n | n < 1000 }L = {a^nb^k | n is odd or k is even }L = {wxw^R | w,x ∈(0+1)* }1, 3 and 42, 3, 42, 31, 2, 3, 4
792
views
2 answers
1 votes
Parshu gate asked Dec 10, 2017
792 views
LC may be CFL LC cannot be CFL LC may be regular LC may or may not be CFL
3.0k
views
2 answers
10 votes
Mahesha999 asked Dec 25, 2016
3,010 views
Consider the following statements:$L_1=\left\{\text{wxw$^R$|w$\in$(a,b)$^*$, x$\in$c }\right\}$L_2=\left\{\text{wy|w, y $\in$ (a, ... is context sensitive languages$L_1, L_4$ are context free, $L_2$ and $L_3$ is context sensitive languages
613
views
0 answers
3 votes
Payal Rastogi asked Nov 2, 2015
613 views
Common Data for Q14,15 &16 is given below: Ram takes two context-free languages $L_1$ and $L_2$ a). He concatenates $L_1 $ and $L_2$ to obtain a new set $L_3$ ... that is not finitec). cfl that may regular d). r.e. set that is never finite.