File size: 1,942 Bytes
10d6c29 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | {
"problem": "Adrian is lining up $n \\geq 2$ toy cars in a row. Each car has a width and length, and no two cars have the same width or length. Initially, the cars are arranged in increasing order of length from left to right. Adrian repeatedly does the following: he chooses some two adjacent cars where the left car is shorter in length and greater in width than the right car, and he swaps them. He keeps doing this until no further moves are possible. Prove that no matter how Adrian chooses his swaps, the procedure will eventually terminate, and in the end, the cars will be sorted in increasing order of width from left to right.",
"solution": "Define an inversion to be a pair of cars where the one on the left is wider than the one on the right. Clearly, each move strictly decreases the number of inversions, so the procedure must terminate.\n\n Now, suppose for sake of contradiction that we can make no more moves, but the cars are not sorted in increasing order of width. Consider the smallest index $i$ such that car $i$ is wider than car $i + 1$. Since we cannot make any further swaps, it must also be the case that car $i$ is longer than book $i + 1$. This means that originally, car $i$ was to the right of car $i + 1$, and at some point they switched relative positions. However, this is not possible because the rules prevent us from ever swapping two books when one is both taller and wider than the other.",
"grading_guidelines": "(Partial)\n 1. Found an increasing quantity (e.g. the number of inversion according to the width or length)\n 2. Tried to use minimality argument by taking the first book not sorted by width.\n(Almost)\n 1. Solution is almost complete, but made minor mistakes which are not negligible.",
"problem_id": "PB-Basic-015",
"level": "basic",
"category": "Combinatorics",
"source": "(Modified) 2020 USOJMO P1",
"max_score": 7,
"difficulty": "pre-IMO",
"short_answer": " "
}
|