Skip to main content

Fractional Bamboo Trimming and Distributed Windows Scheduling

  • Conference paper
  • First Online:
SOFSEM 2024: Theory and Practice of Computer Science (SOFSEM 2024)

Abstract

This paper studies two related scheduling problems: fractional bamboo trimming and distributed windows scheduling. In the fractional bamboo trimming problem, we are given n bamboos with different growth rates and cut fractions. At the end of each day, we can cut a fraction of one bamboo. The goal is to design a perpetual schedule of cuts to minimize the height of the tallest bamboo ever. For this problem, we present a 2-approximation algorithm. In addition, we prove upper bounds on the approximation factors of well-known algorithms Reduce-Max and Reduce-Fastest(x) for this problem. In the closely related windows scheduling problem, given a multiset of positive integers \(W = \{w_1, ..., w_n\}\), we want to schedule n pages on broadcasting channels such that the time interval between any two consecutive appearances of the i-th page (\(1 \le i \le n\)) is at most \(w_i\). The goal of this problem is to minimize the number of channels. We provide an algorithm for the windows scheduling problem that uses at most \(\left\lceil \frac{d(W) + 1}{0.75} \right\rceil \) channels, where \(d(W) = \sum _{i=1}^{n}{\frac{1}{w_i}}\). When \(d(W) \le 46\), our algorithm guarantees a smaller upper bound on the number of channels than the best-known algorithm in the literature. We also describe the first approximation algorithm for the windows scheduling problem in a distributed setting, where input data is partitioned among a set of m machines. Furthermore, we introduce patterns of some multisets with \(d(W) \le 1\) for which windows scheduling on one channel (i.e., pinwheel scheduling) is impossible.

