NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or

Size: px
Start display at page:

Download "NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or"

Transcription

1 NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or other reproductions of copyrighted material. Any copying of this document without permission of its author may be prohibited by law.

2 When are Best Fit and First Fit Optimal? C. C. McGeoch & J. D. Tygar October 1987 CMU-CS The first author was supported in part by a National Science Foundation Graduate Fellowship, Grant SPE , and in part by the Office of Naval Research under Contract N K-0512 at Carnegie Mellon University. The second author was supported by the Defense Advanced Research Projects Agency (DOD), ARPA Order No. 4864, monitored by the Air Force Avionics Laboratory under Contract N C The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Defense Advanced Research Projects Agency or the US Government.

3 When are Best Fit and First Fit Optimal? C. C. McGeoch* J. D. Tygar f October 27, Abstract We examine on-line heuristics for one-dimensional bin-packing when n weights are chosen uniformly over the interval (, w), 0 < I < u < 1. Bentley et al. [2] have shown that the First Fit heuristic is asymptotically optimal for weights chosen uniformly from the real interval (0,1). Shor [13] has given a similar result for the Best Fit heuristic. We show that expected empty space in First Fit packings of weights drawn uniformly from the real interval (0,.85) is Q(ri). This implies that First Fit is not optimal in the expected case for this input distribution. The analysis extends to show First Fit is also not optimal when u lies in some neighborhood around.85. * Current phone: (413) Current address: Department of Mathematics and Computer Science, Amherst College, Amherst, MA 01002, ccmcgeoch@amherst.bitnet. This, research was sponsored in part by a National Science Foundation Graduate Fellowship, Grant SPE , and in part by the Office of Naval Research under Contract N K-0512 at Carnegie Mellon University. f Current phone: (412) Current address: Department of Computer Science, Carnegie Mellon University, Pittsburgh, PA 15213, tygar@cs.cmu.edu. This research was sponsored by the Defense Advanced Research Projects Agency (DOD), ARPA Order No. 4864, monitored by the Air Force Avionics Laboratory under Contract N C The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Defense Advanced Research Projects Agency or the US Government. 1

4 We also show that expected empty space is Q(ri) for any t. 15 when u =.85. This implies that First Fit is not optimal for an infinite set of I values. We extend these bounds to hold for the Best Fit heuristic over the same input distributions. Finally, we present experimental results characterizing First Fit for weight lists of the form (0, u) for other upper bounds u. 2 Introduction The one-dimensional bin packing problem is to pack a list of n items with weights from [0,1] into a minimum number of unit-capacity bins. This problem is known to be NP-hard (see [5]), and many heuristic algorithms have been proposed. The well-known First Fit heuristic inspects the bins sequentially and places each item into the first (oldest) bin that can contain it. The items cannot be reordered that is, they must be packed in the order in which they are presented as input. First Fit can be implemented to run in 0(n log A) time by imposing a heap data structure over the bins. The Best Fit heuristic places items into bins, such that the i th item of weight w; is placed into the bin which has the greatest total weight less than than 1 - w;. A standard expected-case model assumes that input to a packing heuristic is a list of weights <u,«=< wi, W2,..., w n > drawn independendy and uniformly from the interval (, w), for 0 < I < u < 1. We view Li^n as a random variable with parameters l % u, and n, and are interested in the expected values of functions on this random variable. Let BpF^i^n) be the expected number of bins required to pack such a list by the First Fit heuristic. The expected number of bins required in the optimal packing of the list is 2

