Discrete Applied Mathematics. Tighter bounds of the First Fit algorithm for the bin-packing problem

Similar documents
First Fit bin packing: A tight analysis

Optimal analysis of Best Fit bin packing

A new analysis of Best Fit bin packing

The effect of machine availability on the worst-case performance of LPT

arxiv:cs/ v2 [cs.ds] 23 Aug 2006

On-line Bin-Stretching. Yossi Azar y Oded Regev z. Abstract. We are given a sequence of items that can be packed into m unit size bins.

A Robust APTAS for the Classical Bin Packing Problem

Online Algorithms for 1-Space Bounded Multi Dimensional Bin Packing and Hypercube Packing

Polynomial Time Algorithms for Minimum Energy Scheduling

Colored Bin Packing: Online Algorithms and Lower Bounds

A robust APTAS for the classical bin packing problem

An analysis of the LPT algorithm for the max min and the min ratio partition problems

Scheduling Linear Deteriorating Jobs with an Availability Constraint on a Single Machine 1

On-line Scheduling of Two Parallel Machines. with a Single Server

Scheduling linear deteriorating jobs with an availability constraint on a single machine

EXACT DOUBLE DOMINATION IN GRAPHS

Perfect Packing Theorems and the Average-Case Behavior of Optimal and Online Bin Packing

University of Twente. Faculty of Mathematical Sciences. Scheduling split-jobs on parallel machines. University for Technical and Social Sciences

ARTICLE IN PRESS Discrete Applied Mathematics ( )

Average-Case Performance Analysis of Online Non-clairvoyant Scheduling of Parallel Tasks with Precedence Constraints

The NP-Hardness of the Connected p-median Problem on Bipartite Graphs and Split Graphs

Semi-Online Multiprocessor Scheduling with Given Total Processing Time

The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles

Theoretical Computer Science

Discrete Applied Mathematics

Approximation Schemes for Scheduling on Parallel Machines

Machine Minimization for Scheduling Jobs with Interval Constraints

arxiv: v1 [cs.ds] 11 Dec 2013

Deciding Emptiness of the Gomory-Chvátal Closure is NP-Complete, Even for a Rational Polyhedron Containing No Integer Point

The Maximum Flow Problem with Disjunctive Constraints

ON THE COMPLEXITY OF SOLVING THE GENERALIZED SET PACKING PROBLEM APPROXIMATELY. Nimrod Megiddoy

Asymptotic Worst-Case Analyses for the Open Bin Packing Problem

Complexity analysis of job-shop scheduling with deteriorating jobs

All Good (Bad) Words Consisting of 5 Blocks

Analysis of Transmissions Scheduling with Packets Fragmentation

Equitable list colorings of planar graphs without short cycles

Discrete Applied Mathematics

On the approximation problem of common fixed points for a finite family of non-self asymptotically quasi-nonexpansive-type mappings in Banach spaces

2 Notation and Preliminaries

Heuristics for Solving the Bin-Packing Problem with Conflicts

2 COLORING. Given G, nd the minimum number of colors to color G. Given graph G and positive integer k, is X(G) k?

Gearing optimization

Data Structures and Algorithms Running time and growth functions January 18, 2018

Complexity analysis of the discrete sequential search problem with group activities

Scheduling jobs with agreeable processing times and due dates on a single batch processing machine

1 Introduction and Results

A polynomial-time approximation scheme for the two-machine flow shop scheduling problem with an availability constraint

Relations between capacity utilization and minimal bin number

Computing Standard-Deviation-to-Mean and Variance-to-Mean Ratios under Interval Uncertainty is NP-Hard

On Hamiltonian cycles and Hamiltonian paths

Theoretical Computer Science

Machine scheduling with resource dependent processing times

Techniques for Proving Approximation Ratios in Scheduling

Alternatives to competitive analysis Georgios D Amanatidis

Complexity and Algorithms for Two-Stage Flexible Flowshop Scheduling with Availability Constraints

Online Interval Coloring and Variants

Scheduling Parallel Jobs with Linear Speedup

arxiv: v1 [cs.ds] 6 Jun 2018

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

Non-separating 2-factors of an even-regular graph

The best expert versus the smartest algorithm

A note on proving the strong NP-hardness of some scheduling problems with start time dependent job processing times

Lecture 6,7 (Sept 27 and 29, 2011 ): Bin Packing, MAX-SAT


Radio Number for Square of Cycles

The Maximum Resource Bin Packing Problem

Discrete Mathematics

The Hausdorff measure of a class of Sierpinski carpets

