Consider the following two statements about regular languages:
- : Every infinite regular language contains an undecidable language as a subset.
- : Every finite language is regular.
Which one of the following choices is correct?
View worked solution
Answer: C
Let us analyze both statements individually:
- Statement : Let be an infinite regular language. The power set of , denoted as , represents the set of all subsets of . Since is infinite, is uncountably infinite (). However, the set of all decidable languages is countably infinite because each decidable language is decided by a distinct Turing machine, and the set of all Turing machines is countable. Since there are uncountably many subsets of but only countably many decidable languages, there must exist uncountably many subsets of that are undecidable. Thus, is true.
- Statement : Any finite language can be defined by the regular expression . Since a regular expression exists for every finite language, every finite language is regular. Thus, is true.
Since both statements and are true, the correct option is C.
Free practice · Your answers on this page are not saved.
