Problem 1
Think of as fixed parking spots on a number line and as cars that must park in some order. Pairing the biggest car with the biggest spot, the second biggest with the second biggest, and so on (the "sorted" pairing ) keeps every car as close as possible to its spot on average. Shuffling the cars into any other order can only make the total squared parking distance larger, never smaller. This problem asks for a rigorous proof of that intuition.
Both sides of the inequality are sums of squared differences between the fixed sequence and a sequence built from the same multiset : on the left the sequence is already sorted the same way as , on the right it is an arbitrary rearrangement . The claim is that the sorted pairing minimizes the sum of squared differences among all possible pairings.