Question
Let and denote the sets containing 2 and 20 distinct objects respectively and denote the set of all possible functions defined from to . Let be randomly chosen from . The probability of being one-to-one is _____.
Official answer and solution
- Official answer
- 0.95
- From
- Official GATE 2015 answer key
Solution
Calculate the ratio of injective (one-to-one) functions to total functions from to .
We are given:
- Total number of functions from to :
- Number of one-to-one (injective) functions:
- The first element of can map to any of the 20 elements in .
- The second element of must map to any of the remaining 19 distinct elements in .
- Probability:
Final answer
0.95
Common trap
Dividing combinations by without accounting for domain permutations.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 2
- Question
- 64 of 65, printed as CS Q.54
- 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.