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

预处理时间为次线性的近似查询枚举

Towards Approximate Query Enumeration with Sublinear Preprocessing Time

Isolde Adler, Polly Fahey

摘要:

本文的目的是提供非常有效的算法近似查询枚举稀疏数据库,性能和准确性的保证。本文提出了一种新的有界度关系数据库类的近似查询枚举模型。我们首先证明了在有界度的数据库上,任何局部一阶可定义查询在经过一个常数时间的预处理阶段后,都可以近似地以常数延迟被枚举。我们扩展这一点,表明在有界树的宽度和有界度的数据库,每一个查询,是在一阶逻辑表达可以枚举近似恒定延迟后,一个次线性(更准确地说,多对数)时间预处理阶段。Durand和Grandjean(ACM Transactions on Computational Logic 2007)证明了在有限度数据库上的一阶查询的精确枚举可以在线性时间预处理阶段之后以恒定延迟完成。因此,我们在预处理阶段实现了显著的加速。由于次线性运行时间不允许读取整个输入数据库,即使是一次,牺牲一些准确性是不可避免的,我们的速度。然而,我们的枚举算法有保证:以高概率,(1)只有元组被枚举是查询的答案或“接近”是查询的答案,(2)如果元组的比例是查询的答案是足够大的,那么所有的答案将被枚举。在这里,“接近度”的概念是输入数据库中的元组编辑距离。对于本地一阶查询,只枚举实际答案,加强了(1)。此外,(2)中所要求的“接近度”和比例都是可控的。我们结合的方法,从属性测试的有界度图的逻辑和查询枚举,我们相信可以激发进一步的研究。

英文摘要:

This paper aims at providing extremely efficient algorithms for approximate query enumeration on sparse databases, that come with performance and accuracy guarantees. We introduce a new model for approximate query enumeration on classes of relational databases of bounded degree. We first prove that on databases of bounded degree any local first-order definable query can be enumerated approximately with constant delay after a constant time preprocessing phase. We extend this, showing that on databases of bounded tree-width and bounded degree, every query that is expressible in first-order logic can be enumerated approximately with constant delay after a sublinear (more precisely, polylogarithmic) time preprocessing phase. Durand and Grandjean (ACM Transactions on Computational Logic 2007) proved that exact enumeration of first-order queries on databases of bounded degree can be done with constant delay after a linear time preprocessing phase. Hence we achieve a significant speed-up in the preprocessing phase. Since sublinear running time does not allow reading the whole input database even once, sacrificing some accuracy is inevitable for our speed-up. Nevertheless, our enumeration algorithms come with guarantees: With high probability, (1) only tuples are enumerated that are answers to the query or `close' to being answers to the query, and (2) if the proportion of tuples that are answers to the query is sufficiently large, then all answers will be enumerated. Here the notion of `closeness' is a tuple edit distance in the input database. For local first-order queries, only actual answers are enumerated, strengthening (1). Moreover, both the `closeness' and the proportion required in (2) are controllable. We combine methods from property testing of bounded degree graphs with logic and query enumeration, which we believe can inspire further research.

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

↑