Exams › GATE › Technical
Consider the following sets:
S1. Set of all recursively enumerable languages over the alphabet {0,1}
S2. Set of all syntactically valid C programs
S3. Set of all languages over the alphabet {0,1}
S4. Set of all non-regular languages over the alphabet {0,1}
Which of the above sets are uncountable?
- S1 and S2
- S3 and S4
- S2 and S3
- S1 and S4
Correct answer: S3 and S4
Solution
S3, the set of all languages over the alphabet {0,1}, is uncountable because it includes all possible subsets of strings formed from that alphabet, which corresponds to the power set of the natural numbers. S4, the set of all non-regular languages, is also uncountable since it contains infinitely many languages that cannot be described by finite automata, further contributing to the uncountability.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →