Question

Consider the following two statements about regular languages:

S1S_1: Every infinite regular language contains an undecidable language as a subset.

S2S_2: Every finite language is regular.

Which one of the following choices is correct?

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2021 answer key

Solution

Analyze language cardinality and computability properties of infinite regular languages and finite languages.

Evaluate statement S1S_1:
Let LL be any infinite regular language over an alphabet Σ\Sigma. Since LL contains countably infinitely many strings, the power set 2L2^L (the set of all sublanguages of LL) is uncountably infinite, having cardinality 2ℵ02^{\aleph_0}. However, the set of all decidable (Turing-decidable) languages over Σ\Sigma is countably infinite, because every decidable language is decided by at least one valid Turing machine, and the set of all Turing machines is countable. Since a countably infinite set cannot contain an uncountably infinite set, uncountably many subsets of LL must be undecidable. Hence, LL contains undecidable languages as subsets. Statement S1S_1 is true.

Evaluate statement S2S_2:
Every finite language Lfin={w1,w2,…,wk}L_{\text{fin}} = \{w_1, w_2, \dots, w_k\} is a finite union of single-string languages {wi}\{w_i\}. Each single-string language is trivially accepted by a finite automaton, and regular languages are closed under finite union. Therefore, every finite language is regular. Statement S2S_2 is true.

Since both statements S1S_1 and S2S_2 are true, option C is correct.

Final answer

C

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
Question
46 of 65, printed as CS Q.36
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.