Skip to main content
Log in

Machine Covering in the Random-Order Model

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

In the Online Machine Covering problem, jobs, defined by their sizes, arrive one by one and have to be assigned to m parallel and identical machines, with the goal of maximizing the load of the least-loaded machine. Unfortunately, the classical model allows only fairly pessimistic performance guarantees: The best possible deterministic ratio of m is achieved by the Greedy-strategy, and the best known randomized algorithm has competitive ratio \({\tilde{O}}(\sqrt{m})\), which cannot be improved by more than a logarithmic factor. Modern results try to mitigate this by studying semi-online models, where additional information about the job sequence is revealed in advance or extra resources are provided to the online algorithm. In this work, we study the Machine Covering problem in the recently popular random-order model. Here, no extra resources are present but, instead, the adversary is weakened in that it can only decide upon the input set while jobs are revealed uniformly at random. It is particularly relevant to Machine Covering where lower bounds are usually associated to highly structured input sequences. We first analyze Graham’s Greedy-strategy in this context and establish that its competitive ratio decreases slightly to \(\Theta \left( \frac{m}{\log (m)}\right) \), which is asymptotically tight. Then, as our main result, we present an improved \({\tilde{O}}(\root 4 \of {m})\)-competitive algorithm for the problem. This result is achieved by exploiting the extra information coming from the random order of the jobs, using sampling techniques to devise an improved mechanism to distinguish jobs that are relatively large from small ones. We complement this result with a first lower bound, showing that no algorithm can have a competitive ratio of \(O\left( \frac{\log (m)}{\log \log (m)}\right) \) in the random-order model. This lower bound is achieved by studying a novel variant of the Secretary problem, which could be of independent interest.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

Notes

  1. In case A is randomized, we then refer to the expected minimum load.

  2. Using the convention that \(0/0=1\) and \(a/0=\infty \) for \(a>0\).

  3. We remark that the analysis of the algorithm for this instance is simpler as, for any possible permutation, no job is assigned to a full machine.

