## For simplicity, assume:

- All inputs distinct (no repeats)
- Slightly different partition() from book
- partition around a random element, which is not included in subarrays
- all splits (0:n-1, 1:n-2, 2:n-3, … , n-1:0) equally likely

## What is the probability of a particular split happening?

## Answer: 1/n

Previous slide | Next slide | Back to first slide | View graphic version |