Question
Let be the set of natural numbers. Consider the following sets.
P: Set of Rational numbers (positive and negative)
Q: Set of functions from {0, 1} to
R: Set of functions from to {0, 1}
S: Set of finite subsets of .
Which of the sets above are countable?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2018 answer key
Solution
Assess the cardinality of each set using standard set theory and countability results.
Evaluate each set:
- P: Set of rational numbers . can be placed in one-to-one correspondence with a subset of , which is countably infinite. Hence, P is countable.
- Q: Set of functions from to . A function is uniquely defined by . Since the Cartesian product of two countable sets is countable, Q is countable.
- R: Set of functions from to . This is the set of all infinite binary sequences, which has cardinality (uncountable by Cantor's diagonal argument). Hence, R is uncountable.
- S: Set of finite subsets of . The collection of finite subsets is , a countable union of countable sets, which is countable. Hence, S is countable.
Sets P, Q, and S are countable, matching option D.
D
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2018 Computer Science and Information Technology (CS)
- Question
- 37 of 65, printed as CS Q.27
- 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.