arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1304.2881cs.DMcs.DS
收藏

平衡离线分配加权球到箱子

Balanced offline allocation of weighted balls into bins

Ömer Demirel, Ivo F. Sbalzarini

摘要:

我们提出了一种基于排序的贪心算法SortedGreedy[m],用于近似求解离线版本的d-选择加权球入箱问题,其中每个球的选择数等于箱数。我们假设球的重量是非负的。我们比较了基于排序的算法与称为Greedy[m]的朴素算法的性能。我们表明,通过根据权重对输入数据进行排序,对于小问题(<= 4000个球),我们能够实现一个数量级的较小间隙(最重和最轻箱之间的权重差),对于较大的问题,至少两个数量级的较小间隙。在实践中,SortedGreedy[m]运行得几乎和Greedy[m]一样快。这使得基于排序的算法有利于解决离线加权球入箱问题。

英文摘要:

We propose a sorting-based greedy algorithm called SortedGreedy[m] for approximately solving the offline version of the d-choice weighted balls-into-bins problem where the number of choices for each ball is equal to the number of bins. We assume the ball weights to be non-negative. We compare the performance of the sorting-based algorithm with a naive algorithm called Greedy[m]. We show that by sorting the input data according to the weights we are able to achieve an order of magnitude smaller gap (the weight difference between the heaviest and the lightest bin) for small problems (<= 4000 balls), and at least two orders of magnitude smaller gap for larger problems. In practice, SortedGreedy[m] runs almost as fast as Greedy[m]. This makes sorting-based algorithms favorable for solving offline weighted balls-into-bins problems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