{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T07:46:00Z","timestamp":1792136760219,"version":"4.4.0"},"reference-count":61,"publisher":"Association for Computing Machinery (ACM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2025,6,9]]},"abstract":"<jats:p>\n                    One of the most celebrated results of computing join-aggregate queries defined over commutative semi-rings is the classic Yannakakis algorithm proposed in 1981. It is known that the runtime of the Yannakakis algorithm is O(N + OUT) for any free-connex query, where\n                    <jats:italic toggle=\"yes\">N<\/jats:italic>\n                    is the input size of the database and \u00d8UT is the output size of the query result. This is already output-optimal. However, only an upper bound O(N \u2022 OUT) on the runtime is known for the large remaining class of acyclic but non-free-connex queries. Alternatively, one can convert a non-free-connex query into a free-connex one using tree decomposition techniques and then run the Yannakakis algorithm. This approach takes O(N\n                    <jats:sup>#fn-subw<\/jats:sup>\n                    + OUT) time, where #fn-subw is the\n                    <jats:italic toggle=\"yes\">free-connex sub-modular width<\/jats:italic>\n                    of the query. But, none of these results is known to be output-optimal.\n                  <\/jats:p>\n                  <jats:p>\n                    In this paper, we show a matching lower and upper bound \u0398(N \u2022 OUT\n                    <jats:sup>1 - 1\/(fn-fhtw)<\/jats:sup>\n                    + OUT) for computing general acyclic join-aggregate queries by\n                    <jats:italic toggle=\"yes\">semiring algorithms,<\/jats:italic>\n                    where fn-fhtw is the\n                    <jats:italic toggle=\"yes\">free-connex fractional hypertree width<\/jats:italic>\n                    of the query. For example, fn-fhtw = 1 for free-connex queries, fn-fhtw = 2 for line queries (a.k.a. chain matrix multiplication), and fn-fhtw = k for star queries (a.k.a. star matrix multiplication) with\n                    <jats:italic toggle=\"yes\">k<\/jats:italic>\n                    relations. Although free-connex fractional hypertree width is a natural and well-established measure of how far a join-aggregate query is from being free-connex, we demonstrate that it precisely captures the output-optimal complexity of these queries. To our knowledge, this has been the first polynomial improvement over the Yannakakis algorithm in the last 40 years and completely resolves the open question of computing acyclic join-aggregate queries in an output-optimal way. As a by-product, our output-optimal algorithm for acyclic queries also yields new output-sensitive algorithms for cyclic queries via tree decomposition techniques.\n                  <\/jats:p>","DOI":"10.1145\/3725241","type":"journal-article","created":{"date-parts":[[2025,6,9]],"date-time":"2025-06-09T15:20:31Z","timestamp":1749482431000},"page":"1-27","source":"Crossref","is-referenced-by-count":5,"title":["Output-Optimal Algorithms for Join-Aggregate Queries"],"prefix":"10.1145","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7890-665X","authenticated-orcid":false,"given":"Xiao","family":"Hu","sequence":"first","affiliation":[{"name":"University of Waterloo, Waterloo, ON, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,9]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611977912.167"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.5555\/551350"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2902251.2902280"},{"key":"e_1_2_1_4_1","volume-title":"Proc. International Conference on Database Theory","author":"Afrati F.","year":"2017","unstructured":"F. Afrati, M. Joglekar, C. R\u00e9, S. Salihoglu, and J. D. Ullman. GYM: A multiround join algorithm in MapReduce. In Proc. International Conference on Database Theory, 2017."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/18.825794"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF02523189"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1514894.1514909"},{"key":"e_1_2_1_8_1","series-title":"SIAM Journal on Computing, 42 :1737--1767","volume-title":"Size bounds and query plans for relational joins","author":"Atserias A.","year":"2013","unstructured":"A. Atserias, M. Grohe, and D. Marx. Size bounds and query plans for relational joins. SIAM Journal on Computing, 42 :1737--1767, 2013."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-74915-8_18"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3168804"},{"key":"e_1_2_1_11_1","volume-title":"On the desirability of acyclic database schemes. Journal of the ACM (JACM), 30(3):479--513","author":"Beeri C.","year":"1983","unstructured":"C. Beeri, R. Fagin, D. Maier, and M. Yannakakis. On the desirability of acyclic database schemes. Journal of the ACM (JACM), 30(3):479--513, 1983."},{"key":"e_1_2_1_12_1","volume-title":"Instance-optimal acyclic join processing without regret: Engineering the yannakakis algorithm in column stores. arXiv preprint arXiv:2411.04042","author":"Bekkers L.","year":"2024","unstructured":"L. Bekkers, F. Neven, S. Vansummeren, and Y. R. Wang. Instance-optimal acyclic join processing without regret: Engineering the yannakakis algorithm in column stores. arXiv preprint arXiv:2411.04042, 2024."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.14778\/3681954.3681995"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-43948-7_19"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2013.07.003"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/3294052.3319700"},{"key":"e_1_2_1_17_1","first-page":"37","volume-title":"51st International Colloquium on Automata, Languages, and Programming","author":"Censor-Hillel K.","year":"2024","unstructured":"K. Censor-Hillel, T. Even, and V. Vassilevska Williams. Fast approximate counting of cycles. In 51st International Colloquium on Automata, Languages, and Programming, pages 37--1. Schloss Dagstuhl--Leibniz-Zentrum f\u00fcr Informatik, 2024."},{"key":"e_1_2_1_18_1","volume-title":"Listing cliques from smaller cliques. arXiv preprint arXiv:2307.15871","author":"Dalirrooyfard M.","year":"2023","unstructured":"M. Dalirrooyfard, S. Mathialagan, V. V. Williams, and Y. Xu. Listing cliques from smaller cliques. arXiv preprint arXiv:2307.15871, 2023."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3618260.3649663"},{"key":"e_1_2_1_20_1","volume-title":"Bucket elimination: A unifying framework for reasoning. Artificial Intelligence, 113(1--2):41--85","author":"Dechter R.","year":"1999","unstructured":"R. Dechter. Bucket elimination: A unifying framework for reasoning. Artificial Intelligence, 113(1--2):41--85, 1999."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3380607"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3695838"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1109\/TC.1973.5009182"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1265530.1265535"},{"key":"e_1_2_1_25_1","volume-title":"Algorithmic results in list decoding. Foundations and Trends\u00ae in Theoretical Computer Science, 2 :107--195","author":"V. Guruswami","year":"2007","unstructured":"V. Guruswami et al. Algorithmic results in list decoding. Foundations and Trends\u00ae in Theoretical Computer Science, 2 :107--195, 2007."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3452021.3458319"},{"key":"e_1_2_1_27_1","volume-title":"Output-optimal algorithms for join-aggregate queries. arXiv preprint arXiv:2406.05536","author":"Hu X.","year":"2024","unstructured":"X. Hu. Output-optimal algorithms for join-aggregate queries. arXiv preprint arXiv:2406.05536, 2024."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3651599"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3589298"},{"key":"e_1_2_1_30_1","volume-title":"Output-optimal massively parallel algorithms for similarity joins. ACM Transactions on Database Systems (TODS), 44(2):6","author":"Hu X.","year":"2019","unstructured":"X. Hu, K. Yi, and Y. Tao. Output-optimal massively parallel algorithms for similarity joins. ACM Transactions on Database Systems (TODS), 44(2):6, 2019."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.14778\/3547305.3547326"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3035918.3064027"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611977936.3"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611978322.6"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2902251.2902293"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3034786.3056105"},{"key":"e_1_2_1_37_1","volume-title":"Functional aggregate queries with additive inequalities. ACM Transactions on Database Systems (TODS), 45(4):1--41","author":"Khamis M. A.","year":"2020","unstructured":"M. A. Khamis, R. R. Curtin, B. Moseley, H. Q. Ngo, X. Nguyen, D. Olteanu, and M. Schleich. Functional aggregate queries with additive inequalities. ACM Transactions on Database Systems (TODS), 45(4):1--41, 2020."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2008.03.003"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3654959"},{"key":"e_1_2_1_40_1","volume-title":"Journal of the ACM (JACM), 60(6):1--51","author":"Marx D.","year":"2013","unstructured":"D. Marx. Tractable hypergraph properties for constraint satisfaction and conjunctive queries. Journal of the ACM (JACM), 60(6):1--51, 2013."},{"key":"e_1_2_1_41_1","volume-title":"Randomized algorithms. ACM Computing Surveys (CSUR), 28(1):33--37","author":"Motwani R.","year":"1996","unstructured":"R. Motwani and P. Raghavan. Randomized algorithms. ACM Computing Surveys (CSUR), 28(1):33--37, 1996."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3196959.3196990"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2213556.2213565"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2590989.2590991"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.5555\/2117688.2118853"},{"key":"e_1_2_1_46_1","volume-title":"Size bounds for factorised representations of query results. ACM Transactions on Database Systems (TODS), 40(1):1--44","author":"Olteanu D.","year":"2015","unstructured":"D. Olteanu and J. Z\u00e1vodny. Size bounds for factorised representations of query results. ACM Transactions on Database Systems (TODS), 40(1):1--44, 2015."},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594538.2594552"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44777-2_62"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/1806689.1806772"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2882939"},{"key":"e_1_2_1_51_1","volume-title":"Morgan & Claypool","author":"Suciu D.","year":"2011","unstructured":"D. Suciu, D. Olteanu, C. R\u00e9, and C. Koch. Probabilistic databases, synthesis lectures on data management. Morgan & Claypool, 2011."},{"key":"e_1_2_1_52_1","first-page":"107","volume-title":"49th International Colloquium on Automata, Languages, and Programming (ICALP 2022","author":"Tetek J.","year":"2022","unstructured":"J. Tetek. Approximate triangle counting via sampling and fast matrix multiplication. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), pages 107--1. Schloss Dagstuhl--Leibniz-Zentrum f\u00fcr Informatik, 2022."},{"key":"e_1_2_1_53_1","volume-title":"Proc. International Conference on Database Theory","author":"Veldhuizen T. L.","year":"2014","unstructured":"T. L. Veldhuizen. Leapfrog triejoin: A simple, worst-case optimal join algorithm. In Proc. International Conference on Database Theory, 2014."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3517830"},{"key":"e_1_2_1_55_1","volume-title":"Change propagation without joins. arXiv preprint arXiv:2301.04003","author":"Wang Q.","year":"2023","unstructured":"Q. Wang, X. Hu, B. Dai, and K. Yi. Change propagation without joins. arXiv preprint arXiv:2301.04003, 2023."},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3452808"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/3517804.3524142"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611977912.134"},{"key":"e_1_2_1_59_1","volume-title":"Predicate transfer: Efficient pre-filtering on multi-join queries. arXiv preprint arXiv:2307.15255","author":"Yang Y.","year":"2023","unstructured":"Y. Yang, H. Zhao, X. Yu, and P. Koutris. Predicate transfer: Efficient pre-filtering on multi-join queries. arXiv preprint arXiv:2307.15255, 2023."},{"key":"e_1_2_1_60_1","first-page":"82","volume-title":"Proc. International Conference on Very Large Data Bases","author":"Yannakakis M.","year":"1981","unstructured":"M. Yannakakis. Algorithms for acyclic database schemes. In Proc. International Conference on Very Large Data Bases, pages 82--94, 1981."},{"key":"e_1_2_1_61_1","volume-title":"Debunking the myth of join ordering: Toward robust sql analytics. arXiv preprint arXiv:2502.15181","author":"Zhao J.","year":"2025","unstructured":"J. Zhao, K. Su, Y. Yang, X. Yu, P. Koutris, and H. Zhang. Debunking the myth of join ordering: Toward robust sql analytics. arXiv preprint arXiv:2502.15181, 2025."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3725241","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,22]],"date-time":"2025-08-22T23:18:08Z","timestamp":1755904688000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3725241"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,9]]},"references-count":61,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2025,6,9]]}},"alternative-id":["10.1145\/3725241"],"URL":"https:\/\/doi.org\/10.1145\/3725241","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,9]]}}}