The cocycle lattice of binary matroids

A Probabilistic Algorithm for -SAT Based on Limited Local Search and Restart

Partition is reducible to P2 C max. c. P2 Pj = 1, prec Cmax is solvable in polynomial time. P Pj = 1, prec Cmax is NP-hard

Centre d Economie de la Sorbonne UMR 8174

Pancyclic out-arcs of a vertex in tournaments

Tight Approximation Ratio of a General Greedy Splitting Algorithm for the Minimum k-way Cut Problem

#A45 INTEGERS 9 (2009), BALANCED SUBSET SUMS IN DENSE SETS OF INTEGERS. Gyula Károlyi 1. H 1117, Hungary

Complexity of conditional colorability of graphs

Tight Upper Bounds for Semi-Online Scheduling on Two Uniform Machines with Known Optimum

The Parameterized Complexity of Intersection and Composition Operations on Sets of Finite-State Automata

8 Knapsack Problem 8.1 (Knapsack)

Squares in products with terms in an arithmetic progression

Resolving infeasibility in extremal algebras 1

Bounds on Shannon Capacity and Ramsey Numbers from Product of Graphs

Bincoloring 1. Sven O. Krumke a Willem E. de Paepe b Jörg Rambau c Leen Stougie d Kaiserslautern, Germany.

Online Scheduling of Parallel Jobs on Two Machines is 2-Competitive

CS264: Beyond Worst-Case Analysis Lecture #15: Smoothed Complexity and Pseudopolynomial-Time Algorithms

1 Ordinary Load Balancing

Matchings in hypergraphs of large minimum degree

Time. 3 p3 Time. (a) (b)

K-center Hardness and Max-Coverage (Greedy)

An algorithm to increase the node-connectivity of a digraph by one

THE COMMUNICATIONS COMPLEXITY HIERARCHY IN DISTRIBUTED COMPUTING. J. B. Sidney + and J. Urrutia*

Online Bin Packing with Resource Augmentation

A necessary and sufficient condition for the existence of a spanning tree with specified vertices having large degrees

Differential approximation results for the Steiner tree problem

LOWER BOUNDS FOR THE MAXIMUM NUMBER OF SOLUTIONS GENERATED BY THE SIMPLEX METHOD

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

Memorandum COSOR 97-23, 1997, Eindhoven University of Technology

Maximizing Data Locality in Distributed Systems

Throughput Optimization in Single and Dual-Gripper Robotic Cells

NP-hardness of the stable matrix in unit interval family problem in discrete time

Transcription:

Discrete Applied Mathematics 158 (010) 1668 1675 Contents lists available at ScienceDirect Discrete Applied Mathematics journal homepage: www.elsevier.com/locate/dam Tighter bounds of the First Fit algorithm for the bin-packing problem Binzhou Xia a,b, Zhiyi Tan c, a Department of Mathematics, Zhejiang University, Hangzhou 31007, PR China b School of Mathematical Sciences, Peking University, Beijing 100871, PR China c Department of Mathematics, State Key Lab of CAD & CG, Zhejiang University, Hangzhou 31007, PR China a r t i c l e i n f o a b s t r a c t Article history: Received 7 July 009 Received in revised form January 010 Accepted 30 May 010 Available online 30 June 010 In this paper, we present improved bounds for the First Fit algorithm for the bin-packing problem. We prove C FF (L) 17 C (L)+ 7 for all lists L, and the absolute performance ratio 10 10 of FF is at most 1. 7 010 Elsevier B.V. All rights reserved. Keywords: Bin packing First Fit Worst case performance ratio 1. Introduction In the classical one-dimensional bin-packing problem, we are given a sequence L = (a 1, a,..., a n ) of items, each with a size in (0, 1]. We are required to pack them into a minimum number of unit-capacity bins. An excellent survey of the research on this problem is available in []. The bin-packing problem was one of the earliest to use an approximation algorithm and worst case analysis. For a given list L and algorithm A, let C A (L) denote the number of bins used when A is applied to list L, and C (L) denote the optimum number of bins for a packing of L. We will omit the mention of L if there is no ambiguity. The asymptotic performance ratio for A is defined as inf { r 1 for some N > 0, C A (L) C (L) r for all L with C (L) N The absolute performance ratio for A is defined as { } C inf r 1 A (L) C r for all list L. (L) The bin-packing problem is also one of the few combinational optimization problems for which the asymptotic performance ratio and the absolute performance ratio of a given algorithm may not be the same. For simplicity, we use a i to denote the size of item a i. The content of a bin B, which is the total size of items packed in it, is also denoted as B, when this causes no confusion. First Fit (FF for short) and First Fit Decreasing (FFD for short) are two fundamental algorithms for addressing bin-packing problems [6]. The FF algorithm can be described as follows: When we are packing a i, we place it in the lowest indexed bin whose current content does not exceed 1 a i. Otherwise, we start a }. Corresponding author. Fax: +86 571 8795383. E-mail addresses: binzhouxia@hotmail.com (B. Xia), tanzy@zju.edu.cn (Z. Tan). 0166-18X/$ see front matter 010 Elsevier B.V. All rights reserved. doi:10.1016/j.dam.010.05.06

