Pair only the lightest block
transcript
Three jobs need one, two and nine units. Two servers hold two jobs each, at most. Find the smallest memory limit for the fleet. Which jobs should share a server?
There are three jobs on two servers. Jobs minus servers is three minus two. So exactly one server must hold a pair. The third job runs alone.
The trap is to pair the lightest with the heaviest. One plus nine makes ten, so the limit is ten. Pair the two lightest jobs instead. The nine runs alone, and the limit is nine.
Count the pairs first, as jobs minus servers. Pair only inside the lightest block of jobs. Let the heaviest jobs run alone on a server.
Take four jobs on two servers. That needs two pairs. Pair the lightest three with the heaviest five. That makes eight. Pair the next three with four, which makes seven. The largest sum is eight, so the limit is eight.
Count the pairs first, before you choose who pairs. Then pair inside the lightest block only. Full breakdown in the lecture.