296 views
3 votes
3 votes
Which of the following statements is/are TRUE? (Mark all the appropriate choices)
  1. The set of all regular languages is countable
  2. The set of all context-free languages is countable
  3. The set of all recursive languages is countable
  4. The set of all recursively enumerable languages is countable

1 Answer

Best answer
4 votes
4 votes
Recursively enumerable languages are accepted by Turing machines and we have a way to enumerate all possible Turing machines making them countable. Now $\textbf{any subset of a countable set is countable.}$ So, regular, context-free and recursive languages are also countable.
Reference: https://math.stackexchange.com/questions/19187/is-there-such-a-thing-as-a-countable-set-with-an-uncountable-subset
selected by
Answer:

Related questions

2 votes
2 votes
1 answer
4
gatecse asked Sep 29, 2020
166 views
Given that $\Sigma = \{a\},$ which of the following finite automata correctly implements the regular expression $a^{\ast}?$ (Mark all the correct options)