B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 1669 new bin with a i as its first item. Algorithm FFD first sorts the items in non-increasing order of their sizes and then performs FF. In Johnson s pioneer work, he proved that C FFD (L) 11 C (L) + 4 for all lists L [6]. Note that the asymptotic performance 9 ratio cannot be smaller than 11 [7]. Later, the additive term was reduced to 3 by Baker [1], and 1 by Yue [11]. Recently, Dósa 9 further reduced it to a tight value 6 [3]. The absolute performance ratio 3 of FFD was obtained by Simchi-Levi [9], and it is 9 also tight since no polynomial time algorithm with absolute performance ratio less than 3 exists unless P = NP [5]. For the FF algorithm, Ullman proved C FF (L) 17 C (L) + 3 for all lists L [10]. Here the asymptotic performance ratio is 10 asymptotically tight, and there also exists such a list L that C (L) = 10 and C FF (L) = 17 [7]. The additive term was reduced to in [7], and 9 in [4]. To the author s knowledge, no further improvement has been made since then. Simchi-Levi proved 10 that the absolute ratio of FF is at most 7 [9], but the bound is not tight. Though FF has a larger worst case ratio than FFD, 4 it can be used for the online version, where the items arrive in some order and must be packed into a bin as soon as they arrive, without knowledge of the remaining items. In this paper, we will give both a smaller additive term in the asymptotic performance ratio and a tighter absolute performance ratio of FF. Section gives some definitions and useful lemmas. In Section 3, we prove C FF (L) 17 C (L) + 7 10 10 for all lists L. In Section 4, we prove that the absolute performance ratio of FF is at most 1. Thus the gap between upper and 7 lower bounds of the absolute performance ratio decreases by more than 70%.. Preliminaries We define some terminology for convenience. An item greater than 1 is called large while an item greater than 1 is called 4 semilarge. The number of large items is denoted as l. Note that a semilarge item also can be bigger than 1. Let B be the set of bins used in the optimal packing, and B FF be the set of bins used by FF. If a bin B 1 is opened before another bin B in the procedure of FF, then we say that B 1 is before B and B is after B 1. When algorithm FF terminates, a bin containing exactly one item (two items) is called an i-bin (ii-bin). A bin containing no less than two (three, four) items is called a II-bin (III-bin, IV-bin). An item in an i-bin (ii-bin, II-bin, III-bin, IV-bin) is called an i-item (ii-item, II-item, III-item, IV-item). Let B i (B ii, B II, B III, B IV ) be the set of i-bins (ii-bins, II-bins, III-bins, IV-bins), and N i (N ii, N II, N III, N IV ) be the number of i-bins (ii-bins, II-bins, III-bins, IV-bins). Clearly, and B FF = B i B II = B i B ii B III (1) C FF = N i + N II = N i + N ii + N III. Lemma.1. C N i. Proof. Obviously, the total size of any two i-items exceeds 1. Otherwise, FF will not open a new bin for the item that arrived later. Accordingly, any two of them cannot be packed in one bin in the optimal packing. Hence C N i. Lemma.. Given an integer k 1, for any M k + 1, if there are M bins B 1, B,..., B M in B FF such that each of them M contains at least k items, then B i > km. k+1 Proof. Without loss of generality, assume B s is before B t for any 1 s < t M. For fixed B s and B t, s < t, consider k arbitrary items a t1, a t,..., a tk in B t. By FF we have B s + a tj > 1, j = 1,..., k. Summing the k inequalities, we get kb s + B t kb s + k a tj > k. j=1 We will prove the lemma by induction on M. By (), we have kb i +B k+1 > k, i = 1,..., k. Summing the k inequalities, we k get k B i + kb k+1 > k k+1, i.e., B i > k. The result is true for M = k + 1. Suppose the result is true for M = j k + 1, j i.e., B i > kj. By (), we have kb k+1 i + B j+1 > k, i = 1,..., j j. Summing the j inequalities, we get k B i + jb j+1 > jk. Combining this with the induction hypothesis, we have j j j+1 j B i + jb j+1 k B i + jb j+1 + (j k) j B i = = j j > jk + (j k) kj k+1 j = k(j + 1) k + 1. The result is also true for M = j + 1. The lemma is thus proved. B i ()

