GATE / CS ARCHIVE

GATE CSE 2000 / QUESTION 5(b)

All finite multisets

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2000 paper

GATE 2000, Q5(b) Descriptive
Report issue

Sets, Relations & Functions

Question 5(b), GATE 2000: A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.

Task: How many multisets can be constructed, with no size bound stated?
Question 5(b), GATE 2000: A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.

Task: How many multisets can be constructed, with no size bound stated?
Tap to enlarge
Shared context

A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.

Answer & solution

Answer: Countably infinitely many for n≥1; one (the empty multiset) for n=0. (no official key was published)

1. A multiset is specified by its multiplicity vector (m₁,…,mₙ), each mᵢ a nonnegative integer. The question gives no upper bound on the sum.

2. For n≥1, using 0,1,2,… copies of the first type already gives infinitely many distinct multisets.

3. There are C(n+k−1,k) multisets of each fixed size k by stars and bars. A countable union over k≥0 of finite sets is countable, so the answer is countably infinite.

4. If size four had also been imposed here, the answer would instead be C(n+3,4). The printed part (b) does not impose that bound. With no element types, only the empty multiset exists.

Original paper, page 7