References

  1. Albers, S.: Better bounds for online scheduling. SIAM J. Comput. 29(2), 459–473 (1999). https://doi.org/10.1137/S0097539797324874

    Article  MathSciNet  MATH  Google Scholar 

  2. Albers, S., Janke, M.: Scheduling in the random-order model. In: ICALP, vol 168. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 68:1–68:18, (2020) https://doi.org/10.4230/LIPIcs.ICALP.2020.68

  3. Albers, S., Janke, M.: Scheduling in the Secretary Model. In: FSTTCS, vol 213. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 6:1–6:22 (2021) https://doi.org/10.4230/LIPIcs.FSTTCS.2021.6

  4. Albers, S., Khan, A., Ladewig, L.: Best fit bin packing with random order revisited. Algorithmica 83(9), 2833–2858 (2021). https://doi.org/10.1007/s00453-021-00844-5

    Article  MathSciNet  MATH  Google Scholar 

  5. Albers, S., Khan, A., Ladewig, L.: Improved online algorithms for knapsack and GAP in the random order model. Algorithmica 83(6), 1750–1785 (2021). https://doi.org/10.1007/s00453-021-00801-2

    Article  MathSciNet  MATH  Google Scholar 

  6. Asadpour, A., Saberi, A.: An approximation algorithm for max-min fair allocation of indivisible goods. SIAM J. Comput. 39(7), 2970–2989 (2010). https://doi.org/10.1137/080723491

    Article  MathSciNet  MATH  Google Scholar 

  7. Azar, Y., Epstein, L.: On-line machine covering. Journal of Scheduling 1(2), 67–77 (1998). https://doi.org/10.1002/(SICI)1099-1425(199808)1:2\(<\)67::AID-JOS6\(>\)3.0.CO;2-Y

  8. Babaioff, M., Immorlica, N., Kempe, D., et al: A knapsack secretary problem with applications. In: APPROX/RANDOM, vol. 4627, pp. 16–28. Springer (2007) https://doi.org/10.1007/978-3-540-74208-1_2

  9. Babaioff, M., Immorlica, N., Kempe, D., et al.: Matroid secretary problems. J. ACM 65(6), 35:1-35:26 (2018). https://doi.org/10.1145/3212512

    Article  MathSciNet  MATH  Google Scholar 

  10. Bansal, N., Sviridenko, M.: The santa claus problem. In: STOC. ACM, pp. 31–40. (2006) https://doi.org/10.1145/1132516.1132522

  11. Bartal, Y., Karloff, H.J., Rabani, Y.: A better lower bound for on-line scheduling. Inf. Process. Lett. 50(3), 113–116 (1994). https://doi.org/10.1016/0020-0190(94)00026-3

    Article  MathSciNet  MATH  Google Scholar 

  12. Bartal, Y., Fiat, A., Karloff, H.J., et al.: New algorithms for an ancient scheduling problem. J. Comput. Syst. Sci. 51(3), 359–366 (1995). https://doi.org/10.1006/jcss.1995.1074

    Article  MathSciNet  MATH  Google Scholar 

  13. Dynkin, E.B.: The optimum choice of the instant for stopping a Markov process. Soviet Math. Dokl. 4, 627–629 (1962)

    MATH  Google Scholar 

  14. Ebenlendr, T., Noga, J., Sgall, J., et al.: A note on semi-online machine covering. In: WAOA, vol 3879, pp. 110–118. Springer (2005)https://doi.org/10.1007/11671411_9

  15. Epstein, L.: A survey on makespan minimization in semi-online environments. J. Sched. 21(3), 269–284 (2018). https://doi.org/10.1007/s10951-018-0567-z

    Article  MathSciNet  MATH  Google Scholar 

  16. Epstein, L., Levin, A., van Stee, R.: Max-min online allocations with a reordering buffer. SIAM J. Discret. Math. 25(3), 1230–1250 (2011). https://doi.org/10.1137/100794006

    Article  MathSciNet  MATH  Google Scholar 

  17. Faigle, U., Kern, W., Turán, G.: On the performance of on-line algorithms for partition problems. Acta Cybern 9(2), 107–119 (1989)

    MathSciNet  MATH  Google Scholar 

  18. Feldman, M., Svensson, O., Zenklusen, R.: A simple O(log log(rank))-competitive algorithm for the matroid secretary problem. Math. Oper. Res. 43(2), 638–650 (2018). https://doi.org/10.1287/moor.2017.0876

    Article  MathSciNet  MATH  Google Scholar 

  19. Fleischer, R., Wahl, M.: Online scheduling revisited. In: ESA, vol 1879, pp. 202–210. Springer (2000) https://doi.org/10.1007/3-540-45253-2_19

  20. Friesen, D.K., Deuermeyer, B.L.: Analysis of greedy solutions for a replacement part sequencing problem. Math. Oper. Res. 6(1), 74–87 (1981). https://doi.org/10.1287/moor.6.1.74

    Article  MathSciNet  MATH  Google Scholar 

  21. Galambos, G., Woeginger, G.J.: An on-line scheduling heuristic with better worst case ratio than graham’s list scheduling. SIAM J. Comput. 22(2), 349–355 (1993). https://doi.org/10.1137/0222026

    Article  MathSciNet  MATH  Google Scholar 

  22. Gálvez, W., Soto, J.A., Verschae, J.: Symmetry exploitation for online machine covering with bounded migration. ACM Trans. Algorithms 16(4), 43:1-43:22 (2020). https://doi.org/10.1145/3397535

    Article  MathSciNet  MATH  Google Scholar 

  23. Göbel, O., Kesselheim, T., Tönnis, A.: Online appointment scheduling in the random order model. In: ESA, vol 9294, pp. 680–692. Springer (2015) https://doi.org/10.1007/978-3-662-48350-3_57

  24. Gormley, T., Reingold, N., Torng, E., et al.: Generating adversaries for request-answer games. In: SODA. ACM/SIAM, pp. 564–565 (2000)

  25. Graham, R.L.: Bounds for certain multiprocessing anomalies. The Bell System Technical Journal 45(9), 1563–1581 (1966). https://doi.org/10.1002/j.1538-7305.1966.tb01709.x

    Article  MATH  Google Scholar 

  26. Gupta, A., Singla, S.: Random-order Models. In: Beyond the Worst-Case Analysis of Algorithms, pp. 234–258. Cambridge University Press, Cambridge (2020). https://doi.org/10.1017/9781108637435.015

    Book  MATH  Google Scholar 

  27. Gupta, A., Mehta, R., Molinaro, M.: Maximizing profit with convex costs in the random-order model. In: ICALP, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, vol. 107, pp. 71:1–71:14. (2018)https://doi.org/10.4230/LIPIcs.ICALP.2018.71

  28. Hochbaum, D.S., Shmoys, D.B.: Using dual approximation algorithms for scheduling problems theoretical and practical results. J. ACM 34(1), 144–162 (1987). https://doi.org/10.1145/7531.7535

    Article  MathSciNet  Google Scholar 

  29. Hoorfar, A., Hassani, M.: Inequalities on the lambert w function and hyperpower function. J. Inequal Pure Appl. Math. 9(2), 5–9 (2008)

    MathSciNet  MATH  Google Scholar 

  30. Karger, D.R., Phillips, S.J., Torng, E.: A better algorithm for an ancient scheduling problem. J. Algorithms 20(2), 400–430 (1996). https://doi.org/10.1006/jagm.1996.0019

    Article  MathSciNet  MATH  Google Scholar 

  31. Kenyon, C.: Best-fit bin-packing with random order. In: SODA. ACM/SIAM, pp. 359–364 (1996)

  32. Kesselheim, T., Radke, K., Tönnis, A., et al.: Primal beats dual on online packing lps in the random-order model. SIAM J. Comput. 47(5), 1939–1964 (2018). https://doi.org/10.1137/15M1033708

    Article  MathSciNet  MATH  Google Scholar 

  33. Kleinberg, R.D.: A multiple-choice secretary algorithm with applications to online auctions. In: SODA. SIAM, pp. 630–631 (2005)

  34. Lachish, O.: O(log log rank) competitive ratio for the matroid secretary problem. In: FOCS. IEEE Computer Society, pp. 326–335 (2014) https://doi.org/10.1109/FOCS.2014.42

  35. Lattanzi, S., Lavastida, T., Moseley, B., et al.: Online scheduling via learned weights. In: SODA. SIAM, pp. 1859–1877 (2020) https://doi.org/10.1137/1.9781611975994.114

  36. Lindley, D.V.: Dynamic programming and decision theory. J. Roy. Stat. Soc. 10(1), 39–51 (1961)

    MathSciNet  MATH  Google Scholar 

  37. Meyerson, A.: Online facility location. In: FOCS. IEEE Computer Society, pp. 426–431 (2001) https://doi.org/10.1109/SFCS.2001.959917

  38. Mitzenmacher, M., Vassilvitskii, S.: Algorithms with Predictions. In: Beyond the Worst-Case Analysis of Algorithms, pp. 646–662. Cambridge University Press, Cambridge (2020). https://doi.org/10.1017/9781108637435.037

    Book  MATH  Google Scholar 

  39. Molinaro, M.: Online and random-order load balancing simultaneously. In: SODA. SIAM, pp. 1638–1650 (2017) https://doi.org/10.1137/1.9781611974782.108

  40. Osborn, C.J., Torng, E.: List’s worst-average-case or WAC ratio. J. Sched. 11(3), 213–215 (2008). https://doi.org/10.1007/s10951-007-0019-7

    Article  MATH  Google Scholar 

  41. Rudin III, J.F.: Improved bounds for the on-lijne scheduling problem. PhD thesis, The University of Texas at Dallas (2001)

  42. Sanders, P., Sivadasan, N., Skutella, M.: Online scheduling with bounded migration. Math. Oper. Res. 34(2), 481–498 (2009). https://doi.org/10.1287/moor.1090.0381

    Article  MathSciNet  MATH  Google Scholar 

  43. Skutella, M., Verschae, J.: Robust polynomial-time approximation schemes for parallel machine scheduling with job arrivals and departures. Math. Oper. Res. 41(3), 991–1021 (2016). https://doi.org/10.1287/moor.2015.0765

    Article  MathSciNet  MATH  Google Scholar 

  44. Vanderbei, R.J.: The postdoc variant of the secretary problem. http://www.princeton.edu/~rvdb/tex/PostdocProblem/PostdocProb.pdf, Unpublished (1983)

  45. Woeginger, G.J.: A polynomial-time approximation scheme for maximizing the minimum machine completion time. Oper. Res. Lett. 20(4), 149–154 (1997). https://doi.org/10.1016/S0167-6377(96)00055-7

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

