Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
126 tokens/sec
GPT-4o
47 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

On Dynamic Graph Algorithms with Predictions (2307.09961v2)

Published 19 Jul 2023 in cs.DS

Abstract: We study dynamic algorithms in the model of algorithms with predictions. We assume the algorithm is given imperfect predictions regarding future updates, and we ask how such predictions can be used to improve the running time. This can be seen as a model interpolating between classic online and offline dynamic algorithms. Our results give smooth tradeoffs between these two extreme settings. First, we give algorithms for incremental and decremental transitive closure and approximate APSP that take as an additional input a predicted sequence of updates (edge insertions, or edge deletions, respectively). They preprocess it in $\tilde{O}(n{(3+\omega)/2})$ time, and then handle updates in $\tilde{O}(1)$ worst-case time and queries in $\tilde{O}(\eta2)$ worst-case time. Here $\eta$ is an error measure that can be bounded by the maximum difference between the predicted and actual insertion (deletion) time of an edge, i.e., by the $\ell_\infty$-error of the predictions. The second group of results concerns fully dynamic problems with vertex updates, where the algorithm has access to a predicted sequence of the next $n$ updates. We show how to solve fully dynamic triangle detection, maximum matching, single-source reachability, and more, in $O(n{\omega-1}+n\eta_i)$ worst-case update time. Here $\eta_i$ denotes how much earlier the $i$-th update occurs than predicted. Our last result is a reduction that transforms a worst-case incremental algorithm without predictions into a fully dynamic algorithm which is given a predicted deletion time for each element at the time of its insertion. As a consequence we can, e.g., maintain fully dynamic exact APSP with such predictions in $\tilde{O}(n2)$ worst-case vertex insertion time and $\tilde{O}(n2 (1+\eta_i))$ worst-case vertex deletion time (for the prediction error $\eta_i$ defined as above).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (66)
  1. Amir Abboud. Personal communication, 2022.
  2. Online metric algorithms with untrusted predictions. ACM Trans. Algorithms, 19(2):19:1–19:34, 2023. doi:10.1145/3582689.
  3. Fully dynamic all-pairs shortest paths with worst-case update-time revisited. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 440–452. SIAM, 2017.
  4. Flow time scheduling with uncertain processing time. In STOC ’21: 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 1070–1080. ACM, 2021. doi:10.1145/3406325.3451023.
  5. Distortion-oblivious algorithms for minimizing flow time. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, pages 252–274. SIAM, 2022. doi:10.1137/1.9781611977073.13.
  6. Online graph algorithms with predictions. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, pages 35–66. SIAM, 2022. doi:10.1137/1.9781611977073.3.
  7. Popular conjectures imply strong lower bounds for dynamic problems. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, pages 434–443. IEEE Computer Society, 2014. doi:10.1109/FOCS.2014.53.
  8. Aaron Bernstein. Maintaining shortest paths under deletions in weighted directed graphs: [extended abstract]. In Symposium on Theory of Computing Conference, STOC’13, pages 725–734. ACM, 2013. doi:10.1145/2488608.2488701.
  9. Improved decremental algorithms for maintaining transitive closure and all-pairs shortest paths. Journal of Algorithms, 62(2):74–92, 2007. Announced at STOC 2002. doi:10.1016/j.jalgor.2004.08.004.
  10. Fréchet distance under translation: Conditional hardness and an algorithm via offline dynamic grid reachability. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2019), pages 2902–2921. SIAM, 2019. doi:10.1137/1.9781611975482.180.
  11. Bipartite matching in nearly-linear time on moderately dense graphs. In FOCS, pages 919–930. IEEE, 2020.
  12. Learning augmented energy minimization via speed scaling. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, 2020. URL: https://proceedings.neurips.cc/paper/2020/hash/af94ed0d6f5acc95f97170e3685f16c0-Abstract.html.
  13. Dynamic matrix inverse: Improved algorithms and matching conditional lower bounds. In FOCS, pages 456–480. IEEE Computer Society, 2019.
  14. Jan van den Brand. Unifying matrix data structures: Simplifying and speeding up iterative algorithms. In SOSA, pages 1–13. SIAM, 2021.
  15. Fast dynamic cuts, distances and effective resistances via vertex sparsifiers. In 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, pages 1135–1146. IEEE, 2020. doi:10.1109/FOCS46700.2020.00109.
  16. Timothy M Chan. Three problems about dynamic convex hulls. In Proceedings of the twenty-seventh annual symposium on Computational geometry, pages 27–36, 2011.
  17. Maximum flow and minimum-cost flow in almost-linear time. In FOCS, pages 612–623. IEEE, 2022.
  18. Faster fundamental graph algorithms via learned predictions. In International Conference on Machine Learning, ICML 2022, volume 162 of Proceedings of Machine Learning Research, pages 3583–3602. PMLR, 2022. URL: https://proceedings.mlr.press/v162/chen22v.html.
  19. Faster deterministic worst-case fully dynamic all-pairs shortest paths via decremental hop-restricted shortest paths. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 87–99. SIAM, 2023.
  20. Fully dynamic transitive closure: Breaking through the o(n22{}^{\mbox{2}}start_FLOATSUPERSCRIPT 2 end_FLOATSUPERSCRIPT) barrier. In Proceedings of the 41st Annual Symposium on Foundations of Computer Science (FOCS 2000), pages 381–389, 2000. doi:10.1109/SFCS.2000.892126.
  21. Fully dynamic all pairs shortest paths with real edge weights. Journal of Computer and System Sciences, 72(5):813–837, 2006. Announced at FOCS 2001. doi:10.1016/j.jcss.2005.05.005.
  22. Faster matchings via learned duals. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, pages 10393–10406, 2021. URL: https://proceedings.neurips.cc/paper/2021/hash/5616060fb8ae85d93f334e7267307664-Abstract.html.
  23. Fast algorithms for (max, min)-matrix multiplication and bottleneck shortest paths. In Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2009, pages 384–391. SIAM, 2009. doi:10.1137/1.9781611973068.43.
  24. Faster matrix multiplication via asymmetric hashing. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023. IEEE, 2023.
  25. Learning-augmented $k$-means clustering. In The Tenth International Conference on Learning Representations, ICLR 2022. OpenReview.net, 2022. URL: https://openreview.net/forum?id=X8cLTHexYyY.
  26. David Eppstein. Offline algorithms for dynamic minimum spanning tree problems. J. Algorithms, 17(2):237–250, 1994. doi:10.1006/jagm.1994.1033.
  27. On the performance of learned data structures. Theor. Comput. Sci., 871:107–120, 2021. doi:10.1016/j.tcs.2021.04.015.
  28. Approximate cluster recovery from noisy labels. In Conference on Learning Theory, volume 178 of Proceedings of Machine Learning Research, pages 1463–1509. PMLR, 2022. URL: https://proceedings.mlr.press/v178/gamlath22a.html.
  29. Fully-dynamic all-pairs shortest paths: Improved worst-case time and space bounds. In Proceedings of the Fourteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2562–2574. SIAM, 2020.
  30. Unifying and strengthening hardness for dynamic problems via the online matrix-vector multiplication conjecture. In Proceedings of the Forty-Seventh Annual ACM on Symposium on Theory of Computing, STOC 2015, pages 21–30. ACM, 2015. doi:10.1145/2746539.2746609.
  31. On the complexity of algorithms with predictions for dynamic graph problems. arXiv preprint arXiv:2307.16771, 2023.
  32. Temporal networks. Physics reports, 519(3):97–125, 2012.
  33. Learning permutations with exponential weights. J. Mach. Learn. Res., 10:1705–1736, 2009. doi:10.5555/1577069.1755841.
  34. On-line computation of transitive closures of graphs. Information Processing Letters, 16(2):95–97, 1983. doi:10.1016/0020-0190(83)90033-9.
  35. Giuseppe F. Italiano. Amortized efficiency of a path retrieval data structure. Theoretical Computer Science, 48(3):273–281, 1986. doi:10.1016/0304-3975(86)90098-8.
  36. Online algorithms for weighted paging with predictions. ACM Trans. Algorithms, 18(4):39:1–39:27, 2022. doi:10.1145/3548774.
  37. Telikepalli Kavitha. Dynamic matrix rank with partial lookahead. Theory Comput. Syst., 55(1):229–249, 2014.
  38. The case for learned index structures. In Proceedings of the 2018 International Conference on Management of Data, SIGMOD Conference 2018, pages 489–504. ACM, 2018. doi:10.1145/3183713.3196909.
  39. Learning predictions for algorithms with predictions. In NeurIPS, 2022. URL: http://papers.nips.cc/paper_files/paper/2022/hash/17061a94c3c7fda5fa24bbdd1832fa99-Abstract-Conference.html.
  40. Fast and simple connectivity in graph timelines. In Algorithms and Data Structures - 14th International Symposium, WADS 2015, volume 9214 of Lecture Notes in Computer Science, pages 458–469. Springer, 2015. doi:10.1007/978-3-319-21840-3_38.
  41. Jakub Lacki. Improved deterministic algorithms for decremental reachability and strongly connected components. ACM Transactions on Algorithms, 9(3):27:1–27:15, 2013. Announced at SODA 2011. doi:10.1145/2483699.2483707.
  42. Learning augmented binary search trees. In International Conference on Machine Learning, ICML 2022, volume 162 of Proceedings of Machine Learning Research, pages 13431–13440. PMLR, 2022. URL: https://proceedings.mlr.press/v162/lin22f.html.
  43. Algorithms with predictions. https://algorithms-with-predictions.github.io, 2022. Accessed 8 July 2023.
  44. László Lovász. On determinants, matchings, and random algorithms. In FCT, pages 565–574. Akademie-Verlag, Berlin, 1979.
  45. Reachability in graph timelines. In Proceedings of the 4th conference on Innovations in Theoretical Computer Science, pages 257–268, 2013.
  46. The predicted-deletion dynamic model: Taking advantage of ml predictions, for free. arXiv preprint arXiv:2307.08890, 2023.
  47. Competitive caching with machine learned advice. J. ACM, 68(4):24:1–24:25, 2021. doi:10.1145/3447579.
  48. Xiao Mao. Fully-dynamic all-pairs shortest paths: Likely optimal worst-case update time. arXiv preprint arXiv:2306.02662, 2023.
  49. Algorithms with predictions. In Tim Roughgarden, editor, Beyond the Worst-Case Analysis of Algorithms, pages 646–662. Cambridge University Press, 2020. doi:10.1017/9781108637435.037.
  50. Algorithms with predictions. Commun. ACM, 65(7):33–35, 2022. doi:10.1145/3528087.
  51. Matching is as easy as matrix inversion. In STOC, pages 345–354. ACM, 1987.
  52. Improved learning-augmented algorithms for k-means and k-medians clustering. In The Eleventh International Conference on Learning Representations, ICLR 2023. OpenReview.net, 2023. URL: https://openreview.net/pdf?id=dCSFiAl_VO3.
  53. Mihai Pătraşcu. Towards polynomial lower bounds for dynamic problems. In Leonard J. Schulman, editor, Proceedings of the 42nd ACM Symposium on Theory of Computing, STOC 2010, pages 603–610. ACM, 2010. doi:10.1145/1806689.1806772.
  54. Fully-dynamic-to-incremental reductions with known deletion order (eg sliding window). In Symposium on Simplicity in Algorithms (SOSA), pages 261–271. SIAM, 2023.
  55. Improving online algorithms via ML predictions. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, pages 9684–9693, 2018. URL: https://proceedings.neurips.cc/paper/2018/hash/73a427badebe0e32caa2e1fc7530b7f3-Abstract.html.
  56. Optimal offline dynamic 2, 3-edge/vertex connectivity. In Algorithms and Data Structures - 16th International Symposium, WADS 2019, volume 11646 of Lecture Notes in Computer Science, pages 553–565. Springer, 2019. doi:10.1007/978-3-030-24766-9_40.
  57. Johannes A. La Poutré and Jan van Leeuwen. Maintenance of transitive closures and transitive reductions of graphs. In Proceedings of the International Workshop on Graph-Theoretic Concepts in Computer Science Graph-Theoretic Concepts in Computer Science (WG 1987), volume 314, pages 106–120, 1987. doi:10.1007/3-540-19422-3_9.
  58. Improved dynamic reachability algorithms for directed graphs. SIAM Journal on Computing, 37(5):1455–1471, 2008. Announced at FOCS 2002. doi:10.1137/060650271.
  59. On dynamic shortest paths problems. Algorithmica, 61(2):389–401, 2011. Announced at ESA 2004. doi:10.1007/s00453-010-9401-5.
  60. Piotr Sankowski. Dynamic transitive closure via dynamic matrix inverse (extended abstract). In FOCS, pages 509–517. IEEE Computer Society, 2004.
  61. Piotr Sankowski. Faster dynamic matchings and vertex connectivity. In SODA, pages 118–126. SIAM, 2007.
  62. Fast dynamic transitive closure with lookahead. Algorithmica, 56(2):180–197, 2010. doi:10.1007/s00453-008-9166-2.
  63. Mikkel Thorup. Worst-case update times for fully-dynamic all-pairs shortest paths. In Proceedings of the Thirty-Seventh Annual ACM Symposium on Theory of Computing, STOC ’05, page 112–119, New York, NY, USA, 2005. Association for Computing Machinery. doi:10.1145/1060590.1060607.
  64. All-pairs bottleneck paths for general graphs in truly sub-cubic time. In Proceedings of the 39th Annual ACM Symposium on Theory of Computing, pages 585–589. ACM, 2007. doi:10.1145/1250790.1250876.
  65. Max A Woodbury. Inverting modified matrices. Statistical Research Group, 1950.
  66. Subcubic equivalences between path, matrix, and triangle problems. Journal of the ACM, 65(5):27:1–27:38, 2018. Announced at FOCS 2010. doi:10.1145/3186893.
Citations (6)

Summary

We haven't generated a summary for this paper yet.