1670 B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 Corollary.1. (i) If B B FF and B, then B B B > 1 B. (ii) If B B II and B 3, then B B B > B. 3 (iii) If B B III and B 4, then B B B > 3 4 B. (iv) If B B IV and B 5, then B B B > 4 5 B. 3. The asymptotic performance ratio We use the weighting function defined in [4], that is 6 5 x, 0 x 1 6, 9 W(x) = 5 x 1 10, 1 6 < x 1 3, 6 5 x + 1 10, 1 3 < x 1, 6 5 x + 4 10, 1 < x 1. Clearly, W(x) is an increasing function and W(x) 6 5 x. (3) (4) Moreover, W(a) > 1 if a is a large item. The weight of bin B, W(B), is defined as the total weight of the items packed in it. Lemma 3.1 ([4]). For every bin B, W(B) 17 10. Moreover, if B does not contain large items, then W(B) 3. Let W = a L W(a) be the total weight of all items. By Lemma 3.1, we have W = a L W(a) = W(B) 17 B B B B 10 = 17 10 C. (5) Lemma 3. ([4]). W > C FF 1 + B BFF max{0, W(B) 1}. Let C = {B B B FF and W(B) < 1} and m = C. Label the bins in C as C 1, C,..., C m such that C i is before C j for any 1 i < j m. For each C i C, define α i = max{α for some j, 1 j < i, C j = 1 α} with α 1 taken to be 0. Lemma 3.3 ([4]). If m, then m 1 (1 W(C i)) 6 5 α m. The main result of this section is as follows. Theorem 3.1. For every list L, C FF (L) 17 10 C (L) + 7 10. Proof. Suppose C FF > 17 C + 7, i.e. C FF 17 C + 4. We have the following claims. 10 10 10 5 Claim 3.1. If C FF 17 C + 4, then there does not exist any large item in II-bins. 10 5 Proof. Suppose there exists a large item b 1 in a II-bin B. Since B is a II-bin, it contains another item b. If B, by b 3 1 > 1, (3) and (4), we have ( 6 W(B ) 5 b 1 + 4 ) + 6 10 5 (B b 1 ) = 6 5 B + 4 10 6 5. Thus W > C FF 1 + ( 6 1) = C FF 4 17 C by Lemma 3., which contradicts (5). Therefore, B < and 5 5 10 3 b B b 1 < 1 = 1. 3 6 For any bin B before B, B > 5 since b 6 < 1, so W(B) 6 B > 1 by (4). For any II-bin B after 6 5 B, any item in B is greater than 1 as 3 B <. Hence W(B) ( ) W 1 3 3 = 1. For any i-bin B after B, at most one bin does not containing large items. Recall that B < ( ), the weight of B is at least 1 if it contains a large item, and W 1 3 3 otherwise. In other words, all bins except one in B ( ) FF 1 have weight at least 1, and the remaining one is at least W 3 < 1. Therefore, by (5), C FF 1 ( ) 1 17 10 C W = B B FF W(B) 1 + W which is impossible. The claim is thus proved. 3 = C FF 1 + 1 = C FF 1 17 10 C + 3 10, Claim 3.. If C FF 17 10 C + 4 5, then l N i 1, where we recall that l is the number of large items.