We thank the anonymous reviewers for helpful comments that significantly improved the presentation of the results.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Waldo Gálvez.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Knowing n Does not Help in the Adversarial Model.

Knowing n Does not Help in the Adversarial Model.

As common in the area of online algorithms, we ignore computability issues. Formally, a deterministic online algorithm that does not know n is a function that receives as input a sequence of jobs \(J_1,\ldots ,J_{n'}\), which corresponds to the information the algorithm has at the moment of scheduling \(J_{n'}\), and returns a machine M onto which the job \(J_{n'}\) is scheduled. Similarly, a deterministic online algorithm that knows n receives as input a tuple \(n, J_1,\ldots ,J_{n'}\) and returns the machine M onto which job \(J_{n'}\) is scheduled. Here, \(n\ge n'\) is the total length of the input. Randomized algorithms are simply probability distributions over deterministic algorithms.

Proposition 19

Let A be any (possibly randomized) online algorithm that is c-competitive in the adversarial model knowing n beforehand. Then there is a strategy B that is c-competitive not knowing n. If A is deterministic, the strategy B can be chosen to be deterministic too.

Proof

Let us denote the algorithm A that knows beforehand that the input will have length n by A[n]. This algorithm outputs schedules for any sequence of jobs having length at most n. Given some number \(n'\in {\mathbb {N}} \), let \({\mathcal {S}} [n']\) be the set of all probability distributions over possible schedules of \(n'\) jobs. Schedules of \(n'\) jobs are nothing but assignments \(\{1,\ldots n'\}\rightarrow \{1,\ldots m\}\). Let F be the set of all such maps. We can then identify \({\mathcal {S}} [n']\) with a compact subspace of \([0,1]^{F}\subset {\mathbb {R}} ^F\). In fact it is the standard simplex spanned by the set \({\mathcal {E}} [n']\subset {\mathcal {S}} [n']\) consisting of probability distributions that choose one schedule with probability 1, or, geometrically speaking, the set of standard base vectors in \({\mathbb {R}} ^{M}\). For \(n'>0\), forgetting how we scheduled the last job yields a canonical continuous map \(r_{n'}:{\mathcal {S}} [n']\rightarrow {\mathcal {S}} [n'-1]\).

