Fill each half from the largest
transcript
Speed readings must zigzag. Low, high, low, high. No equal neighbours allowed.
Sort the readings. Put the lower half in the even places. Put the upper half in the odd places.
The sorted readings are four, five, five, six. Fill from the smallest. The two fives touch. Fill from the largest instead. Five, six, four, five. A strict zigzag.
Both halves can hold the median value. Filling from the smallest puts the two copies together. Filling from the largest keeps them apart.
From the smallest, the result is four, five, five, six. It fails. From the largest, the result is five, six, four, five. It passes. Both start from the same four readings.
With an odd count, the lower half has one more value. It fills the even places, and there is one more of those. The last place is even, so it takes a lower value.
Test the readings four, five, five, six. And test one, two, two, three.
Split by rank. Fill from the largest. Full breakdown in the lecture.