The lowest bound is not one.
transcript
A truck ships parcels in order. The search starts at one. It returns a wrong answer. Let me show you why. It passes small tests, and fails later.
The parcels weigh one, one and five. A capacity of two counts the five as a day. So the check wrongly passes. Start at the heaviest weight.
The greedy pass never refuses a parcel. A heavy parcel gets a day of its own. So two days look like enough. The bug hides until a heavy parcel arrives. Always test one heavy parcel.
Set the lowest bound to the heaviest parcel. Set the highest to the total weight. Keep both in sixty-four bits. Then every capacity can carry every parcel.
A hundred thousand heavy parcels. The total reaches a hundred billion. That needs sixty-four bits. Overflow gives a wrong answer without a crash.
Check the lowest bound. Check the highest bound. Test too small, right, too big. Full breakdown in the lecture.