The GATE Grind

GATE 2015 CS (CS2) – Question 59

Engineering Mathematics · Probability and Statistics · 2 marks · Numerical answer

X and Y contain 2 and 20 distinct objects respectively. Choose uniformly from all functions X→Y. What is the probability that the function is one-to-one?

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 0.95

Explanation

There are 20² possible functions. For an injective function, choose the image of the first input in twenty ways and that of the second in nineteen ways. The probability is 20×19/20²=19/20=0.95.

More Probability and Statistics questions

All Probability and Statistics questions →