1 / 5

Class Constrained Packing

Solve the class-constrained packing problem where items of different colors need to be packed into bins with limited capacity and color compartments. Use the First-Fit algorithm to minimize the number of bins required.

alund
Download Presentation

Class Constrained Packing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Class Constrained Packing We need to packitems into bins. • All items have the same (unit) size. Each item has a color (type). • All the bins have the same capacity. • Each bin can accommodate items from a bounded number of colors.

  2. Example of class-constrained packing n=15, M=5 v = 5, c = 2 Notations n - number of items in the instance. M - number of distinct colors in the instance. v - bin’s capacity. c- number of compartments in a bin. (The bin can accommodate v items of c distinct colors)

  3. Applications Multimedia on Demand Systems: The system receives requests for broadcasts of M movies. The requested movie should be transmitted by a shared disk. Each disk has limited load capacity, v, and limited storage capacity, c. c=2 v=5

  4. Class-constrained Packing : • The items arrive one at a time. In each step we get one unit size item of some color. • We need to pack this item without any knowledge of the subsequent items. • Formally, the instance is given as a sequence, =a1,a2,…, an,such that k, ak{1,..,M}. • Objective: use a minimum number of bins to pack all of the items in 

  5. Possible optimal packing A First-Fit Packing First-fit Algorithm: Put an arriving item in the leftmost bin that can accommodate it.  = v = 5 c = 2 First-fit packing

More Related