arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.10889cs.DScs.DB
收藏

通过关系查询实现一般时空权衡

General Space-Time Tradeoffs via Relational Queries

Shaleen Deep, Xiao Hu, Paraschos Koutris

AI总结:

本文利用关系代数和连接查询框架统一研究布尔合取查询的时空权衡,提出通用算法恢复并改进多个问题的权衡,否定两个已有下界猜想,并证明星形与路径查询的新条件时空下界。

摘要:

本文研究回答布尔合取查询的时空权衡问题。目标是在初始预处理阶段创建一个数据结构,并用它来回答(多个)查询。以往的工作已经开发出在空间使用和回答时间之间进行权衡的数据结构,并针对路径查询和三角形查询等具有实际意义的查询证明了条件空间下界。然而,这些结果大多只适用于这些特定查询,缺乏一个全面的框架,并且不可推广。对这些查询的孤立处理也未能利用数据库社区内相关问题的广泛研究之间的联系。本文的关键见解是利用关系代数的形式化方法,将这些问题转化为在关系数据库上回答连接查询。利用布尔装饰查询和访问模式的概念,我们提出了一个统一的框架,该框架涵盖了许多被广泛研究的算法问题。我们的主要贡献有三个方面。首先,我们提出了一种算法,能够恢复若干问题现有的时空权衡。该算法基于连接大小界限的应用来刻画我们数据结构的空间使用情况。我们将数据结构与查询分解技术相结合,进一步改进了权衡,并表明它可以很容易地扩展到带否定的查询。其次,我们否定了现有文献中关于路径查询和三角形检测的时空下界的两个猜想,并针对它们给出了出乎意料更好的算法。这一结果为改进许多迄今被认为(在条件意义下)最优的算法结果开辟了新途径。最后,我们证明了星形查询和路径查询的新条件时空下界。

英文摘要:

In this paper, we investigate space-time tradeoffs for answering Boolean conjunctive queries. The goal is to create a data structure in an initial preprocessing phase and use it for answering (multiple) queries. Previous work has developed data structures that trade off space usage for answering time and has proved conditional space lower bounds for queries of practical interest such as the path and triangle query. However, most of these results cater to only those queries, lack a comprehensive framework, and are not generalizable. The isolated treatment of these queries also fails to utilize the connections with extensive research on related problems within the database community. The key insight in this work is to exploit the formalism of relational algebra by casting the problems as answering join queries over a relational database. Using the notion of boolean {\em adorned queries} and {\em access patterns}, we propose a unified framework that captures several widely studied algorithmic problems. Our main contribution is three-fold. First, we present an algorithm that recovers existing space-time tradeoffs for several problems. The algorithm is based on an application of the {\em join size bound} to capture the space usage of our data structure. We combine our data structure with {\em query decomposition} techniques to further improve the tradeoffs and show that it is readily extensible to queries with negation. Second, we falsify two proposed conjectures in the existing literature related to the space-time lower bound for path queries and triangle detection for which we show unexpectedly better algorithms. This result opens a new avenue for improving several algorithmic results that have so far been assumed to be (conditionally) optimal. Finally, we prove new conditional space-time lower bounds for star and path queries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