Skip to content
GATEiit

GATE CSE 2019 Q44: Which sets of languages and programs are uncountable

Syllabus topics: Turing machines and undecidability; Sets, relations, functions, partial orders and lattices

Question

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?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: B (official GATE 2019 final answer key)

Concept used: Anything described by a finite string (programs, Turing machines, hence RE languages) is countable, while the power set of the countable set {0,1}∗ is uncountable, and removing a countable subset from it leaves it uncountable.

Concept notes

Loading notes…

First step: Ask for each set whether its members can be listed as finite strings (one TM or program per member); the set of all languages is the power set of {0,1}∗.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Turing machines and undecidability

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key