B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 1671 Proof. By Claim 3.1, all large items are packed in i-bins by FF. Since no two large items can be packed into the same bin, we have l N i. Suppose l = N i ; then any i-bin contains exactly one large item, and its weight is at least 1. That is to say, each bin in C is a II-bin. We distinguish two cases according to the value of m. Case 1. m. Note that α m > 1 6. Otherwise, by the definition of α m and (4), there exists C j C, 1 j < m, such that C j = 1 α m and W(C j ) 6 C 5 j = 6 (1 α 5 m) 1, which is a contradiction. Since C m is a II-bin, let b 1, b be two items in C m. Clearly, b 1, b > α m. By Lemma 3.3, (4), (5) and α m > 1, we have 6 17 10 C W = B C m 1 W(B) + W(C i ) + W(C m ) = m 1 W(B) + (1 (1 W(C i ))) + W(C m ) B C m 1 1 (1 W(C i )) + W(C m ) B C m ( C FF ) m 1 1 (1 W(C i )) + (W(b 1 ) + W(b )) > C FF 1 6 5 α m + 6 5 α m + 6 5 α m = C FF 1 + 6 5 α m > C FF 4 5, which is impossible. Case. m = 1. If W(C 1 ) > 1, then by (5), 5 17 10 C W = B C W(B) + W(C 1 ) > C FF 1 + 1 5 = C FF 4 5, which is a contradiction. Hence W(C 1 ) 1 5 and thus C 1 1 6. If l 1, then there exists an i-item a 5 6 since N i = l 1 and C 1 1. Note that all bins except C 6 1 have weight at least 1. By (5), ( ) 17 5 10 C W C FF + W(a) + W(C 1 ) > C FF + W = C FF 3 6 5, which is a contradiction. Then we know that l = 0, but this implies that W = B B W(B) 3 C by Lemma 3.1, and finally yields C FF 1 < W 3 C 17 C 1 by Lemma 3.. That is impossible as well. Then Claim 3. follows. 10 5 Applying Lemma.1 and Claim 3., we obtain l C 1. In other words, there is at least one bin B B which does not contain any large items. By Lemmas 3.1 and 3., C FF 1 < W = W(B) + W(B ) 17 10 (C 1) + 3 = 17 10 C 1 5. B B \{B } It follows that C FF < 17 C + 4. The proof of Theorem 3.1 is thus completed. 10 5 4. The absolute performance ratio In this section, we prove that the absolute performance ratio of FF is no more than 1 7. Lemma 4.1. If N i 1 or N i C FF, then C FF 5 3 C. Proof. As C FF = 1 when C = 1 and 5 3 C 3 when C, our assertion is straightforward if C = 1 or C FF 3. Now assume C and C FF 4. If N i 1, then N II = C FF N i 3. By Corollary.1, we have C a L a = B B i B + B B II B B B II B > 3 N II = 3 (C FF N i ) 3 (C FF 1), i.e., 3C C FF 1. Recalling that C FF 4, we have C 3 and thus C FF 3 C + 1 5 3 C.

167 B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 If N i C FF, then by Lemma.1, C FF N i + C +. If C =, then C FF = 4 and N i = since we assume C FF 4. Consider the two i-items b 1, b which clearly follow b 1 + b > 1. Then B = a (b 1 + b ) C (b 1 + b ) < 1, B B II a L which contradicts N II = C FF N i =. Hence C 3 and we obtain C FF C + 5 3 C. Lemma 4.. If C FF 17 10 C, then 4N i 18C FF 7C 1. Proof. Since C FF 17 10 C > 5 3 C, we obtain N i and N II = C FF N i 3 by Lemma 4.1. In view of Corollary.1, we have C a L a = B B i B + B B II B > 1 N i + 3 N II = 1 N i + 3 (C FF N i ) = 3 C FF 1 6 N i. (6) By Lemma.1, we further have C > C FF 1 C, i.e., C FF < 7 C, which is equivalent to 3 6 4 7 C FF 4 C 1. (7) 7 Direct calculation shows that C 1 < 17 C when C 6. Hence we assume C 7 in the following. 4 10 Note that (6) is equivalent to N II = C FF N i > 9C FF 1C 3N i. If 9C FF 1C 3N i, then C FF 4 3 C + 1 3 N i + 9 5 3 C + 63 C < 17 10 C by Lemma.1 and C 7, which contradicts C FF 17 10 C. Therefore, N II > 9C FF 1C 3N i 3. (8) (9) Claim 4.1. If C FF 17 10 C, then the last 9C FF 1C 3N i II-bins contain only semilarge items. Proof. Suppose there exists an item which is not semilarge in one of the last 9C FF 1C 3N i II-bins. Then the content of each of the first N II (9C FF 1C 3N i ) = 1C 8C FF + N i II-bins is at least 3 4. Combining this with N i, (9) and Corollary.1, we have C > 1 N i + 3 4 (1C 8C FF + N i ) + 3 (9C FF 1C 3N i ) = C, which is a contradiction. Claim 4.. If C FF 17 10 C, then all i-items are semilarge items. Proof. Note that all the i-items are large except at most one. If the remaining one is not semilarge, then each of the remaining N i 1 i-items should be greater than 3 4. Then by Corollary.1 and C 7, we have C > 3 4 (N i 1) + 3 N II = 3 4 (N i 1) + 3 (C FF N i ) > 3 C FF 3 4 3 C FF 3 8 C, which leads to C FF < 93 56 C < 17 10 C. Claim 4.3. If C FF 17 10 C, then there are at most 3C N i + 1 semilarge II-items. Proof. Consider the packing of semilarge II-items in the optimal packing. Each of the N i 1 bins containing a large i-item can accommodate at most one semilarge II-item. The bin containing the remaining i-item, which is semilarge by Claim 4., can accommodate at most two more semilarge II-items. Each of the remaining C N i bins can accommodate at most three semilarge II-items. Consequently, there are at most (N i 1) + + 3(C N i ) = 3C N i + 1 semilarge II-items. By Claims 4.1 and 4.3, we have (9C FF 1C 3N i ) 3C N i + 1, i.e. 4N i 18C FF 7C 1. The lemma is thus proved. Lemma 4.3. If N i = C, then C N ii.

