edited by
2,218 views
2 votes
2 votes

Given the following two languages : 

$L_{1}=\left\{a^{n}b^{n}|n\geq 1\right\} \cup \left\{a\right\}$

$L_{2}=\left\{w C w^{R}|w \in \left\{a, b\right\}^{*}\right\}$

Which statement is correct ?

  1. Both $L_{1}$ and $L_{2}$ are not deterministic.
  2. $L_{1}$ is not deterministic and $L_{2}$ is deterministic.
  3. $L_{1}$ is deterministic and $L_{2}$ is not deterministic.
  4. Both $L_{1}$ and $L_{2}$ are deterministic. 
edited by

2 Answers

Best answer
5 votes
5 votes
Both are deterministic CFL

L2... Insert symbol into stack until C doesn't appear... If C the skip it and compare top of stack with input symbol.. Because of C it becomes deterministic...

L1..

If "a " comes then we can't decide ...but after "a"  , "a" or "b" comes then first part of given language is considered and if epsilon comes then second part need to consider... We can easily recognize it with the help of DPDA...
selected by
0 votes
0 votes
L1 is NDCFL Languuage because for that we will not able to give DCFL but L2 is DCFL languaga.So,option (B) is the correct option.
Answer:

Related questions

0 votes
0 votes
1 answer
2
makhdoom ghaya asked Jul 15, 2016
2,367 views
Match the following $:$$\begin{array}{clcl} & \textbf{List – I} & & \textbf{List – II} \\ \text{a.} & \text{Chomsky Normal form} & \text{i.} & S \rightarrow b S S...
3 votes
3 votes
2 answers
4
go_editor asked Jan 6, 2017
5,434 views
Four bits are used for packed sequence numbering in a slinding window protocol used in a computer network. What is the maximum window size?481516