Problem:
A permutation of is chosen uniformly at random. A partition of the permutation into contiguous blocks is correct if, when each block is sorted independently, the entire permutation becomes sorted. For example, the permutation can be partitioned correctly into the blocks and , since when these blocks are sorted, the permutation becomes .
Find the expected value of the maximum number of blocks into which the permutation can be partitioned correctly.
, 2018
Solution
Solution:
Let be a permutation on . Call a breakpoint of if . Notice that the maximum partition is into blocks, where is the number of breakpoints: if our breakpoints are , then we take as our contiguous blocks.
Now we just want to find
where if is a breakpoint, and otherwise. We use linearity of expectation and notice that
since this is the probability that the first numbers are just in some order. Thus,
We can compute for that the answer is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.