B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 1673 Proof. Suppose C < N ii. According to the pigeonhole principle, there exists a bin B B in which two ii-items b 1 and b are packed. Since any two i-items cannot be packed in one bin in the optimal packing and N i = C, there exists an i-item in B, say a. Since b 1 + b + a 1, b 1 and b are packed in different bins by FF. Otherwise, FF will pack a, b 1 and b together, contradicting the definition of an i-item. Let the two bins containing b 1, b in B FF be B 1, B respectively, and B be after B 1 without loss of generality. Since b 1 is a ii-item, there exists another item in B 1, say b 1. Since b is packed in a bin after B 1, we have (10) b 1 + b 1 + b > 1. (11) It follows that b 1 is not in B. Let a be the i-item which is packed in the same bin with b 1 in B ; then b 1 + a 1. (1) Since a and a are both i-items, a + a > 1. (13) Therefore, by (1), (13) and (10), b 1 + b + b 1 b 1 + b + (1 a ) < b 1 + b + a 1, which contradicts (11). Lemma 4.4. If N i = C and C FF > 1 C, then 7 { 1 C C FF max + 53 9 C 19 C }, + C + 3. Proof. Given C 10, we get C FF 7 4 C 1 1 7 C by (7) and direct calculation. Hence we can assume C 11. Moreover, given C FF C + 7, we get C FF C + 7 1 7 C by C 11. Then we can assume C FF C + 8 as well. If N ii, there are at least C FF N i N ii C FF C 4 III-bins. By Corollary.1, we have C > 3 4 (C FF C ) + 1 (C + ) = 3 4 C FF 1 4 C 1, i.e. 3C FF < 5C +. Hence 3C FF 5C + 1 and thus C FF 5 3 C + 1 3 1 7 C. Therefore, we only need to consider the case when N ii 3. If N ii C FF C 4, then by Corollary.1 and N i = C, we have C > 1 N i + 3 N ii + 3 4 (C FF N i N ii ) = 1 C + 3 N ii + 3 4 (C FF C N ii ) = 3 4 C FF 1 4 C 1 1 N ii, i.e. 9C FF < N ii + 15C. Hence 9C FF N ii + 15C 1. Applying Lemma 4.3, we obtain C FF 1 C + 5 C 1. If 9 3 9 N ii C FF C 3, then C FF C + C + 3 by Lemma 4.3. Combining this with the two inequalities, the lemma is thus proved. Lemma 4.5. There is not such a list that (i) C = 11 and C FF = 19, (ii) C = 3 and C FF = 55, (iii) C = 39 and C FF = 67. Proof. (i) Suppose there exists such a list. By Lemma 4., we have 4N i 18C FF 7C 1 = 44 = 4C. Therefore, N i = C by Lemma.1 and thus N ii 5 by Lemma 4.3. According to (8), N II > 9C FF 1C 3N i = 6 N ii + 1. It follows that there is at least one III-bin in the last six II-bins. Hence, there are at least (6 1)+3 1 = 13 II-items in the last six II-bins, and these items are all semilarge by Claim 4.1. On the other hand, Claim 4.3 implies that there are at most 3C N i + 1 = 1 semilarge II-items, which is a contradiction. (ii) Suppose there exists such a list. By Lemma 4., we have 4N i 18C FF 7C 1 = 15. Therefore, by Lemma.1, N i = C = 3 and thus N II = C FF N i = 3. Label all the II-bins as B 1, B,..., B 3, so that B i is before B j for any 1 i < j 3. The last 9C FF 1C 3N i = 15 II-bins contain only semilarge II-items by Claim 4.1, but the number of semilarge II-items is no greater than 3C N i + 1 = 33 by Claim 4.3. Then there are at most 33 15 = 3 semilarge items packed in the first 3 15 = 8 II-bins. It follows that at least 8 3 = 7 of the first eight II-bins contain not only semilarge items, and at least 8 3 = 5 bins do not contain semilarge items. Let B i1, B i,..., B is be all the bins containing

