Question
You are relocating to a new place. To help with the relocation, you have hired the services of a packing and moving company. The company
You are relocating to a new place. To help with the relocation, you have hired the services of a packing and moving company. The company packs all the items into multiple cartons of the same size. The charges are proportional to the number of cartons used for packing the items. Each carton has a capacity C and there are infinite number of cartons available for packing. You have a total of N items with weight Wi (ni1). Assume that all items have weights smaller than carton capacity. Give an algorithm to calculate the minimum number of cartons required to pack all the items. Also give the list of items in each carton.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started