Abstract
We introduce a new problem that was motivated by a (more complicated) problem arising in a robotized assembly environment. The bin coloring problem is to pack unit size colored items into bins, such that the maximum number of different colors per bin is minimized. Each bin has size B ∈ N . The packing process is subject to the constraint that at any moment in time at most q ∈ N bins are partially filled. Moreover, bins may only be closed if they are filled completely. We settle the computational complexity of the problem and design an approximation algorithm for a natural version which gives a solution whose value is at most one greater than the optimal one. We also investigate the existence of competitive online algorithms, which must pack each item without knowledge of any future items. We prove an upper bound of 3 q − 1 and a lower bound of 2 q for the competitive ratio of a natural greedy-type algorithm, and show that surprisingly a trivial algorithm which uses only one open bin has a strictly better competitive ratio of 2 q − 1 . Moreover, we show that any deterministic algorithm has a competitive ratio Ω ( q ) and that randomization does not improve this lower bound even when the adversary is oblivious.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.