Grinstead-Snell-Probability · Problem 3.1.24

Combinatorics

Mathematics · permutations

Problem

For the task described in Exercise 23, it can be shown that the best strategy is to pass over the first k−1k-1 candidates where kk is the smallest integer for which 1k+1k+1+⋯+1n−1≤1.\frac{1}{k} + \frac{1}{k+1} + \cdots + \frac{1}{n-1} \leq 1. Using this strategy the probability of getting the best candidate is approximately 1/e=.3681/e = .368. Write a program to simulate Barbara Smith's interviewing if she uses this optimal strategy, using n=10n = 10, and see if you can verify that the probability of success is approximately 1/e1/e.

Related theory

Browse the problem library