Exercise · Volume 1 · 1.2.10-8
Exercise 1.2.10-8
not stated yet in Lean solution written
| Rating | M20 |
|---|---|
| Markers | M (mathematical) |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.10 of Volume 1. Companion chapter: Analysis of an algorithm |
The task
Find the probability that keys, each chosen at random from values, are all distinct.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Count the favorable lists and divide by .
Solution
Show the solution
There are equally likely lists . A list with distinct entries is chosen by taking in ways, in ways, and so on:
and the probability is for . For fixed it tends to as , because each factor .
Check
For and the value is (the birthday problem). For , it is .
Remarks
The next exercise counts lists with exactly distinct values. The case is this one.
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.