GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 3(c)

Compare relation and function counts

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

GATE 2002, Q3(c) Descriptive
Report issue

Sets, Relations & Functions

Question 3(c), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Which is larger, Nᵣ or N𝒻, for every possible n?
Question 3(c), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Which is larger, Nᵣ or N𝒻, for every possible n?
Tap to enlarge
Shared context

A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.

Answer & solution

Answer: N_r > N_f for every integer n > 0 (no official key was published)

1. Recall both counts in this leaf. For an n-element nonempty set, the number of relations is Nr = 2n², and the number of total functions A → A is Nf = nn. We must compare them for every positive integer n, not just for large n.

2. Embed the functions into the relations. Map f to its graph {(x,f(x)):x ∈ A}. Different functions differ at some input and therefore have different graphs. This is an injection into the set of binary relations, proving Nf ≤ Nr.

3. Show the inequality is strict. The empty relation is a binary relation, but it cannot be the graph of a total function on a nonempty domain. Thus there is at least one relation outside the image of that injection.

4. Conclude Nr > Nf for every n > 0, including n = 1, where the counts are 2 and 1. Algebraically, the same comparison follows from 2n > n and raising both positive sides to the power n.

Original paper, page 6