A Stochastic Analysis of the Harmonic Bin-Packing Algorithm

顾晓东,许胤龙,陈国良,顾钧
DOI: https://doi.org/10.3321/j.issn:0254-4164.2001.05.016
2001-01-01
Chinese Journal of Computers
Abstract:One-dimensional bin-packing problem has many important applications such as multiprocessor scheduling, resource allocation, real-world planning, and packing and scheduling optimization problems. The problem is known to be NP-hard, so researchers have turned to the study of approximation algorithms which attempt to find near-optimal solutions although they do not guarantee to find an optimal solution for every instance. Harmonic(HK) algorithm, which is first proposed by Lee & Lee based on the algorithm Next Fit(NF), is one of the most important approximation algorithms. It is an O(n)-time O(K)-space on line algorithm with a worst-case performance ratio of 1.69103…. In this paper, we analyze the average-case performance of the Harmonic algorithm for pieces of inter-independent distributed sizes, give the average-case performance ratio for (0,a](a1) uniform distributed inputs and verify these results with numerical experiments. Discuss the algorithm performance for different constant a and K and point out that the algorithm performance improves for a-decreasing or K-increasing, especially when K is sufficient large, the average-case performance ratio of Harmonic algorithm is 1.28987… under (0,1] uniform distribution while it improves to 1.15947… under (0,0.5] uniform distribution. Through these analysis we confirm that, with an O(K) extra space cost, Harmonic algorithm is better than Next Fit algorithm not only in worst-case performance, but also in average-case performance.
What problem does this paper attempt to address?