3 ms·
Sure, but once the truck is full, sending one more letter needs an entire second truck. Average this across the system, and a route's costs per parcel are rough
by mikeash 11y ago
Sure, but once the truck is full, sending one more letter needs an entire second truck. Average this across the system, and a route's costs per parcel are roughly equal to (cost of running one truck) / (number of parcels the truck carries).
- deleted 11y ago[deleted]
- Retric 11y agoThe normal solution to that is just wait a day to deliver some mail. With some intelligent routing you basely never send a truck out that's not close to normal capacity.
- hamiltonkibbe 11y agoNagle's algorithm[0]. So long as you haven't recieved a "Where the hell is my mail" phone call, just keep adding stuff to the second truck until that second truck fills up, and send it later. [0]: https://en.wikipedia.org/wiki/Nagle%27s_algorithm https://en.wikipedia.org/wiki/Nagle%27s_algorithm