1674 B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 not only semilarge items, where i 1 < i < < i t with t = 7 or 8. Choose five bins each of which does not contain any semilarge item, say B j1, B j,..., B j5, and j 1 < j < < j 5. It is obvious that J = {j 1, j,..., j 5 } {i 1, i,..., i s } = I. If j 5 < i t, then B jk > 3 for 1 k 5 as B 4 i t has items not greater than 1 in it. For 1 k 5, since B 4 j k does not contain any semilarge item, it must be a IV-bin. Accordingly, by Corollary.1, 3 = C > 5 B jk + 3 (N II 5) + 1 N i > 4 5 5 + 3 18 + 1 3 = 3, k=1 which is a contradiction. Hence j 5 = i t. Similarly to before, the B jk, 1 k 4, which do not contain any semilarge item, must be IV-bins since B j5 has items not greater than 1 4 in it. In the light of t 7, there exist s 1, s I \ J. B s1, B s are before B j5 since j 5 = i t. If B j5 is a III-bin, then by () B s1 + B s + 5 B jk = 1 3 (3B s 1 + B j5 ) + 1 3 (3B s + B j5 ) + 1 4 (4B j 1 + B j ) + 3 16 (4B j + B j3 ) k=1 but that will lead us to 3 = C > B s1 + B s + + 13 80 (4B j 3 + B j4 ) + 13 40 (3B j 3 + B j5 ) + 67 40 (3B j 4 + B j5 ) > 1 3 3 + 1 3 3 + 1 4 4 + 3 16 4 + 13 80 4 + 13 40 3 + 67 40 3 = 7 5, 5 B jk + 3 (N II 7) + 1 N i > 7 k=1 5 + 3 16 + 1 3 > 481 15, which is a contradiction. Therefore B j5 must be a ii-bin, so its content is less than 1 since it does not contain any semilarge items. It follows that items in a II-bin after B j5 are all large, which causes its content to be greater than 1. (iii) Suppose there exists such a list. By Lemma 4., we have 4N i 18C FF 7C 1 = 15 = 4C 4. We distinguish two cases according to the value of N i. Case 1. N i = C = 39. By Claims 4.1 and 4.3, the last 9C FF 1C 3N i = 18 II-bins contain only semilarge items, while the number of semilarge II-items cannot exceed 3C N i +1 = 40. Moreover, N II = C FF N i = 8. Then there are at most 40 18 = 4 semilarge items in the first 8 18 = 10 II-bins. Therefore, at least 10 4 = 6 of the first ten II-bins do not contain any semilarge items. Among these bins, the content of each of the first five bins is at least 3, and they must be IV-bins as a consequence. 4 On the other hand, by Lemma 4.3, N ii 19 and thus N III 9. Therefore, by Corollary.1, 39 = C > 4 5 5 + 3 4 (N III 5) + 3 N ii + 1 N i 4 5 5 + 3 4 4 + 3 19 + 1 39 = 35 6, which is a contradiction. Case. N i = C 1 = 38. By Claim 4.1, there are at least 9C FF 1C 3N i = 1 II-bins, and thus at least 4 semilarge II-items. If all the 38 i-items are large, then each bin in B containing an i-item can contain at most one semilarge II-item in the optimal packing. However, the remaining 4 N i = 4 semilarge II-items cannot be packed in the remaining C N i = 1 bin. Hence there exists an i-item which is not large, but it is still semilarge by Claim 4.. Moreover, there aren t any large II-items. Otherwise, there are at least 37 large i-items and one large II-item. Each of them can be packed with at most one semilarge II-item in the optimal packing. However, the remaining 4 (37 + 1) 1 = 3 semilarge II-items and one semilarge i-item cannot be packed in the remaining C (37 + 1) = 1 bin, which is a contradiction. Therefore, we have l N i 1 = C. Thus by Lemmas 3.1 and 3., we have 66 = C FF 1 < W 17 10 (C ) + 3 = 659 10, which is a contradiction. In order to get Theorem 4.1, we also need the following lemma concerning the diophantine equation. Lemma 4.6 ([8] Diophantine Equation). If a and b are coprime, u is an integer. The linear diophantine equation ax + by = u has infinitely many solutions. If the pair (x 0, y 0 ) is one integral solution, then all others are of the form x = x 0 + bv, where v is an integer. y = y 0 av, Theorem 4.1. For every list L, C FF (L) 1 7 C (L).

