retagged by
350 views
3 votes
3 votes

Consider the following languages :

  1. $L_{1}=\left\{a^{k} b^{m} c^{n} \mid(k=m\right.$ or $m=n)$ and $\left.k+m+n \geq 2\right\}$
  2. $L_{2}=\left\{a^{k} b^{m} c^{n} \mid(k=m\right.$ or $m=n)$ and $\left.k+m+n \leq 2\right\}$
  3. $L_{3}=\left\{a^{k} b^{m} c^{n} \mid k+m+n \geq 2\right\}$

Which of the above languages are Regular?

  1. $\mathrm{L}_{2}$ Only
  2. $\mathrm{L}_{3}$ Only
  3. $L_{2}$ and $L_{3}$ only
  4. All
retagged by

2 Answers

6 votes
6 votes

The point to be considered here is : 

if comparison → L is NON-REGULAR,

                         → Except L is finite

 

In L1: comparison & nonfinite → Non-regular

In L2 : comparison & finite → Regular

In L3: No comparison : >= k : regular

5 votes
5 votes
In $\mathrm{L}_{1}$, there is a matching between $\mathrm{k}, \mathrm{m}$ Or $\mathrm{m}, \mathrm{n}$; so, it is Non-regular but CFL. $\mathrm{L}_{2}$ is finite, so regular. $\mathrm{L}_{3}$ is regular because No matching required.
Answer:

Related questions

402
views
1 answers
4 votes
GO Classes asked Jun 22, 2022
402 views
Let $\text{L}$ be a language over an alphabet $\Sigma$. The equivalence relation $\sim_{\text{L}}$ on the set $\Sigma^{\ast}$ of finite strings ... classes is infinite.Which of the above statements is/are correct?Only $1$Only $2$BothNone
633
views
1 answers
3 votes
GO Classes asked Jun 22, 2022
633 views
Consider the following non-deterministic finite automaton(NFA), where $\Sigma = \{a, b, c\}.$How many strings of length $6$ are accepted by the given NFA over the alphabet $\Sigma=\{\mathrm{a}, \mathrm{b}, \mathrm{c}\}$ ?
231
views
1 answers
3 votes
GO Classes asked Jun 22, 2022
231 views
Consider the following languages:The language of regular expression $(0+1)^{\ast} 11(0+1)^{\ast}$ ... $1$ is a subset of $2$, nor $2$ is a subset of $1.$
283
views
1 answers
2 votes
GO Classes asked Jun 9, 2022
283 views
Consider the following statements :Any finite subset of $\{a, b\}^{\ast }$ is a regular language;For any regular expressions $\mathbf{r}$ ... same language.Which of the above statements is/are true?Only $a$Only $b$BothNone