skip to main content
research-article

Maintaining Triangle Queries under Updates

Published:26 August 2020Publication History
Skip Abstract Section

Abstract

We consider the problem of incrementally maintaining the triangle queries with arbitrary free variables under single-tuple updates to the input relations.

We introduce an approach called IVMϵ that exhibits a trade-off between the update time, the space, and the delay for the enumeration of the query result, such that the update time ranges from the square root to linear in the database size while the delay ranges from constant to linear time.

IVMϵ achieves Pareto worst-case optimality in the update-delay space conditioned on the Online Matrix-Vector Multiplication conjecture. It is strongly Pareto optimal for the triangle queries with no or three free variables and weakly Pareto optimal for the remaining triangle queries with one or two free variables.

IVMϵ recovers prior work such as the suboptimal classical view maintenance approach that uses delta query processing and the worst-case optimal approach that computes all triangles in a static database.

Skip Supplemental Material Section

Supplemental Material

References

  1. Amir Abboud and Virginia Vassilevska Williams. 2014. Popular conjectures imply strong lower bounds for dynamic problems. In Proceedings of the FOCS. 434--443. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Mahmoud Abo Khamis, Hung Q. Ngo, and Atri Rudra. 2016. FAQ: Questions asked frequently. In Proceedings of the PODS. 13--28. DOI:10.1145/2902251.2902280 Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. N. Alon, R. Yuster, and U. Zwick. 1997. Finding and counting given length cycles. Algorithmica 17, 3 (1997), 209--223. DOI:10.1007/BF02523189Google ScholarGoogle ScholarCross RefCross Ref
  4. Ziv Bar-Yossef, Ravi Kumar, and D. Sivakumar. 2002. Reductions in streaming algorithms, with an application to counting triangles in graphs. In Proceedings of the SODA. 623--632. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Luca Becchetti, Paolo Boldi, Carlos Castillo, and Aristides Gionis. 2010. Efficient algorithms for large-scale local triangle counting. Trans. Knowl. Discov. Data 4, 3 (2010), 13:1–13:28. DOI:10.1145/1839490.1839494 Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Christoph Berkholz, Jens Keppeler, and Nicole Schweikardt. 2017. Answering conjunctive queries under updates. In Proceedings of the PODS. 303--318. DOI:10.1145/3034786.3034789 Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Christoph Berkholz, Jens Keppeler, and Nicole Schweikardt. 2018. Answering UCQs under updates and in the presence of integrity constraints. In Proceedings of the ICDT. 8:1–8:19. DOI:10.4230/LIPIcs.ICDT.2018.8Google ScholarGoogle Scholar
  8. Andreas Björklund, Rasmus Pagh, Virginia Vassilevska Williams, and Uri Zwick. 2014. Listing triangles. In Proceedings of the ICALP. 223--234. DOI:10.1007/978-3-662-43948-7_19Google ScholarGoogle ScholarCross RefCross Ref
  9. Laurent Bulteau, Vincent Froese, Konstantin Kutzkov, and Rasmus Pagh. 2016. Triangle counting in dynamic graph streams. Algorithmica 76, 1 (2016), 259--278. DOI:10.1007/s00453-015-0036-4 Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Luciana S. Buriol, Gereon Frahling, Stefano Leonardi, Alberto Marchetti-Spaccamela, and Christian Sohler. 2006. Counting triangles in data streams. In Proceedings of the PODS. 253--262. DOI:10.1145/1142351.1142388 Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Norishige Chiba and Takao Nishizeki. 1985. Arboricity and subgraph listing algorithms. SIAM J. Comput. 14, 1 (1985), 210--223. DOI:10.1137/0214017 Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Rada Chirkova and Jun Yang. 2012. Materialized views. Found. Trends Datab. 4, 4 (2012), 295--405. DOI:10.1561/1900000020 Google ScholarGoogle ScholarCross RefCross Ref
  13. Shumo Chu and James Cheng. 2012. Triangle listing in massive networks. Trans. Knowl. Discov. Data 6, 4 (2012), 17:1–17:32. DOI:10.1145/2382577.2382581 Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Graham Cormode and Hossein Jowhari. 2017. A second look at counting triangles in graph streams (corrected). Theor. Comput. Sci. 683 (2017), 22--30. DOI:10.1016/j.tcs.2016.06.020Google ScholarGoogle ScholarCross RefCross Ref
  15. Shaleen Deep and Paraschos Koutris. 2018. Compressed representations of conjunctive query results. In Proceedings of the PODS. 307--322. DOI:10.1145/3196959.3196979 Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Lech Duraj, Krzysztof Kleiner, Adam Polak, and Virginia Vassilevska Williams. 2020. Equivalences between triangle and range query problems. In Proceedings of the SODA. DOI:10.1137/1.9781611975994.3 Google ScholarGoogle ScholarCross RefCross Ref
  17. Arnaud Durand and Yann Strozecki. 2011. Enumeration complexity of logical query problems with second-order variables. In Proceedings of the CSL. 189--202. DOI:10.4230/LIPIcs.CSL.2011.189Google ScholarGoogle Scholar
  18. Talya Eden, Amit Levi, Dana Ron, and C. Seshadhri. 2015. Approximately counting triangles in sublinear time. In Proceedings of the FOCS. 614--633. DOI:10.1109/FOCS.2015.44 Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Monika Henzinger, Sebastian Krinninger, Danupon Nanongkai, and Thatchaphol Saranurak. 2015. Unifying and strengthening hardness for dynamic problems via the online matrix-vector multiplication conjecture. In Proceedings of the STOC. 21--30. DOI:10.1145/2746539.2746609 Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Muhammad Idris, Martín Ugarte, and Stijn Vansummeren. 2017. The Dynamic Yannakakis algorithm: Compact and efficient query processing under updates. In Proceedings of the SIGMOD. 1259--1274. DOI:10.1145/3035918.3064027 Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Alon Itai and Michael Rodeh. 1978. Finding a minimum circuit in a graph. SIAM J. Comput. 7, 4 (1978), 413--423. DOI:10.1137/0207033Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Hossein Jowhari and Mohammad Ghodsi. 2005. New streaming algorithms for counting triangles in graphs. In Proceedings of the COCOON. 710--716. DOI:10.1007/11533719_72Google ScholarGoogle ScholarCross RefCross Ref
  23. Ahmet Kara, Hung Q. Ngo, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. 2018. Counting triangles under updates in worst-case optimal time. CoRR abs/1804.02780 (2018).Google ScholarGoogle Scholar
  24. Ahmet Kara, Hung Q. Ngo, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. 2019a. Counting triangles under updates in worst-case optimal time. In Proceedings of the ICDT. 4:1–4:18. DOI:10.4230/LIPIcs.ICDT.2019.4Google ScholarGoogle Scholar
  25. Ahmet Kara, Hung Q. Ngo, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. 2020. Maintaining triangle queries under updates. CoRR abs/2004.03716 (2020).Google ScholarGoogle Scholar
  26. Ahmet Kara, Milos Nikolic, Dan Olteanu, and Haozhe Zhang. 2019b. Trade-offs in static and dynamic evaluation of hierarchical queries. CoRR abs/1907.01988 (2019).Google ScholarGoogle Scholar
  27. Christoph Koch, Yanif Ahmad, Oliver Kennedy, Milos Nikolic, Andres Nötzli, Daniel Lupei, and Amir Shaikhha. 2014. DBToaster: Higher-order delta processing for dynamic, frequently fresh views. VLDB J. 23, 2 (2014), 253--278. DOI:10.1007/s00778-013-0348-4Google ScholarGoogle ScholarCross RefCross Ref
  28. Mihail N. Kolountzakis, Gary L. Miller, Richard Peng, and Charalampos E. Tsourakakis. 2012. Efficient triangle counting in large graphs via degree-based vertex partitioning. Internet Math. 8, 1–2 (2012), 161--185. DOI:10.1080/15427951.2012.625260Google ScholarGoogle ScholarCross RefCross Ref
  29. Tsvi Kopelowitz, Seth Pettie, and Ely Porat. 2015. Dynamic set intersection. In Proceedings of the WADS. 470--481. DOI:10.1007/978-3-319-21840-3_39Google ScholarGoogle ScholarCross RefCross Ref
  30. S. Rao Kosaraju and Mihai Pop. 1998. De-amortization of algorithms. In Proceedings of the COCOON. 4--14. DOI:10.1007/3-540-68535-9_4 Google ScholarGoogle ScholarCross RefCross Ref
  31. Paraschos Koutris, Semih Salihoglu, and Dan Suciu. 2018. Algorithmic aspects of parallel data processing. Found. Trends Datab. 8, 4 (2018), 239--370. DOI:10.1561/1900000055 Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. L. H. Loomis and H. Whitney. 1949. An inequality related to the isoperimetric inequality. J. Bull. Amer. Math. Soc. 55, 55 (1949), 961--962. DOI:10.1090/S0002-9904-1949-09320-5Google ScholarGoogle ScholarCross RefCross Ref
  33. Andrew McGregor, Sofya Vorotnikova, and Hoa T. Vu. 2016. Better algorithms for counting triangles in data streams. In Proceedings of the PODS. 401--411. DOI:10.1145/2902251.2902283 Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. Hung Q. Ngo, Ely Porat, Christopher Ré, and Atri Rudra. 2018. Worst-case optimal join algorithms. J. ACM 65, 3 (2018), 16:1–16:40. DOI:10.1145/3180143 Google ScholarGoogle ScholarDigital LibraryDigital Library
  35. Milos Nikolic and Dan Olteanu. 2018. Incremental view maintenance with triple lock factorization benefits. In Proceedings of the SIGMOD. 365--380. DOI:10.1145/3183713.3183758 Google ScholarGoogle ScholarDigital LibraryDigital Library
  36. Mihai Patrascu. 2010. Towards polynomial lower bounds for dynamic problems. In Proceedings of the STOC. 603--610. Google ScholarGoogle ScholarDigital LibraryDigital Library
  37. Thomas Schank and Dorothea Wagner. 2005. Finding, counting and listing all triangles in large graphs, an experimental study. In Proceedings of the WEA. 606--609. DOI:10.1007/11427186_54 Google ScholarGoogle ScholarDigital LibraryDigital Library
  38. Thomas Schwentick and Thomas Zeume. 2016. Dynamic complexity: Recent updates. SIGLOG News 3, 2 (2016), 30--52. DOI:10.1145/2948896.2948899 Google ScholarGoogle ScholarDigital LibraryDigital Library
  39. Charalampos E. Tsourakakis. 2008. Fast counting of triangles in large real networks without counting: Algorithms and laws. In Proceedings of the ICDM. 608--617. DOI:10.1109/ICDM.2008.72 Google ScholarGoogle ScholarDigital LibraryDigital Library
  40. Ryan Williams. 2007. Matrix-vector multiplication in sub-quadratic time: (Some preprocessing required). In Proceedings of the SODA. 995--1001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  41. Virginia Vassilevska Williams. 2018. On some fine-grained questions in algorithms and complexity. In Proceedings of the ICM, Vol. 3. 3431--3472. DOI:10.1142/9789813272880_0188Google ScholarGoogle Scholar
  42. Raphael Yuster and Uri Zwick. 1997. Finding even cycles even faster. SIAM J. Discrete Math. 10, 2 (1997), 209--222. DOI:10.1137/S0895480194274133 Google ScholarGoogle ScholarDigital LibraryDigital Library
  43. Thomas Zeume. 2017. The dynamic descriptive complexity of k-clique. Inf. Comput. 256 (2017), 9--22. DOI:10.1016/j.ic.2017.04.005Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Maintaining Triangle Queries under Updates

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM Transactions on Database Systems
          ACM Transactions on Database Systems  Volume 45, Issue 3
          Best of ICDT 2019 and Regular Papers
          September 2020
          213 pages
          ISSN:0362-5915
          EISSN:1557-4644
          DOI:10.1145/3420008
          Issue’s Table of Contents

          Copyright © 2020 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 26 August 2020
          • Online AM: 7 May 2020
          • Accepted: 1 April 2020
          • Revised: 1 March 2020
          • Received: 1 September 2019
          Published in tods Volume 45, Issue 3

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Research
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format