GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 1.8

Counting all functions

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 1998 paper

GATE 1998, Q1.8 1 mark · MCQ
Report issue

Combinatorics & Counting

Question 1.8, GATE 1998: Count functions from an m-element domain to an n-element codomain among m+n, m^n, n^m, mn.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Each of the m domain elements independently chooses one of n images. Multiplying n choices m times yields nm. Different domain elements may share an image because injectivity is not required. Thus C, not mn, which would count functions in the reverse direction. With an empty domain there is one empty function; the usual counting formula is interpreted accordingly.

Original paper, page 1