5 denoted by BopiiLi^n)- The bin ratio is the asymptotic ratio lim^co sup Bpp(Li^n)lBopT(Le,u,n)- The bin ratio is always greater than or equal to 1; informally, smaller bin ratios correspond to better heuristics. The empty space in a First Fit packing the total amount of space left at the top of partially-filled bins is denoted by ESFF(Li,u,n) and equal to BpFi^e^n) - H?=i WJ. A bin-packing heuristic produces optimal behavior in an expected-case model when the bin ratio approaches 1. It sufficient to prove that expected empty space is o(ri), since the optimal packing must use Q(ri) bins (because it must contain the entire list, which has expected total weight (a )n/2). Bentley et al. [2] have shown that when = 0 and u = 1, expected empty space is 0(n 4 / 5 ), which implies that First Fit is asymptotically optimal. Their result can be extended to any distribution symmetric around.5. Shor [13] improved the bound on empty space for = 0 and u = 1 to <9((nlogn) 2//3 ) and f2(n 2^3). His result can be extended easily to any uniform distribution such that = 1 - u and u > 2/3. He also showed that empty space for Best Fit has bounds of 0(n 1^2 log n) and J?(n 1//2 (logrt) 3 / 4 ). Karmarkar [8] has shown that when = 0 any u admits a perfect packing, that is, for the optimal packing rule OPT, we have limn^ooibopr(^o,u y n)/ E?=i w d -> 1- Lueker [10] showed that perfect packings occur for uniform distributions on (, u) whenever the interval (, u) can be partitioned into units each symmetric around for a collection of integers k > 1. For example, the interval (.15,.75) admits a perfect packing because it can be partitioned into (.15,.25) and (.25,.75), which are symmetric around 1/5 and 1/2, respectively. He also showed that perfect packings cannot occur for certain other values of and u. To demonstrate non-optimality of a bin packing heuristic when a perfect packing is admitted i.e., 3

6 that the bin ratio approaches some constant strictly greater than 1 it suffices to show that expected empty space for the heuristic is fi(n). The results by Bentley et al. [2] and Shor [13] are the only expected-case analyses of First Fit and Best Fit to date. Others have considered worst-case performance. Johnson [6] derived a tight worst-case upper bound of 1.7 on the bin ratio for the two online heuristics. (An online heuristic must pack each item as it arrives, with no reordering.) Brown [3] has shown that there must exist lists such that any online heuristic (including First Fit and Best Fit) gives a packing ratio of at least For an extensive survey of bin packing heuristics, see Coffman, Garey and Johnson [4]. A few experimental studies have appeared that examine packing performance at I = 0 and other values of u. Johnson [6] studied many heuristics and estimated the bin ratio for values of n up to 200 and for u =.25,.5, and 1. Ong, Magazine, and Wee [12] estimated the bin ratio for four heuristics using values of n up to The conjecture that First Fit and Best Fit are asymptotically optimal when i = 0 and u = 1 was first made as a result of an experimental study of four bin packing heuristics reported by Bentley et al. [1]; this conjecture was subsequently proved in Bentley et al. [2]. It was also conjectured that there exist values of u near.84 for which the heuristics leave at least linear empty space and therefore is not asymptotically optimal. Several observations and conjectures relating to bin packing are reported by Bentley et al. [1] and McGeoch [11]; the experiments described there have been extended and new results are presented in Section 4 of this paper. 4

7 We show in the following section that S/r/r(L^85,/r) = &(n) whenever f.15. In particular, this implies that First Fit is not optimal in the expected case when I = 0 and u =.85, although the heuristic is optimal when I = 0 and u = 1. Put another way, First Fit packings of weights from (0,.85) leave much more empty space per bin than packings of weights from (0,1). We extend this proof for First Fit to show that Best Fit also fails to be asymptotically optimal on the distribution (0,.85) 3 Lower Bounds for u =.85 We first analyze the expected amount of empty space in First Fit packings of n weights drawn uniformly from (0,.85). We later show how this can be extended to Best Fit. We begin by defining some terms and giving an informal sketch of the proof. A bin containing k items is called a k-bin. The gap in a bin is the capacity remaining in the bin; empty space is simply the sum of gaps in all bins. The total weight of a bin is the sum of the weights in that bin, so the total weight of a bin plus its gap equals 1. The candidate sequence in a First Fit packing is defined as follows. The first bin of the complete sequence of bins is in the candidate sequence. Let the i + I st bin of the candidate sequence be the first (oldest) bin in the complete sequence of bins satisfying the following. 1. Its total weight is less than that of the i th bin of the candidate sequence. 2. It occurs later in the complete bin sequence than the i th bin of the candidate sequence. The bins in the candidate sequence are the only bins which can accept new items under the First Fit 5

8 Bin Capacity 3-bin * * * 1-bin * * Figure 1: First Fit packing of 50 weights from (0,.85). Candidate bins are marked with stars. heuristic, for if an item is small enough to fit in a non-candidate bin, it will be trapped in an earlier candidate bin. Figure 1 shows a First Fit packing of fifty weights drawn from (0,.85). The candidate bins in this packing are marked with stars. A 1-bin and a 3-bin are also marked. Note that the bins in the candidate sequence form a "filter" on new items arriving in the input list. If two bins adjacent in the candidate sequence have a difference of e in their gaps and a new weight is placed in the second bin, then the resulting gap in the second bin must be at most e. If the candidate sequence is long and smooth, newly-arriving weights will tend to be packed tightly. Our analysis formalizes the intuition that 2-bins tend to have smaller gaps than 1-bins. Therefore 2- bins in the candidate sequence tend to occur before 1-bins in the candidate sequence. We show, essentially, that a discontinuity appears consistently between 2-bins and 1-bins and that the candidate sequence is not smooth here. Because the 1-bins do not benefit from a smooth candidate sequence, they tend to be matched with unsuitable new weights at a rate high enough to leave linear empty space in the packing. Let a equal the total weight of the bin in the candidate sequence having largest gap less than.15. 6

9 Equivalently, a is the smallest value greater than.85 such that there is a bin in the candidate region with total weight a. We will analyze the rate at which 1-bins pair with new weights to form 2-bins, for arbitrary a. Note that the rate at which candidate bins of total weight a are formed is bounded above by the rate at which all bins with total weight a are formed. Furthermore, by the nature of First Fit packings, if there exists a bin with enough capacity to hold an incoming item, then there must exist a bin in the candidate sequence (perhaps the same bin) with enough capacity to hold the item. Every bin that is paired will eventually show up in the candidate sequence with probability 1. To analyze the formation rate of candidate bins, therefore, we need only consider the formation rate for all bins. Theorem 3.2 shows that there exists a balance point ao, strictly less than 1 and strictly greater than.85, such that: (1) candidate bins having total weight less ao are created at a slower rate than items arrive in the input list to match with them; and (2) candidate bins having total weight greater than the balance point are created faster than new items arrive to match with them. Property 1 means that candidate bins with total weight in the range (.85, ao) appear rarely, so the filter tends to have a discontinuity of size at least a , causing 1-bins to be packed badly. Property 2 means that there aren't enough small items available to "fix" the badly-packed bins. As a consequence of Theorem 3.2, there must exist a 3 e (ao, 1) such that bins with gap at least 1-/3 are formed more quickly than they are removed. Therefore a constant proportion of bins have at least constant gap at any time during the packing. This immediately give the linear lower bound on empty space, stated formally in Theorem

10 In order to analyze formation rates for 2-bins we define a function D a (x,y)> with domain.5 < x <.85, for 1 - a < y <.5, and for.65 < x + y < 1. If 1-bins in the candidate sequence were generated with uniform distribution and form an arbitrarily fine filter, then this function would give the rate at which a small weight y of size in the range (1 - a,.5) is paired with a 1-bin having total weight x at least.5 (and, necessarily, at most.85). In fact, First Fit does not generate an arbitrarily fine filter. However, a coarse filter can only increase the amount of expected empty space. (We will return to this point below). Thus this analysis will give a lower bound on the total amount of empty space. We remark that although D a {x,y) does not capture all possible pairing situations for example, it does not consider 1-bins with total weight less than.5 it is sufficient to give the desired bounds, as we show below. Let P Q (z) represent the rate at which bins of total weight z are formed by pairing: that is P a (z) = f x D a (x, z - x) dx, for x and y = z - x in the ranges defined above for A*(*)- Figure 2 presents a diagram of the domain over which D ot (x,y) and P a (z) are defined. D a (x,y) is defined for each coordinate pair (x,y) inside the region. P a (z) corresponds to a diagonal line such that z = x + y. The subregions drawn in the interior of the diagram will be used in the proof of Theorem 2.2. Let 0(z) be the rate at which bins with total weight less than z form by all methods (not just pairing). Let <f>(z) = do(z)/dz be the instantaneous rate at which bins of size z are formed. Let r be the rate at which items arrive in the input list of size z; for a uniform distribution on weights, this is a constant. Finally, for notational convenience, let w denote the difference a

11 y a.5.85 x Figure 2: Pairing Functions We first state the following useful lemma. Lemma 3.1 For (x,y) having ranges defined above, D a (x,y) = Cye*!*'. Proof: It is easy to see that the rate of change of D a (x,y) with respect to x is an exponential function depending upon w = a -.85, the size of the discontinuity in the filter. That is, dd Q (x,y) _ D a (x,y) dx w Solution of this partial differential equation gives the desired result. The coefficient c y depends upon the value of y. The following theorem shows the existence of the balance point a 0. 9

12 Theorem 3.2 There exists an ao e (.85,1) such that, 4>(z)< r VzG [.85,a 0 ),and 4>(z) > r VzE [a 0,1]. (1) Proof: We first show that the there exists an a p such that the above inequalities hold when P ap (z)> the rate bins are formed by pairing, is substituted for <f>(a) t the rate bins are formed by all methods. We then show that ao must exist for the latter case. By Lemma 2.1, we have D a (x,y) = Cye*/ W. We must find appropriate values for c y and then derive Pa(z). First consider the case y (1 - a,.15]. It is easy to see that D a (.85,y) = r/w. Because by the definition of a there are no candidate bins of size in the range (.85, a) weights of size y (1 - a,. 15] are paired with 1-bins of size.85 at the total pairing rate for these bins divided by the size of the discontinuity. Also, c y must be a constant for y in this range since the weights arrive according to a uniform distribution and none are filtered in the candidate sequence. Combining these facts with Lemma 2.1, we have for ye (l-a,.15], C y e ^ = or w 7 W Now consider the case y G (.15,.5]. Here we have D a (l - y,y) = r/w. That is, weights that perfectly 10

13 match with existing 1-bins arrive at a uniform rate and are not filtered in earlier 1-bins, but they must compete with smaller weights not caught by earlier 1-bins to a degree determined by w. We also know that D a (x,y) = D a (x + y-.15,. 15) fory >.15. Combining this with Lemma 2.1 gives 7 w Therefore, for the defined domain over x and y we have ye (1- a,. 15] ye (.15,.5] We must now find the rate P a (z) at which bins of total weight z = x + y are formed by pairing. We first consider the small triangular region at the bottom right comer of Figure 2, defined by y e (1 - a,.15] and z E [.85 + (1 - a), 1]. For this area the pairing rate is which gives The small strip at the bottom of Figure 2 is defined by y 6 (1 - a,.15] and z [.65,.85 + (1 - a)). For this area, we have or 11

14 Finally, for y (.15,.5], the large triangular region of of Figure 2, the pairing rate for any z E [.65,1] is given by w Consolidating these formulas and substituting a -.85 back for w, we have the rate at which 2-bins of total weight z e [.65,.85 + (1 - a)] are formed by pairing is /> Q (z) = re ( z - 1 ) /^- 8 5 > >/2(z-.65) a e- 1 and the rate for z e (.85 + (1 - a), 1] is V2(z-.65) n_ z V ( a _. 8 5, a-.85 The variable r corresponds to the rate at which 1-bins of total weight.85 are paired. Clearly the pairing rate for these bins is equivalent to the instantaneous rate at which items of size.85 arrive in the input list: the pairing cannot be greater than the arrival rate, and there are more items available to pair with 1-bins of total weight.85 than there are items of this size, so they are all paired. Let z a be the value of z for which P a (z) = r. Inspection of P a (z) reveals that such a z a exists for any a G (.85,.948) (for a >.948, P a (z) > r,vz). Furthermore, z a decreases as a increases, so there must exist an otp e (.85,.948) such that P Qp (a p ) = r. We observe that a p %.8966: if First Fit were modified so that only 2-bins with total weight at least.85 and 1-bins with total weight at least.5 appeared in the candidate sequence, then 2-bins with total weight in the range (.85,.8966] would form more slowly than new items are available to match with them, and 2-bins with weight in the range (.8966,1] would form more quickly than small items arrive to match with them. 12

15 Now let 4> Q (z) replace P a (z). This function represents the formation rate from all methods, including pairing. We must show that an ao corresponding to a p exists that is strictly in the range (.85,1). Note that a p > ao, since Vz, a(<p Q (z) > P(z)), so we need only show that ao >.85. First, our analysis does not consider 1-bins with total weight below.5. There can be at most one bin in a First Fit packing with total weight less than.5, and it must be the last bin in the candidate sequence; therefore the small 1-bins by themselves cannot affect pairings in the candidate sequence. However we must consider 2-bins formed later from pairing these small 1-bins (we call these illegitimate 2-bins) and their effect on the pairing rate. An illegitimate 2-bin of size >.85 could fall into the range (.85, a), increasing the formation rate of these bins and possibly lowering the balance point. Inspection of the arrival rates reveals that a balance point greater than.85 must still exist, since illegitimate 2-bins of this size form very rarely. Illegitimate 2-bins of size <.85 can also form. In addition, legitimate 2-bins of sizes <.85 can also form outside of the range of the D function when, for example, a.12 weight pairs with a.5 weight. Inclusion of these bins in the candidate sequence have the effect of changing a uniform distribution (composed of 1-bins) to a "top-heavy" distribution. This can only increase the total amount of expected empty space. We must also show that a approaches ao with probability 1 as n + oc. The proof of this is a straightforward application of classical renewal theory (see [7]). Intuitively, when a < ao, future values of a are more likely than not to be higher than the current value of a, since in this case z a > ao. Similarly, when a > ao we have z a < ao, so new bins with total weight slightly less than ao tend to be 13

16 created, pushing the next a down towards ao. Theorem 3.3 Empty space in a First Fit packing of weights drawn uniformly from (0,.85) is Q(ri), with probability approaching 1 as n oo. Proof: Select a /3 between ao and 1. This is always possible because ao is strictly less than 1. Bins with total weight in the range (ao, /?) are formed more quickly than they are removed. Therefore a constant proportion of these bins are present in the packing at any time. These bins have at least constant gap. There must be at least a linear number of bins in the packing, because even the optimal packing must leave at least a linear number of bins. Since a constant proportion of these bins have at least constant gap, there must be at least a linear amount of empty space in the packing. We observe that a coarse filter increases the expected empty space in 2-bins. Inspection of Theorem 2.2 demonstrates that with a coarse filter bins what fall in the range (a,/?), where (3 6 (a, 1), must be created more quickly than they would be with an arbitrarily fine filter and hence more quickly than they can be filled, so the theorem continues to hold. Suppose now that the lower bound on the distribution of weights is nonzero. Our analysis allows characterization of empty space in First Fit packing of weights drawn uniformly from (I,.85). Theorem 3.4 Empty space in First Fit packings of weights drawn uniformly from (I,.85) is ft(ri) whenever I.15, with probability approaching 1 as n-+ oo, Proof: Suppose 0 < < (1 - a 0 ) for the balance point a 0 described above. Then even fewer small 14

17 items arrive in the input list to fix badly-packed bins (with total weight in (ao,/?)). The linear lower bound certainly continues to hold. Suppose (1 ao) < <.15. In this case, items larger than but smaller than 1 - ao will not be matched with 1-bins. This imposes an artificial upper bound on the weights arriving to match with 1-bins, identical in effect to imposing the restriction a < 1 < ao on the filter. But a z a strictly less than 1 must exist for any a < ao, and so the desired /3 must exist. Therefore the linear lower bound still holds. Suppose >.15. Then First Fit as well as the optimal algorithm must leave Q(n) empty space. Two weights larger than 1/2 cannot share a bin, so every weight larger than 1/2 must have its own bin. If the number of weights larger than 1/2 is greater than the number of weights smaller than 1/2, then a constant proportion of the large weights cannot be paired with small weights. A linear lower bound on empty space is immediate. Analysis of Best Fit requires only the observation that the entire set of bins forms the filter rather than the candidate sequence of bins. Hence we immediately have this theorem: Theorem 3.5 Empty space in Best Fit packings of weights drawn uniformly from (,.85) is Q(n) whenever.15, with probability approaching 1 as n 6o, When are First Fit and Best Fit optimal for weights drawn from {,.85)? If the heuristics as well as the optimal algorithm leaves o(n) empty space, then they are asymptotically optimal. This is the case for weights drawn from (.15,.85). The heuristics are not optimal when it leaves Q(n) empty space and the optimal algorithm allows 15

18 a perfect packing. Lueker [10] characterized the values of {, u) for which perfect packings occur. When u =.85, the values giving sublinear empty space are those such that the distribution of weights can be broken into intervals each symmetric around l/k for appropriate integers k. For example, = 1/6 - (.15-1/6) «.1357 allows a perfect packing because the distribution can be broken into intervals (.15,.85) and (.1357,.15), which are symmetric around 1/2 and 1/6, respectively. When the heuristics as well as the optimal algorithm leave linear space, the question of heuristic optimality depends upon the constants implicit in the fi(ri). Further analysis is needed here. An even more interesting question, of course, is what happens when we vary u? Our derivation of P a (z) can be easily extended to any u near.85, but we require a deeper understanding of secondary effects in order to extend our analysis beyond a small region of u values near.85. The next section considers this question further, for First Fit. 4 Experimental Results A long-standing open problem has been to characterize First Fit for = 0 and any u. In particular, for what values is expected empty space Q(n) and for what values is it o(n)? Certainly the analysis of the previous section could be modified to hold for u in a small range near.85, but our technique is not exact enough for a precise characterization of the u values giving non-optimal packings. This section presents experimental results describing First Fit packings for other values of u. The simulation program was implemented in C on a VAX/780 operating under Berkeley Unix 4.3 l. l VAX is a trademark of Digital Equipment Corporation. Unix is a trademark of AT&T Bell Laboratories. 16

19 h looo looo H Empty Space h H 600 Figure 3: These graphs depict empty space with respect to u for n = 128,000 and 20 trials at each sample point. Weights were represented by 32-bit integers, with representing the bin capacity. The weights were generated by Marsaglia's cyclic feedback method as described by Knuth [9] (Algorithm A, Section 3.2.2, Second Edition). In the experiments, n was set at 250,500, The simulation program could generate and pack weights in about 60 seconds; the experiments described here required about 10 hours of CPU time. The graphs in Figure 3 depict empty space as a function of u for values of u ranging from 0.2 to 1 and from 0.7 to 1.0. Twenty trials were taken at each u for n set at = 128,000. These and related results (see [1] and [11]) prompted the original conjecture that although empty space grows as o(n) when u = 1, empty space grows linearly for some values of u near.84. This conjecture was the starting point for our analysis and motivated our choice of.85 as an interesting upper bound on weight sizes. An obvious approach to characterizing the asymptotic behavior of First Fit for other values of u is to measure growth in n at fixed u. This approach is not entirely satisfying, however, because we cannot 17

20 measure asymptotic behavior experimentally. At u = 1, for example, standard model-fitting analyses of samples taken at n = 1000, suggest that a power law gives a good fit. Regression analysis using a power law suggests that empty space grows as n 0J2. While this observation may be sufficient for a conjecture of sublinear growth, the resulting formula is greater than Shor's [13] asymptotic bound of 0((nlogn) 2/3 ). Similar analysis at u =.8 suggest that the curve is growing faster than AI ; while this is evidence for asymptotic linearity, the result is not conclusive. At u =.2 empty space grows approximately as rp ns. Empty space appears to approach its asymptote very slowly at low u, so it is hazardous to extend these results to predict asymptotic behavior. A more useful approach is to study the structure of First Fit packings as u varies. The analysis of Section 2 rests on showing that the rate at which bad bins (with gap in the range (ao, /3)) are created is greater than the rate at which they are fixed. Bad bins form because there is a discontinuity in the candidate sequence of size approaching ao As a general rule, the discontinuity appears between 2-bins and 1-bins: 1-bins cannot have total weight greater than.85, and most 2-bins tend to have total weight greater than ao. Instead of forming a smooth "filter" for new weights and promoting tight pairings of items with 1-bins, the discontinuity in candidate sequence allows bad pairings to occur. Conjecture: Two properties must hold in order to produce non-optimal First Fit packings: (1) a discontinuity appears with regularity in the candidate sequence, allowing bad bins to form; and (2) bad bins form rapidly enough that there aren't enough small items arriving to fix them. Recall that Bentley et al. [2] have shown that First Fit is optimal in the expected case when the weights 18

21 Number ~ of Bins (log scale) l H Gap Range Figure 4: Distribution of gaps in 2-bins for 6 values of u ranging from.75 to 1. The y-axis is on a logarithmic scale. are drawn from (0,1]. It is easy to see that property (1) cannot hold for this input model. That is, there can be no discontinuity in the candidate sequence because the fullest 1-bin can have total weight 1, which is certainly as much as the emptiest 2-bin. Since the candidate sequence has no consistent discontinuities, the pairings are tight and the packing is optimal. Is there a consistent discontinuity between 1-bins and 2-bins for u near 1? Figure 4 depicts the distribution of gaps in 2-bins for u =.75,.8, Each curve represents 1 trial at n = and the specified u value. For each gap range [g, g -.01) for g =.01 15, a curve shows the number of 2-bins having gap in that range. Note that the y-axis is on a logarithmic scale. The three curves corresponding to u = 1,.95,.9 extend to the right of 1 - u (the fullest possible 1-bin). Therefore there is no apparent discontinuity between 2-bins and 1-bins for these sample points. On the other hand, the three starred 19

22 curves, corresponding to u =.85,.8,.75, fall short of 1 u, indicating a discontinuity in the candidate sequence. This shortfall in 2-bins is observed consistently over repeated trials at these sample points. Further (limited) simulations are unable to detect a gap in the candidate sequence when u is greater than.86. It is quite possible, even likely, that our simulations are not able to display asymptotic behavior and that First Fit is non-optimal for any u < 1. Conjecture: There exists some UQ 6 [.86,1] such that First Fit gives optimal packings for u > UQ and First Fit gives non-optimal packings for.85 < u < UQ. An interesting open problem is whether UQ is strictly less than 1. Analysis of the number of 1-bins appearing for u in this range might lead to bounds on UQ. Suppose, for example, that the number of 1-bins at any time in the packing is a slowly growing function of n (it must be o(n) or the proof of non-optimality would be immediate). The candidate sequence of 1-bins alone would grow unboundedly in n, producing a tight self-filter. This would promote very tight 2-bin pairings, tight enough so that a discontinuity in the packing sequence would appear. Therefore, by the first conjecture, the packing would be non-optimal. Suppose on the other hand that the number of 1-bins in the packing is constant with respect to n. In this case, the tight self-filter on 1-bins would not exist, and gaps in 2-bins overlap those in 1-bins. The discontinuity disappears, producing an optimal packing. Note that this argument will not hold for all u: at u=.85 the number of 1-bins is constant and the packing is not optimal. In this case, even though the 1-bins are not filtered well, the 2-bins remain packed tightly enough so that there is no overlap with 1-bins. Further experiments to study the growth of 1-bins with respect to n would be useful. 20

23 Fraction of Bins 0.8 H 4-bins 5-bins Q 0.4 H S V ' Ok / 3-bins 2-bins or' * / -0 / > x a 1-bins o.o H GT o i Figure 5: The fraction of k-bins in packings of weights with u between.4 and 1. Finally, consider the structure of First Fit packings for u <.85. Figure 5 shows the proportion of k-bins in the packings for k = 1,2...5 and for values of u between.4 and 1. Each curve represents the mean of 5 trials at n = The 1-bin curve is darkened so that it may be seen more easily. At u =.85 nearly 90% of the bins are 2-bins; this corresponds to our observation that 2-bins form more rapidly than small items arrive to fix them (forming 3-bins). As u decreases away from.85, however, the proportion of 2-bins decreases and gives way to 3- and 4-bins. At u = 2/3 there are certainly enough items to fix bad 2-bins, so property 2 of our main conjecture fails. The conjecture can be modified, however, to consider whether bad 3-bins are formed and whether there are enough small items to fix the bad 3-bins (forming 4-bins). Where previously we argued that the discontinuity between 2-bins and 1-bins causes items to pair badly with 1-bins, now we might argue that a discontinuity between 3-bins and 2-bins causes items to match badly with 2-bins. Limited experiments 21

24 and preliminary exploration suggest, however, that there is no such discontinuity between 3-bins and 2-bins when u < 2/3. Conjecture: First Fit packings are optimal when u < 2/3. References [1] J. L. Bentley, D. S. Johnson, F. T. Leighton, and C. C. McGeoch. An experimental study of bin packing. In Urbana 111 University of Illinois, editor, Proceedings, 21st Allerton Conference on Communication, Control and Computing, October [2] J. L. Bentley, D. S. Johnson, F. T. Leighton, C. C. McGeoch, and L. A. McGeoch. Some unexpected expected-behavior results for bin packing. In Proceedings, 16th Symposium on Theory of Computation, ACM, April [3] D. J. Brown. A lower bound for on-line one-dimensional bin packing algorithms. Report No. R-864, Coordinated Science Laboratory, University of Illinois, Urbana IL, [4] Jr. E. G. Coffman, M. R. Garey, and D. S. Johnson. Approximation Algorithms for Bin-Packing An Updated Survey. Technical Report, Bell Laboratories, Murray Hill, NJ 07974, [5] M. R. Garey and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP- Completeness. W. H. Freeman and Co., San Francisco, [6] D. S. Johnson. Near-Optimal Bin Packing Algorithms. PhD thesis, Department of Mathematics, Massachussetts Institute of Technology, June

25 [7] S. Karlin and H. Taylor. A First Course in Stochastic Processes, 2nd Ed.. Academic Press, New York, [8] N. Karmarkar. Probabilistic analysis of some bin-packing algorithms. In Proceedings, 23rd Symposium on Foundations of Computer Science, pages , IEEE, [9] D. E. Knuth. The Art of Computer Programming: Volume 2, Seminumerical Algorithms, 2nd Ed.. Addison-Wesley Publishing Company, Reading, MA, [10] G. S. Lueker. Bin packing with items uniformly distributed over intervals [a,b]. In Proceedings, 24th Symposium on Foundations of Computer Science, pages , IEEE Computer Society, November [11] C. C. McGeoch. Experimental Analysis of Algorithms. PhD thesis, Department of Computer Science, Carnegie-Mellon University, July [12] H. L. Ong, M. J. Magazine, and T. S. Wee. Probabilistic analysis of bin packing heuristics. Operations Research, 32(5): , [13] P. W. Shor. The average-case analysis of some on-line algorithms for bin packing. In Proceedings, 25th Symposium on Foundations of Computer Science, pages , IEEE, October

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

Perfect Packing Theorems and the Average-Case Behavior of Optimal and Online Bin Packing SIAM REVIEW Vol. 44, No. 1, pp. 95 108 c 2002 Society for Industrial and Applied Mathematics Perfect Packing Theorems and the Average-Case Behavior of Optimal and Online Bin Packing E. G. Coffman, Jr.

More information

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

CS264: Beyond Worst-Case Analysis Lecture #15: Smoothed Complexity and Pseudopolynomial-Time Algorithms CS264: Beyond Worst-Case Analysis Lecture #15: Smoothed Complexity and Pseudopolynomial-Time Algorithms Tim Roughgarden November 5, 2014 1 Preamble Previous lectures on smoothed analysis sought a better

More information

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

CS264: Beyond Worst-Case Analysis Lecture #18: Smoothed Complexity and Pseudopolynomial-Time Algorithms CS264: Beyond Worst-Case Analysis Lecture #18: Smoothed Complexity and Pseudopolynomial-Time Algorithms Tim Roughgarden March 9, 2017 1 Preamble Our first lecture on smoothed analysis sought a better theoretical

More information

Lecture 6: September 22

Lecture 6: September 22 CS294 Markov Chain Monte Carlo: Foundations & Applications Fall 2009 Lecture 6: September 22 Lecturer: Prof. Alistair Sinclair Scribes: Alistair Sinclair Disclaimer: These notes have not been subjected

More information

A new analysis of Best Fit bin packing

A new analysis of Best Fit bin packing A new analysis of Best Fit bin packing Jiří Sgall Computer Science Institute of Charles University, Prague, Czech Republic. sgall@iuuk.mff.cuni.cz Abstract. We give a simple proof and a generalization

More information

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.

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. 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. In the classical bin packing problem we x the size of the bins and try

More information

8 Knapsack Problem 8.1 (Knapsack)

8 Knapsack Problem 8.1 (Knapsack) 8 Knapsack In Chapter 1 we mentioned that some NP-hard optimization problems allow approximability to any required degree. In this chapter, we will formalize this notion and will show that the knapsack

More information

Online Coloring of Intervals with Bandwidth

Online Coloring of Intervals with Bandwidth Online Coloring of Intervals with Bandwidth Udo Adamy 1 and Thomas Erlebach 2, 1 Institute for Theoretical Computer Science, ETH Zürich, 8092 Zürich, Switzerland. adamy@inf.ethz.ch 2 Computer Engineering

More information

Unbounded hardware is equivalent to deterministic Turing machines

Unbounded hardware is equivalent to deterministic Turing machines Carnegie Mellon University Research Showcase @ CMU Computer Science Department School of Computer Science 1981 Unbounded hardware is equivalent to deterministic Turing machines Chazelle Carnegie Mellon

More information

Online Interval Coloring and Variants

Online Interval Coloring and Variants Online Interval Coloring and Variants Leah Epstein 1, and Meital Levy 1 Department of Mathematics, University of Haifa, 31905 Haifa, Israel. Email: lea@math.haifa.ac.il School of Computer Science, Tel-Aviv

More information

NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or

NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or other reproductions of copyrighted material. Any copying

More information

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

Discrete Applied Mathematics. Tighter bounds of the First Fit algorithm for the bin-packing problem 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

More information

Slope Fields: Graphing Solutions Without the Solutions

Slope Fields: Graphing Solutions Without the Solutions 8 Slope Fields: Graphing Solutions Without the Solutions Up to now, our efforts have been directed mainly towards finding formulas or equations describing solutions to given differential equations. Then,

More information

New Minimal Weight Representations for Left-to-Right Window Methods

New Minimal Weight Representations for Left-to-Right Window Methods New Minimal Weight Representations for Left-to-Right Window Methods James A. Muir 1 and Douglas R. Stinson 2 1 Department of Combinatorics and Optimization 2 School of Computer Science University of Waterloo

More information

Colored Bin Packing: Online Algorithms and Lower Bounds

Colored Bin Packing: Online Algorithms and Lower Bounds Noname manuscript No. (will be inserted by the editor) Colored Bin Packing: Online Algorithms and Lower Bounds Martin Böhm György Dósa Leah Epstein Jiří Sgall Pavel Veselý Received: date / Accepted: date

More information

COMP Analysis of Algorithms & Data Structures

COMP Analysis of Algorithms & Data Structures COMP 3170 - Analysis of Algorithms & Data Structures Shahin Kamali Computational Complexity CLRS 34.1-34.4 University of Manitoba COMP 3170 - Analysis of Algorithms & Data Structures 1 / 50 Polynomial

More information

Matchings in hypergraphs of large minimum degree

Matchings in hypergraphs of large minimum degree Matchings in hypergraphs of large minimum degree Daniela Kühn Deryk Osthus Abstract It is well known that every bipartite graph with vertex classes of size n whose minimum degree is at least n/2 contains

More information

A Robust APTAS for the Classical Bin Packing Problem

A Robust APTAS for the Classical Bin Packing Problem A Robust APTAS for the Classical Bin Packing Problem Leah Epstein 1 and Asaf Levin 2 1 Department of Mathematics, University of Haifa, 31905 Haifa, Israel. Email: lea@math.haifa.ac.il 2 Department of Statistics,

More information

Not all counting problems are efficiently approximable. We open with a simple example.

Not all counting problems are efficiently approximable. We open with a simple example. Chapter 7 Inapproximability Not all counting problems are efficiently approximable. We open with a simple example. Fact 7.1. Unless RP = NP there can be no FPRAS for the number of Hamilton cycles in a

More information

Stability Analysis and Synthesis for Scalar Linear Systems With a Quantized Feedback

Stability Analysis and Synthesis for Scalar Linear Systems With a Quantized Feedback IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL 48, NO 9, SEPTEMBER 2003 1569 Stability Analysis and Synthesis for Scalar Linear Systems With a Quantized Feedback Fabio Fagnani and Sandro Zampieri Abstract

More information

Introduction to Real Analysis Alternative Chapter 1

Introduction to Real Analysis Alternative Chapter 1 Christopher Heil Introduction to Real Analysis Alternative Chapter 1 A Primer on Norms and Banach Spaces Last Updated: March 10, 2018 c 2018 by Christopher Heil Chapter 1 A Primer on Norms and Banach Spaces

More information

Metric Spaces and Topology

Metric Spaces and Topology Chapter 2 Metric Spaces and Topology From an engineering perspective, the most important way to construct a topology on a set is to define the topology in terms of a metric on the set. This approach underlies

More information

IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 57, NO. 11, NOVEMBER On the Performance of Sparse Recovery

IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 57, NO. 11, NOVEMBER On the Performance of Sparse Recovery IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 57, NO. 11, NOVEMBER 2011 7255 On the Performance of Sparse Recovery Via `p-minimization (0 p 1) Meng Wang, Student Member, IEEE, Weiyu Xu, and Ao Tang, Senior

More information

The maximum edge biclique problem is NP-complete

The maximum edge biclique problem is NP-complete The maximum edge biclique problem is NP-complete René Peeters Department of Econometrics and Operations Research Tilburg University The Netherlands April 5, 005 File No. DA5734 Running head: Maximum edge

More information

The Ins and Outs of Reason Maintenance

The Ins and Outs of Reason Maintenance Reset reproduction of CMU Computer Science report CMU-CS-83-126. Published in IJCAI 83, pp. 349 351. Reprinted July 1994. Reprinting c Copyright 1983, 1994 by Jon Doyle. Current address: MIT Laboratory

More information

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35.

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35. NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979. NP-Completeness 1 General Problems, Input Size and

More information

The Skorokhod reflection problem for functions with discontinuities (contractive case)

The Skorokhod reflection problem for functions with discontinuities (contractive case) The Skorokhod reflection problem for functions with discontinuities (contractive case) TAKIS KONSTANTOPOULOS Univ. of Texas at Austin Revised March 1999 Abstract Basic properties of the Skorokhod reflection

More information

immediately, without knowledge of the jobs that arrive later The jobs cannot be preempted, ie, once a job is scheduled (assigned to a machine), it can

immediately, without knowledge of the jobs that arrive later The jobs cannot be preempted, ie, once a job is scheduled (assigned to a machine), it can A Lower Bound for Randomized On-Line Multiprocessor Scheduling Jir Sgall Abstract We signicantly improve the previous lower bounds on the performance of randomized algorithms for on-line scheduling jobs

More information

CS264: Beyond Worst-Case Analysis Lecture #11: LP Decoding

CS264: Beyond Worst-Case Analysis Lecture #11: LP Decoding CS264: Beyond Worst-Case Analysis Lecture #11: LP Decoding Tim Roughgarden October 29, 2014 1 Preamble This lecture covers our final subtopic within the exact and approximate recovery part of the course.

More information

Introductory Analysis I Fall 2014 Homework #9 Due: Wednesday, November 19

Introductory Analysis I Fall 2014 Homework #9 Due: Wednesday, November 19 Introductory Analysis I Fall 204 Homework #9 Due: Wednesday, November 9 Here is an easy one, to serve as warmup Assume M is a compact metric space and N is a metric space Assume that f n : M N for each

More information

Bounds on the generalised acyclic chromatic numbers of bounded degree graphs

Bounds on the generalised acyclic chromatic numbers of bounded degree graphs Bounds on the generalised acyclic chromatic numbers of bounded degree graphs Catherine Greenhill 1, Oleg Pikhurko 2 1 School of Mathematics, The University of New South Wales, Sydney NSW Australia 2052,

More information

A Polynomial-Time Algorithm for Pliable Index Coding

A Polynomial-Time Algorithm for Pliable Index Coding 1 A Polynomial-Time Algorithm for Pliable Index Coding Linqi Song and Christina Fragouli arxiv:1610.06845v [cs.it] 9 Aug 017 Abstract In pliable index coding, we consider a server with m messages and n

More information

Lower Bounds for Testing Bipartiteness in Dense Graphs

Lower Bounds for Testing Bipartiteness in Dense Graphs Lower Bounds for Testing Bipartiteness in Dense Graphs Andrej Bogdanov Luca Trevisan Abstract We consider the problem of testing bipartiteness in the adjacency matrix model. The best known algorithm, due

More information

Aditya Bhaskara CS 5968/6968, Lecture 1: Introduction and Review 12 January 2016

Aditya Bhaskara CS 5968/6968, Lecture 1: Introduction and Review 12 January 2016 Lecture 1: Introduction and Review We begin with a short introduction to the course, and logistics. We then survey some basics about approximation algorithms and probability. We also introduce some of

More information

Containment restrictions

Containment restrictions Containment restrictions Tibor Szabó Extremal Combinatorics, FU Berlin, WiSe 207 8 In this chapter we switch from studying constraints on the set operation intersection, to constraints on the set relation

More information

Theory of Computation Chapter 1: Introduction

Theory of Computation Chapter 1: Introduction Theory of Computation Chapter 1: Introduction Guan-Shieng Huang Sep. 20, 2006 Feb. 9, 2009 0-0 Text Book Computational Complexity, by C. H. Papadimitriou, Addison-Wesley, 1994. 1 References Garey, M.R.

More information

NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or

NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or other reproductions of copyrighted material. Any copying

More information

Avoiding Approximate Squares

Avoiding Approximate Squares Avoiding Approximate Squares Narad Rampersad School of Computer Science University of Waterloo 13 June 2007 (Joint work with Dalia Krieger, Pascal Ochem, and Jeffrey Shallit) Narad Rampersad (University

More information

Upper and Lower Bounds on the Number of Faults. a System Can Withstand Without Repairs. Cambridge, MA 02139

Upper and Lower Bounds on the Number of Faults. a System Can Withstand Without Repairs. Cambridge, MA 02139 Upper and Lower Bounds on the Number of Faults a System Can Withstand Without Repairs Michel Goemans y Nancy Lynch z Isaac Saias x Laboratory for Computer Science Massachusetts Institute of Technology

More information

Centre d Economie de la Sorbonne UMR 8174

Centre d Economie de la Sorbonne UMR 8174 Centre d Economie de la Sorbonne UMR 8174 On-line bin-packing problem : maximizing the number of unused bins Bernard KOUAKOU Marc DEMANGE Eric SOUTIF 2006.38 Maison des Sciences Économiques, 106-112 boulevard

More information

Discrepancy Theory in Approximation Algorithms

Discrepancy Theory in Approximation Algorithms Discrepancy Theory in Approximation Algorithms Rajat Sen, Soumya Basu May 8, 2015 1 Introduction In this report we would like to motivate the use of discrepancy theory in algorithms. Discrepancy theory

More information

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

The Parameterized Complexity of Intersection and Composition Operations on Sets of Finite-State Automata The Parameterized Complexity of Intersection and Composition Operations on Sets of Finite-State Automata H. Todd Wareham Department of Computer Science, Memorial University of Newfoundland, St. John s,

More information

CS264: Beyond Worst-Case Analysis Lecture #14: Smoothed Analysis of Pareto Curves

CS264: Beyond Worst-Case Analysis Lecture #14: Smoothed Analysis of Pareto Curves CS264: Beyond Worst-Case Analysis Lecture #14: Smoothed Analysis of Pareto Curves Tim Roughgarden November 5, 2014 1 Pareto Curves and a Knapsack Algorithm Our next application of smoothed analysis is

More information

Polynomial Time Algorithms for Minimum Energy Scheduling

Polynomial Time Algorithms for Minimum Energy Scheduling Polynomial Time Algorithms for Minimum Energy Scheduling Philippe Baptiste 1, Marek Chrobak 2, and Christoph Dürr 1 1 CNRS, LIX UMR 7161, Ecole Polytechnique 91128 Palaiseau, France. Supported by CNRS/NSF

More information

Machine Minimization for Scheduling Jobs with Interval Constraints

Machine Minimization for Scheduling Jobs with Interval Constraints Machine Minimization for Scheduling Jobs with Interval Constraints Julia Chuzhoy Sudipto Guha Sanjeev Khanna Joseph (Seffi) Naor Abstract The problem of scheduling jobs with interval constraints is a well-studied

More information

Tree Decomposition of Graphs

Tree Decomposition of Graphs Tree Decomposition of Graphs Raphael Yuster Department of Mathematics University of Haifa-ORANIM Tivon 36006, Israel. e-mail: raphy@math.tau.ac.il Abstract Let H be a tree on h 2 vertices. It is shown

More information

A little context This paper is concerned with finite automata from the experimental point of view. The behavior of these machines is strictly determin

A little context This paper is concerned with finite automata from the experimental point of view. The behavior of these machines is strictly determin Computability and Probabilistic machines K. de Leeuw, E. F. Moore, C. E. Shannon and N. Shapiro in Automata Studies, Shannon, C. E. and McCarthy, J. Eds. Annals of Mathematics Studies, Princeton University

More information

Optimal analysis of Best Fit bin packing

Optimal analysis of Best Fit bin packing Optimal analysis of Best Fit bin packing György Dósa Jiří Sgall November 2, 2013 Abstract In the bin packing problem we are given an instance consisting of a sequence of items with sizes between 0 and

More information

The concentration of the chromatic number of random graphs

The concentration of the chromatic number of random graphs The concentration of the chromatic number of random graphs Noga Alon Michael Krivelevich Abstract We prove that for every constant δ > 0 the chromatic number of the random graph G(n, p) with p = n 1/2

More information

COLORINGS FOR MORE EFFICIENT COMPUTATION OF JACOBIAN MATRICES BY DANIEL WESLEY CRANSTON

COLORINGS FOR MORE EFFICIENT COMPUTATION OF JACOBIAN MATRICES BY DANIEL WESLEY CRANSTON COLORINGS FOR MORE EFFICIENT COMPUTATION OF JACOBIAN MATRICES BY DANIEL WESLEY CRANSTON B.S., Greenville College, 1999 M.S., University of Illinois, 2000 THESIS Submitted in partial fulfillment of the

More information

Equidivisible consecutive integers

Equidivisible consecutive integers & Equidivisible consecutive integers Ivo Düntsch Department of Computer Science Brock University St Catherines, Ontario, L2S 3A1, Canada duentsch@cosc.brocku.ca Roger B. Eggleton Department of Mathematics

More information

Standard forms for writing numbers

Standard forms for writing numbers Standard forms for writing numbers In order to relate the abstract mathematical descriptions of familiar number systems to the everyday descriptions of numbers by decimal expansions and similar means,

More information

6. Qualitative Solutions of the TISE

6. Qualitative Solutions of the TISE 6. Qualitative Solutions of the TISE Copyright c 2015 2016, Daniel V. Schroeder Our goal for the next few lessons is to solve the time-independent Schrödinger equation (TISE) for a variety of one-dimensional

More information

Network Augmentation and the Multigraph Conjecture

Network Augmentation and the Multigraph Conjecture Network Augmentation and the Multigraph Conjecture Nathan Kahl Department of Mathematical Sciences Stevens Institute of Technology Hoboken, NJ 07030 e-mail: nkahl@stevens-tech.edu Abstract Let Γ(n, m)

More information

THIS paper is aimed at designing efficient decoding algorithms

THIS paper is aimed at designing efficient decoding algorithms IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 45, NO. 7, NOVEMBER 1999 2333 Sort-and-Match Algorithm for Soft-Decision Decoding Ilya Dumer, Member, IEEE Abstract Let a q-ary linear (n; k)-code C be used

More information

IN this paper, we consider the capacity of sticky channels, a

IN this paper, we consider the capacity of sticky channels, a 72 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 54, NO. 1, JANUARY 2008 Capacity Bounds for Sticky Channels Michael Mitzenmacher, Member, IEEE Abstract The capacity of sticky channels, a subclass of insertion

More information

Decomposition of random graphs into complete bipartite graphs

Decomposition of random graphs into complete bipartite graphs Decomposition of random graphs into complete bipartite graphs Fan Chung Xing Peng Abstract We consider the problem of partitioning the edge set of a graph G into the minimum number τg of edge-disjoint

More information

Decomposition of random graphs into complete bipartite graphs

Decomposition of random graphs into complete bipartite graphs Decomposition of random graphs into complete bipartite graphs Fan Chung Xing Peng Abstract We consider the problem of partitioning the edge set of a graph G into the minimum number τg) of edge-disjoint

More information

Arbitrary-Precision Division

Arbitrary-Precision Division Arbitrary-Precision Division Rod Howell Kansas State University September 8, 000 This paper presents an algorithm for arbitrary-precision division and shows its worst-case time compleity to be related

More information

Adaptive Matrix Vector Product

Adaptive Matrix Vector Product Adaptive Matrix Vector Product Santosh S. Vempala David P. Woodruff November 6, 2016 Abstract We consider the following streaming problem: given a hardwired m n matrix A together with a poly(mn)-bit hardwired

More information

2 Notation and Preliminaries

2 Notation and Preliminaries On Asymmetric TSP: Transformation to Symmetric TSP and Performance Bound Ratnesh Kumar Haomin Li epartment of Electrical Engineering University of Kentucky Lexington, KY 40506-0046 Abstract We show that

More information

Introduction to Randomized Algorithms III

Introduction to Randomized Algorithms III Introduction to Randomized Algorithms III Joaquim Madeira Version 0.1 November 2017 U. Aveiro, November 2017 1 Overview Probabilistic counters Counting with probability 1 / 2 Counting with probability

More information

Antimagic Properties of Graphs with Large Maximum Degree

Antimagic Properties of Graphs with Large Maximum Degree Antimagic Properties of Graphs with Large Maximum Degree Zelealem B. Yilma Department of Mathematical Sciences Carnegie Mellon University Pittsburgh, PA 1513 E-mail: zyilma@andrew.cmu.edu July 6, 011 Abstract

More information

Performance of DS-CDMA Systems With Optimal Hard-Decision Parallel Interference Cancellation

Performance of DS-CDMA Systems With Optimal Hard-Decision Parallel Interference Cancellation 2918 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 49, NO. 11, NOVEMBER 2003 Performance of DS-CDMA Systems With Optimal Hard-Decision Parallel Interference Cancellation Remco van der Hofstad Marten J.

More information

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

Lecture 6,7 (Sept 27 and 29, 2011 ): Bin Packing, MAX-SAT ,7 CMPUT 675: Approximation Algorithms Fall 2011 Lecture 6,7 (Sept 27 and 29, 2011 ): Bin Pacing, MAX-SAT Lecturer: Mohammad R. Salavatipour Scribe: Weitian Tong 6.1 Bin Pacing Problem Recall the bin pacing

More information

hal , version 1-27 Mar 2014

hal , version 1-27 Mar 2014 Author manuscript, published in "2nd Multidisciplinary International Conference on Scheduling : Theory and Applications (MISTA 2005), New York, NY. : United States (2005)" 2 More formally, we denote by

More information

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

Deciding Emptiness of the Gomory-Chvátal Closure is NP-Complete, Even for a Rational Polyhedron Containing No Integer Point Deciding Emptiness of the Gomory-Chvátal Closure is NP-Complete, Even for a Rational Polyhedron Containing No Integer Point Gérard Cornuéjols 1 and Yanjun Li 2 1 Tepper School of Business, Carnegie Mellon

More information

R u t c o r Research R e p o r t. Uniform partitions and Erdös-Ko-Rado Theorem a. Vladimir Gurvich b. RRR , August, 2009

R u t c o r Research R e p o r t. Uniform partitions and Erdös-Ko-Rado Theorem a. Vladimir Gurvich b. RRR , August, 2009 R u t c o r Research R e p o r t Uniform partitions and Erdös-Ko-Rado Theorem a Vladimir Gurvich b RRR 16-2009, August, 2009 RUTCOR Rutgers Center for Operations Research Rutgers University 640 Bartholomew

More information

Lecture 1 : Probabilistic Method

Lecture 1 : Probabilistic Method IITM-CS6845: Theory Jan 04, 01 Lecturer: N.S.Narayanaswamy Lecture 1 : Probabilistic Method Scribe: R.Krithika The probabilistic method is a technique to deal with combinatorial problems by introducing

More information

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

The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles Snežana Mitrović-Minić Ramesh Krishnamurti School of Computing Science, Simon Fraser University, Burnaby,

More information

Ahlswede Khachatrian Theorems: Weighted, Infinite, and Hamming

Ahlswede Khachatrian Theorems: Weighted, Infinite, and Hamming Ahlswede Khachatrian Theorems: Weighted, Infinite, and Hamming Yuval Filmus April 4, 2017 Abstract The seminal complete intersection theorem of Ahlswede and Khachatrian gives the maximum cardinality of

More information

DR.RUPNATHJI( DR.RUPAK NATH )

DR.RUPNATHJI( DR.RUPAK NATH ) Contents 1 Sets 1 2 The Real Numbers 9 3 Sequences 29 4 Series 59 5 Functions 81 6 Power Series 105 7 The elementary functions 111 Chapter 1 Sets It is very convenient to introduce some notation and terminology

More information

Lecture 2: Paging and AdWords

Lecture 2: Paging and AdWords Algoritmos e Incerteza (PUC-Rio INF2979, 2017.1) Lecture 2: Paging and AdWords March 20 2017 Lecturer: Marco Molinaro Scribe: Gabriel Homsi In this class we had a brief recap of the Ski Rental Problem

More information

Asymptotic redundancy and prolixity

Asymptotic redundancy and prolixity Asymptotic redundancy and prolixity Yuval Dagan, Yuval Filmus, and Shay Moran April 6, 2017 Abstract Gallager (1978) considered the worst-case redundancy of Huffman codes as the maximum probability tends

More information

Gearing optimization

Gearing optimization Gearing optimization V.V. Lozin Abstract We consider an optimization problem that arises in machine-tool design. It deals with optimization of the structure of gearbox, which is normally represented by

More information

List coloring hypergraphs

List coloring hypergraphs List coloring hypergraphs Penny Haxell Jacques Verstraete Department of Combinatorics and Optimization University of Waterloo Waterloo, Ontario, Canada pehaxell@uwaterloo.ca Department of Mathematics University

More information

2. ALGORITHM ANALYSIS

2. ALGORITHM ANALYSIS 2. ALGORITHM ANALYSIS computational tractability asymptotic order of growth survey of common running times Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

A robust APTAS for the classical bin packing problem

A robust APTAS for the classical bin packing problem A robust APTAS for the classical bin packing problem Leah Epstein Asaf Levin Abstract Bin packing is a well studied problem which has many applications. In this paper we design a robust APTAS for the problem.

More information

An algorithm for computing minimal bidirectional linear recurrence relations

An algorithm for computing minimal bidirectional linear recurrence relations Loughborough University Institutional Repository An algorithm for computing minimal bidirectional linear recurrence relations This item was submitted to Loughborough University's Institutional Repository

More information

540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL Algorithmic Analysis of Nonlinear Hybrid Systems

540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL Algorithmic Analysis of Nonlinear Hybrid Systems 540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL 1998 Algorithmic Analysis of Nonlinear Hybrid Systems Thomas A. Henzinger, Pei-Hsin Ho, Howard Wong-Toi Abstract Hybrid systems are digital

More information

Oblivious and Adaptive Strategies for the Majority and Plurality Problems

Oblivious and Adaptive Strategies for the Majority and Plurality Problems Oblivious and Adaptive Strategies for the Majority and Plurality Problems Fan Chung 1, Ron Graham 1, Jia Mao 1, and Andrew Yao 2 1 Department of Computer Science and Engineering, University of California,

More information

Spheres with maximum inner diameter

Spheres with maximum inner diameter Carnegie Mellon University Research Showcase @ CMU Department of Mathematical Sciences Mellon College of Science 1970 Spheres with maximum inner diameter Juan Jorge Schäffer Carnegie Mellon University,

More information

The expansion of random regular graphs

The expansion of random regular graphs The expansion of random regular graphs David Ellis Introduction Our aim is now to show that for any d 3, almost all d-regular graphs on {1, 2,..., n} have edge-expansion ratio at least c d d (if nd is

More information

Unbounded Regions of Infinitely Logconcave Sequences

Unbounded Regions of Infinitely Logconcave Sequences The University of San Francisco USF Scholarship: a digital repository @ Gleeson Library Geschke Center Mathematics College of Arts and Sciences 007 Unbounded Regions of Infinitely Logconcave Sequences

More information

An Entropy Bound for Random Number Generation

An Entropy Bound for Random Number Generation 244 An Entropy Bound for Random Number Generation Sung-il Pae, Hongik University, Seoul, Korea Summary Many computer applications use random numbers as an important computational resource, and they often

More information

A holding cost bound for the economic lot-sizing problem with time-invariant cost parameters

A holding cost bound for the economic lot-sizing problem with time-invariant cost parameters A holding cost bound for the economic lot-sizing problem with time-invariant cost parameters Wilco van den Heuvel a, Albert P.M. Wagelmans a a Econometric Institute and Erasmus Research Institute of Management,

More information

Unit 2, Section 3: Linear Combinations, Spanning, and Linear Independence Linear Combinations, Spanning, and Linear Independence

Unit 2, Section 3: Linear Combinations, Spanning, and Linear Independence Linear Combinations, Spanning, and Linear Independence Linear Combinations Spanning and Linear Independence We have seen that there are two operations defined on a given vector space V :. vector addition of two vectors and. scalar multiplication of a vector

More information

Upper Bounds on the Time and Space Complexity of Optimizing Additively Separable Functions

Upper Bounds on the Time and Space Complexity of Optimizing Additively Separable Functions Upper Bounds on the Time and Space Complexity of Optimizing Additively Separable Functions Matthew J. Streeter Computer Science Department and Center for the Neural Basis of Cognition Carnegie Mellon University

More information

2.1 Computational Tractability. Chapter 2. Basics of Algorithm Analysis. Computational Tractability. Polynomial-Time

2.1 Computational Tractability. Chapter 2. Basics of Algorithm Analysis. Computational Tractability. Polynomial-Time Chapter 2 2.1 Computational Tractability Basics of Algorithm Analysis "For me, great algorithms are the poetry of computation. Just like verse, they can be terse, allusive, dense, and even mysterious.

More information

An Improved Approximation Algorithm for Maximum Edge 2-Coloring in Simple Graphs

An Improved Approximation Algorithm for Maximum Edge 2-Coloring in Simple Graphs An Improved Approximation Algorithm for Maximum Edge 2-Coloring in Simple Graphs Zhi-Zhong Chen Ruka Tanahashi Lusheng Wang Abstract We present a polynomial-time approximation algorithm for legally coloring

More information

Single Machine Scheduling with Job-Dependent Machine Deterioration

Single Machine Scheduling with Job-Dependent Machine Deterioration Single Machine Scheduling with Job-Dependent Machine Deterioration Wenchang Luo 1, Yao Xu 2, Weitian Tong 3, and Guohui Lin 4 1 Faculty of Science, Ningbo University. Ningbo, Zhejiang 315211, China; and

More information

Lecture 5: January 30

Lecture 5: January 30 CS71 Randomness & Computation Spring 018 Instructor: Alistair Sinclair Lecture 5: January 30 Disclaimer: These notes have not been subjected to the usual scrutiny accorded to formal publications. They

More information

Output Input Stability and Minimum-Phase Nonlinear Systems

Output Input Stability and Minimum-Phase Nonlinear Systems 422 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 47, NO. 3, MARCH 2002 Output Input Stability and Minimum-Phase Nonlinear Systems Daniel Liberzon, Member, IEEE, A. Stephen Morse, Fellow, IEEE, and Eduardo

More information

Spanning Paths in Infinite Planar Graphs

Spanning Paths in Infinite Planar Graphs Spanning Paths in Infinite Planar Graphs Nathaniel Dean AT&T, ROOM 2C-415 600 MOUNTAIN AVENUE MURRAY HILL, NEW JERSEY 07974-0636, USA Robin Thomas* Xingxing Yu SCHOOL OF MATHEMATICS GEORGIA INSTITUTE OF

More information

Decomposing oriented graphs into transitive tournaments

Decomposing oriented graphs into transitive tournaments Decomposing oriented graphs into transitive tournaments Raphael Yuster Department of Mathematics University of Haifa Haifa 39105, Israel Abstract For an oriented graph G with n vertices, let f(g) denote

More information

Lecture 24: April 12

Lecture 24: April 12 CS271 Randomness & Computation Spring 2018 Instructor: Alistair Sinclair Lecture 24: April 12 Disclaimer: These notes have not been subjected to the usual scrutiny accorded to formal publications. They

More information

Worst-Case Analysis of the Perceptron and Exponentiated Update Algorithms

Worst-Case Analysis of the Perceptron and Exponentiated Update Algorithms Worst-Case Analysis of the Perceptron and Exponentiated Update Algorithms Tom Bylander Division of Computer Science The University of Texas at San Antonio San Antonio, Texas 7849 bylander@cs.utsa.edu April

More information

Important Properties of R

Important Properties of R Chapter 2 Important Properties of R The purpose of this chapter is to explain to the reader why the set of real numbers is so special. By the end of this chapter, the reader should understand the difference

More information

Dispersing Points on Intervals

Dispersing Points on Intervals Dispersing Points on Intervals Shimin Li 1 and Haitao Wang 1 Department of Computer Science, Utah State University, Logan, UT 843, USA shiminli@aggiemail.usu.edu Department of Computer Science, Utah State

More information

Math 541 Fall 2008 Connectivity Transition from Math 453/503 to Math 541 Ross E. Staffeldt-August 2008

Math 541 Fall 2008 Connectivity Transition from Math 453/503 to Math 541 Ross E. Staffeldt-August 2008 Math 541 Fall 2008 Connectivity Transition from Math 453/503 to Math 541 Ross E. Staffeldt-August 2008 Closed sets We have been operating at a fundamental level at which a topological space is a set together

More information