B. Xia, Z. Tan / Discrete Applied Mathematics 158 (010) 1668 1675 1675 Proof. If C FF 17 C or C 10, the result clearly follows by the previous discussion. We assume C FF > 17 C and C 11 10 10 in the following. Let 31C 18C FF = u (14) be a diophantine equation relating to C and C FF, where u is an integer and u = 31C 18C FF 7C + 4N i 18C FF 1 (15) by Lemmas.1 and 4.. Since (7u, 1u) is a solution of (14), any integral solution of (14) can be written as { C = 7u + 18v, C FF = 1u + 31v, (16) by Lemma 4.6, where v is an integer. Taking the expressions for C and C FF in Theorem 3.1, this requires u + 4v 7. When u 4 we get v 0 from (17), so by (16) C FF C 1u + 31v = 7u + 18v = 31 18 1 18(7 + 18v ) 31 18 1 18 7 = 1 7. u When u 3, due to (15) and (17), the possible pairs (u, v) are ( 1, 1), ( 1, ), (0, 1), (1, 0), (1, 1), (, 0), (, 1), (3, 0), (3, 1), and the corresponding pairs (C, C FF ) are (11, 19), (9, 50), (18, 31), (7, 1), (5, 43), (14, 4), (3, 55), (1, 36), (39, 67). Lemma 4.5 excludes the possibility of (11, 19), (3, 55), (39, 67). For the pairs of (9, 50), (18, 31), (5, 43), we have 4N i 18C FF 7C 1 4C 3, by Lemma 4. and direct calculation. So N i = C, and thus Lemma 4.4 implies that such a list will not exist. The remaining pairs all fulfill C FF = 1 C. Then we complete the proof of Theorem 4.1. 7 Since there exists such a list that C = 10 and C FF = 17 [7], Theorem 4.1 shows that the gap between the lower and upper bounds of the absolute performance ratio of FF is less than 0.0143. We conjecture that the absolute performance ratio of FF is exactly 17, which implies that the absolute performance ratio and asymptotic performance ratio of FF are identical. 10 This is not common among bin-packing algorithms. To settle the conjecture, the first step is to determine whether there exists such a list that C = 7 and C FF = 1, or not. Acknowledgements We are grateful to two anonymous referees for their constructive suggestions regarding an earlier version of our paper. The second author s work was supported by the National Natural Science Foundation of China (10971191, 600101) and Zhejiang Provincial Natural Science Foundation of China (Y607079). (17) References [1] B.S. Baker, A new proof for the first-fit decreasing bin-packing algorithm, Journal of Algorithms 6 (1985) 49 70. [] E.G. Coffman, M.R. Garey, D.S. Johnson, Approximation algorithm for bin packing: a survey, in: D. Hochbaum (Ed.), Approximation Algorithms for NP-Hard Problems, PWS Publishing, 1997, pp. 46 93. [3] G. Dósa, The tight bound of first fit decreasing bin-packing algorithm is FFD(L) 11 OPT(L)+ 6, Lecture Notes in Computer Science 4614 (007) 1 11. 9 9 [4] M.R. Garey, R.L. Graham, D.S. Johnson, A.C.C. Yao, Resource constrained scheduling as generalized bin packing, Journal of Combinatorial Theory, Series A 1 (1976) 57 98. [5] M.R. Garey, D.S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, Freeman, San Francisco, 1978. [6] D.S. Johnson, Near-optimal bin packing algorithms, Doctoral Thesis, MIT, Cambridge, MA, 1973. [7] D.S. Johnson, A. Demers, J.D. Ullman, M.R. Garey, R.L. Graham, Worst-case performance bounds for simple one-dimensional packing algorithms, SIAM Journal on Computing 3 (1974) 99 35. [8] I. Niven, H.S. Zuckerman, H.L. Montgomery, An Introduction to the Theory of Numbers, 5th ed., John Wiley & Sons, 1991. [9] D. Simchi-Levi, New worst-case results for the bin-packing problem, Naval Research Logistics 41 (1994) 579 585. [10] J.D. Ullman, The performance of a memory allocation algorithm, Technical Report 100, Princeton University, Princeton, NJ, 1971. [11] M. Yue, A simple proof of the inequality FFD(L) 11 OPT(L) + 1 L, for the FFD bin-packing algorithm, Acta Mathematicae Applicatae Sinica 7 (1991) 9 31 331.