Optimal algorithms for ranked enumeration of answers to full conjunctive queries

Author:

Tziavelis Nikolaos1,Ajwani Deepak2,Gatterbauer Wolfgang1,Riedewald Mirek1,Yang Xiaofeng3

Affiliation:

1. Northeastern University

2. University College Dublin, Dublin, Ireland

3. VMware

Abstract

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 tradeoff 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.

Publisher

VLDB Endowment

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Cited by 11 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Improving the Relevance, Speed, and Computational Efficiency of Semantic Search Through Database Indexing: A Review;Search Algorithms - Applications for Pure Science and Industry [Working Title];2023-08-05

2. REmatch: A Novel Regex Engine for Finding All Matches;Proceedings of the VLDB Endowment;2023-07

3. Towards Generating Hop-constrained s-t Simple Path Graphs;Proceedings of the ACM on Management of Data;2023-05-26

4. Tractable Orders for Direct Access to Ranked Answers of Conjunctive Queries;ACM Transactions on Database Systems;2023-03-13

5. Representing Paths in Graph Database Pattern Matching;Proceedings of the VLDB Endowment;2023-03

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3