Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive Queries
Nikolaos Tziavelis, Deepak Ajwani, Wolfgang Gatterbauer, Mirek Riedewald, Xiaofeng Yang
摘要
We study ranked enumeration of join-query results according to very general orders defined by selective dioids. Our main contribution is a framework for ranked enumeration over a class of dynamic programming problems that generalizes seemingly different problems that had been studied in isolation. To this end, we extend classic algorithms that find the k-shortest paths in a weighted graph. For full conjunctive queries, including cyclic ones, our approach is optimal in terms of the time to return the top result and the delay between results. These optimality properties are derived for the widely used notion of data complexity, which treats query size as a constant. By performing a careful cost analysis, we are able to uncover a previously unknown trade-off between two incomparable enumeration approaches: one has lower complexity when the number of returned results is small, the other when the number is very large. We theoretically and empirically demonstrate the superiority of our techniques over batch algorithms, which produce the full result and then sort it. Our technique is not only faster for returning the first few results, but on some inputs beats the batch algorithm even when all results are produced.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
引用它的顶会 Paper10
- Representing Paths in Graph Database Pattern MatchingWim Martens, Matthias Niewerth, Tina Popp, Carlos Rojas 等VLDB 2023 · 32 次引用
- Beyond Equi-joins: Ranking, Enumeration and FactorizationNikolaos Tziavelis, Wolfgang Gatterbauer, Mirek RiedewaldVLDB 2021 · 24 次引用
- Threshold Queries in Theory and in the WildAngela Bonifati, Stefania Dumbrava, George Fletcher, Jan Hidders 等VLDB 2022 · 19 次引用
- Ranked Enumeration of Join Queries with ProjectionsShaleen Deep, Xiao Hu, Paraschos KoutrisVLDB 2022 · 14 次引用
- REmatch: a novel regex engine for finding all matchesCristian Riveros, Nicolás Van Sint Jan, Domagoj VrgocVLDB 2023 · 10 次引用
相关 Paper
- Towards Efficient Random-Order Enumeration for Join QueriesPengyu Chen, Zizheng Guo, Jianwei Yang, Dongjing MiaoVLDB 2026
- Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 次引用
- Weight-Constrained Simple Path Enumeration in Weighted GraphDian Ouyang, Dong Wen, Jianye Yang, Wentao Li 等KDD 2025
- Hop-constrained s-t Simple Path Enumeration: Towards Bridging Theory and PracticeYou Peng, Ying Zhang, Xuemin Lin, Wenjie Zhang 等VLDB 2020 · 11 次引用
- Subquadratic dynamic path reporting in directed graphs against an adaptive adversaryAdam Karczmarz, Anish Mukherjee, Piotr SankowskiSTOC 2022 · 5 次引用