This work was partially funded by NSERC Discovery Grants.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Adler, M., Berenbrink, P., Friedetzky, T., Goldberg, L.A., Goldberg, P., Paterson, M.: A proportionate fair scheduling rule with good worst-case performance. In: Proceedings of the Fifteenth Annual ACM Symposium on Parallel Algorithms and Architectures, pp. 101–108 (2003)

    Google Scholar 

  2. Alshamrani, S.: How reduce max algorithm behaves with symptoms appearance on virtual machines in clouds. In: 2015 International Conference on Cloud Computing (ICCC), pp. 1–4. IEEE (2015)

    Google Scholar 

  3. Ammar, M.H., Wong, J.W.: The design of teletext broadcast cycles. Perform. Eval. 5(4), 235–242 (1985)

    Article  Google Scholar 

  4. Anily, S., Glass, C.A., Hassin, R.: The scheduling of maintenance service. Discrete Appl. Math. 82(1–3), 27–42 (1998)

    Article  MathSciNet  Google Scholar 

  5. Assadi, S.: Combinatorial optimization on massive datasets: streaming, distributed, and massively parallel computation. University of Pennsylvania (2018)

    Google Scholar 

  6. Bar-Noy, A., Ladner, R.E.: Windows scheduling problems for broadcast systems. SIAM J. Comput. 32(4), 1091–1113 (2003)

    Article  MathSciNet  Google Scholar 

  7. Bar-Noy, A., Ladner, R.E., Tamir, T.: Scheduling techniques for media-on-demand. In: SODA, pp. 791–80 (2003)

    Google Scholar 

  8. Bar-Noy, A., Ladner, R.E., Tamir, T.: Windows scheduling as a restricted version of bin packing. ACM Trans. Algorithms (TALG) 3(3), 28-es (2007)

    Google Scholar 

  9. Beame, P., Koutris, P., Suciu, D.: Communication steps for parallel query processing. J. ACM (JACM) 64(6), 1–58 (2017)

    Article  MathSciNet  Google Scholar 

  10. Bender, M.A., Farach-Colton, M., Kuszmaul, W.: Achieving optimal backlog in multi-processor cup games. In: Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pp. 1148–1157 (2019)

    Google Scholar 

  11. Bender, M.A., et al.: The minimum backlog problem. Theor. Comput. Sci. 605, 51–61 (2015)

    Article  MathSciNet  Google Scholar 

  12. Bender, M.A., Kuszmaul, W.: Randomized cup game algorithms against strong adversaries. In: Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 2059–2077. SIAM (2021)

    Google Scholar 

  13. Bilò, D., Gualà, L., Leucci, S., Proietti, G., Scornavacca, G.: Cutting bamboo down to size. Theoret. Comput. Sci. 909, 54–67 (2022)

    Article  MathSciNet  Google Scholar 

  14. Chan, M.Y., Chin, F.Y.L.: General schedulers for the pinwheel problem based on double-integer reduction. IEEE Trans. Comput. 41(06), 755–768 (1992)

    Article  Google Scholar 

  15. Garey, M.R., Johnson, D.S.: Approximation algorithms for bin packing problems: a survey. In: Ausiello, G., Lucertini, M. (eds.) Analysis and Design of Algorithms in Combinatorial Optimization. ICMS, vol. 266, pp. 147–172. Springer, Vienna (1981). https://doi.org/10.1007/978-3-7091-2748-3_8

    Chapter  Google Scholar 

  16. Dean, J., Ghemawat, S.: MapReduce: simplified data processing on large clusters. Commun. ACM 51(1), 107–113 (2008)

    Article  Google Scholar 

  17. Fishburn, P.C., Lagarias, J.C.: Pinwheel scheduling: achievable densities. Algorithmica 34(1), 14–38 (2002)

    Article  MathSciNet  Google Scholar 

  18. Gasieniec, L., et al.: Perpetual maintenance of machines with different urgency requirements. J. Comput. Syst. Sci. 139, 103476 (2024)

    Article  MathSciNet  Google Scholar 

  19. Gąsieniec, L., Klasing, R., Levcopoulos, C., Lingas, A., Min, J., Radzik, T.: Bamboo garden trimming problem (perpetual maintenance of machines with different attendance urgency factors). In: Steffen, B., Baier, C., van den Brand, M., Eder, J., Hinchey, M., Margaria, T. (eds.) SOFSEM 2017. LNCS, vol. 10139, pp. 229–240. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-51963-0_18

    Chapter  Google Scholar 

  20. Goldwasser, M.H.: A survey of buffer management policies for packet switches. ACM SIGACT News 41(1), 100–128 (2010)

    Article  Google Scholar 

  21. Höhne, F., van Stee, R.: A 10/7-approximation for discrete bamboo garden trimming and continuous trimming on star graphs. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2023). Schloss Dagstuhl-Leibniz-Zentrum für Informatik (2023)

    Google Scholar 

  22. Holte, R., Mok, A., Rosier, L., Tulchinsky, I., Varvel, D.: The pinwheel: a real-time scheduling problem. In: Proceedings of the 22nd Hawaii International Conference of System Science, pp. 693–702 (1989)

    Google Scholar 

  23. Im, S., Moseley, B., Zhou, R.: The matroid cup game. Oper. Res. Lett. 49(3), 405–411 (2021)

    Article  MathSciNet  Google Scholar 

  24. Indyk, P., Mahabadi, S., Mahdian, M., Mirrokni, V.S.: Composable core-sets for diversity and coverage maximization. In: Proceedings of the 33rd ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, pp. 100–108 (2014)

    Google Scholar 

  25. Karloff, H., Suri, S., Vassilvitskii, S.: A model of computation for MapReduce. In: Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 938–948. SIAM (2010)

    Google Scholar 

  26. Kuszmaul, J.: Bamboo trimming revisited: Simple algorithms can do well too. In: Proceedings of the 34th ACM Symposium on Parallelism in Algorithms and Architectures, pp. 411–417 (2022)

    Google Scholar 

  27. Kuszmaul, W.: Achieving optimal backlog in the vanilla multi-processor cup game. In: Proceedings of the Fourteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 1558–1577. SIAM (2020)

    Google Scholar 

  28. Kuszmaul, W.: How asymmetry helps buffer management: achieving optimal tail size in cup games. In: Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pp. 1248–1261 (2021)

    Google Scholar 

  29. Kuszmaul, W., Westover, A.: The variable-processor cup game. arXiv preprint arXiv:2012.00127 (2020)

  30. Liu, C.L., Layland, J.W.: Scheduling algorithms for multiprogramming in a hard-real-time environment. J. ACM (JACM) 20(1), 46–61 (1973)

    Article  MathSciNet  Google Scholar 

  31. Mirjalali, K., Tabatabaee, S.A., Zarrabi-Zadeh, H.: Distributed unit clustering. In: CCCG, pp. 236–241 (2019)

    Google Scholar 

  32. van Ee, M.: A 12/7-approximation algorithm for the discrete bamboo garden trimming problem. Oper. Res. Lett. 49(5), 645–649 (2021)

    Article  MathSciNet  Google Scholar 

  33. Viswanathan, S., Imielinski, T.: Metropolitan area video-on-demand service using pyramid broadcasting. Multimed. Syst. 4, 197–208 (1996)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Seyed Ali Tabatabaee .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Beikmohammadi, A., Evans, W., Tabatabaee, S.A. (2024). Fractional Bamboo Trimming and Distributed Windows Scheduling. In: Fernau, H., Gaspers, S., Klasing, R. (eds) SOFSEM 2024: Theory and Practice of Computer Science. SOFSEM 2024. Lecture Notes in Computer Science, vol 14519. Springer, Cham. https://doi.org/10.1007/978-3-031-52113-3_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-52113-3_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-52112-6

  • Online ISBN: 978-3-031-52113-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics