GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 36

GATE CSE 2021 Set 2 Q36

Theory of Computation · Decidability & Computability · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q36 2 marks · MCQ
Report issue

Decidability & Computability

Question 36, GATE 2021: S1 every infinite regular language contains an undecidable subset. S2 every finite language is regular. A only S1; B only S2; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Every infinite language over a finite alphabet is countably infinite and has uncountably many subsets, whereas only countably many algorithms, hence decidable languages, exist. At least one subset is therefore undecidable, proving S1. Every finite language has a regular expression formed by union of its finitely many words, proving S2. Thus C.

The counting argument is nonconstructive: it proves an undecidable subset exists without requiring the regular language itself to encode a difficult membership test. For a finite language {w1,…,wm}, regex w1+…+wm recognizes it; the empty language is regular too. Being a subset of a decidable language does not imply decidability.

Original paper, page 76 · Answer key