Equal totals still count
transcript
Two shelves hold fees. One shelf has one and two. The other has three and four. What is the third cheapest bundle?
Every pair makes a bundle. The totals are four, five, five, six. The third smallest is five. The two fives are different bundles.
Keep the repeated five. The third place is five. Drop it and the list shrinks. The third place becomes six.
A set drops equal values. But bundles are not values. Each bundle takes a place.
Real shelves make too many bundles. Keep only the smallest k sums. The repeats stay in.
A service has many regions. Each shelf has many titles. Only the k smallest matter.
Say why keeping k is safe. Adding a fee only grows a sum. So a large sum never returns.
Test a shelf with equal fees. Test k equal to one. Test k equal to every bundle.
Never drop repeated totals. Full breakdown in the lecture.