Given jobs \(J_1,\ldots J_{n'}\) and \(n\ge n'\), let \(s_{n'}^n=s_{n'}^n(J_1,\ldots J_{n'})\in {\mathcal {S}} [n']\) be the probability distribution of schedules obtained by algorithm A[n] on the job sequence \(J_1,\ldots , J_{n'}\). Consider the set of points \(s_{n'}^n\) with \(n\ge n'\). We pick inductively a limit point \(s_{n'}\) of this point set such that \(r_{n'}(s_{n'})=s_{n'-1}\) (this is possible because \( r_{n'}\) is continuous). The choice of \(s_{n'}\) only depends on the jobs \( J_1,\ldots J_{n'}\), hence can be picked ’online’. Now all our algorithm B has to do is to maintain its schedule at time \(n'\) according to the probability distribution \(s_{n'}\). The condition \(r_{n'}(s_{n'})=s_{n'-1}\) ensures that this is possible.

We will prove that this algorithm is c-competitive. Pick \(\varepsilon >0\) and any input sequence \(J_1,\ldots J_{n'}\). As \(s_{n'}\) is a limit point of the set of points \(s_{n'}^n\) there exists \(n\ge n'\) such that \((1-\varepsilon )s_{n'}^n\le s_{n'}\). In other words, if algorithm A[n] obtains schedule F after treating \(J_1,\ldots J_{n'}\) with probability p, then B obtains the same schedule with probability at least \((1-\varepsilon )p\). In particular, the expected minimum load of B on \(J_1,\ldots J_{n'}\) is at least \((1-\varepsilon )\) times the minimum load of A[n] on that sequence. The latter minimum load is at least \( c\cdot {\text {OPT}}(J_1,\ldots J_{n'})\) since A[n] is c-competitive. We have thus shown that the expected minimum load of B is at least \((1-\varepsilon )c\cdot {\text {OPT}}\). The proposition follows by taking the limit \(\varepsilon \rightarrow 0\).

If A is deterministic, all the points \(s_{n'}^n\) lie in the closed, in fact discrete, subset \({\mathcal {E}} [n']\subset {\mathcal {S}} [n']\) of probability distributions simply picking one schedule with probability 1. All limit points, in particular the points \(s_{n'}\), lie in \({\mathcal {E}} [n']\) too. Thus, B will also be deterministic. \(\square \)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Albers, S., Gálvez, W. & Janke, M. Machine Covering in the Random-Order Model. Algorithmica 85, 1560–1585 (2023). https://doi.org/10.1007/s00453-022-01011-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-022-01011-0

Keywords

Navigation