Caching Connections in Matchings (2310.14058v2)
Abstract: Motivated by the desire to utilize a limited number of configurable optical switches by recent advances in Software Defined Networks (SDNs), we define an online problem which we call the Caching in Matchings problem. This problem has a natural combinatorial structure and therefore may find additional applications in theory and practice. In the Caching in Matchings problem our cache consists of $k$ matchings of connections between servers that form a bipartite graph. To cache a connection we insert it into one of the $k$ matchings possibly evicting at most two other connections from this matching. This problem resembles the problem known as Connection Caching, where we also cache connections but our only restriction is that they form a graph with bounded degree $k$. Our results show a somewhat surprising qualitative separation between the problems: The competitive ratio of any online algorithm for caching in matchings must depend on the size of the graph. Specifically, we give a deterministic $O(nk)$ competitive and randomized $O(n \log k)$ competitive algorithms for caching in matchings, where $n$ is the number of servers and $k$ is the number of matchings. We also show that the competitive ratio of any deterministic algorithm is $\Omega(\max(\frac{n}{k},k))$ and of any randomized algorithm is $\Omega(\log \frac{n}{k2 \log k} \cdot \log k)$. In particular, the lower bound for randomized algorithms is $\Omega(\log n)$ regardless of $k$, and can be as high as $\Omega(\log2 n)$ if $k=n{1/3}$, for example. We also show that if we allow the algorithm to use at least $2k-1$ matchings compared to $k$ used by the optimum then we match the competitive ratios of connection catching which are independent of $n$. Interestingly, we also show that even a single extra matching for the algorithm allows to get substantially better bounds.
- An O(logk)𝑂𝑘{O}(\log k)italic_O ( roman_log italic_k )-competitive algorithm for generalized caching. In SODA, pages 1681–1689. SIAM, 2012.
- An O(logk)𝑂𝑘{O}(\log k)italic_O ( roman_log italic_k )-competitive algorithm for generalized caching. ACM Trans. Algorithms, 15(1), 2018.
- Susanne Albers. Generalized connection caching. In ACM SPAA, page 70–78, 2000.
- An online matching model for self-adjusting ToR-to-ToR networks, 2020. arXiv:2006.11148.
- Competitive vertex recoloring. Algorithmica, 85:2001–2027, 2023.
- Randomized competitive algorithms for generalized caching. In STOC, page 235–244, 2008.
- A primal-dual randomized algorithm for weighted paging. J. ACM, 59(4), 2012.
- Dynamic graph coloring. Algorithmica, 81(4):1319–1341, 2019.
- Fully dynamic graph algorithms inspired by distributed computing: Deterministic maximal matching and edge coloring in sublinear update-time. ACM J. Exp. Algorithmics, 24:1–24, 2019.
- Anton Bernshteyn. A fast distributed algorithm for (ΔΔ\Deltaroman_Δ+1)-edge-coloring. Journal of Combinatorial Theory, Series B, 152:319–352, 2022.
- Chasing positive bodies. In FOCS, pages 1694–1714, 2023.
- Dynamic algorithms for graph coloring. In SODA, pages 1–20, 2018.
- Nibbling at long cycles: Dynamic (and static) edge coloring in optimal time. In SODA. SIAM, 2024.
- Online dynamic b-matching: With applications to reconfigurable datacenter networks. SIGMETRICS Perform. Eval. Rev., 48(3), 2021.
- Online Computation and Competitive Analysis. Cambridge University Press, 1998.
- Chasing nested convex bodies nearly optimally. In SODA, pages 1496–1508, 2020.
- Competitive algorithms for restricted caching and matroid caching. In ESA, pages 209–221, 2014.
- The Design of Competitive Online Algorithms via a Primal-Dual Approach. Now Foundations and Trends, 2009.
- Aleksander B. G. Christiansen and Eva Rotenberg. Fully-Dynamic α+2𝛼2\alpha+2italic_α + 2 Arboricity Decompositions and Implicit Colouring. In ICALP, pages 42:1–42:20, 2022.
- Aleksander Bjørn Grodt Christiansen. The power of multi-step vizing chains. In STOC, page 1013–1026, 2023.
- Connection caching under various models of communication. ACM SPAA, 2000.
- Dynamic Edge Coloring with Improved Approximation, pages 1937–1945. SIAM, 2019.
- Jack Edmonds. Maximum matching and a polyhedron with 0,1-vertices. Journal of Research of the National Bureau of Standards Section B Mathematics and Mathematical Physics, page 125, 1965.
- On b𝑏bitalic_b-matching and fully-dynamic maximum k𝑘kitalic_k-edge coloring, 2023. arXiv:2310.01149.
- Online file caching with rejection penalties. Algorithmica, 71(2):279–306, 2015.
- Competitive paging algorithms. Journal of Algorithms, 12(4):685–699, 1991.
- Online companion caching. In ESA, pages 499–511, 2002.
- ProjecToR: Agile reconfigurable data center interconnect. In ACM SIGCOMM, page 216–229, 2016.
- Explicit and implicit dynamic coloring of graphs with bounded arboricity, 2020. arXiv:2002.10142.
- Ian Holyer. The NP-completeness of edge-coloring. SIAM Journal on Computing, 10(4):718–720, 1981.
- J. Misra and David Gries. A constructive proof of Vizing’s theorem. Information Processing Letters, 41(3):131–133, 1992.
- Improved dynamic graph coloring. ACM Trans. Algorithms, 16(3):1–24, 2020.
- Andrew Chi-Chin Yao. Probabilistic computations: Toward a unified measure of complexity. In SFCS, pages 222–227, 1977.
- Neal Young. Competitive paging and dual-guided algorithms for weighted caching and match- ing. PhD thesis, Computer Science Dept., Princeton University, 1991.