edited by
4,510 views
25 votes
25 votes

Let $\sum_{1}= \left\{a\right\}$ be a one letter alphabet and $\sum_{2}= \left\{a, b\right\}$ be a two letter alphabet. A language over an alphabet is a set of finite length words comprising letters of the alphabet. Let $L_{1}$ and $L_{2}$ be the set of languages over $\sum_{1}$ and $\sum_{2}$ respectively. Which of the following is true about $L_{1}$ and $L_{2}$:

  1. Both are finite.
  2. Both are countably infinite.
  3. $L_{1}$ is countable but $L_{2}$ is not.
  4. $L_{2}$ is countable but $L_{1}$ is not.
  5. Neither of them is countable.
edited by

6 Answers

–6 votes
–6 votes
(B) will be answer

We can draw DFA for both of them. But DFA always contain a loop
Answer:

Related questions

18 votes
18 votes
4 answers
3
makhdoom ghaya asked Dec 7, 2015
2,349 views
Let $a, b, c$ be regular expressions. Which of the following identities is correct?$(a + b)^{*} = a^{*}b^{*}$$a(b + c) = ab + c$$(a + b)^{*} = a^{*} + b^{*}$$(ab + a)^{*}...