Answering (Unions of) Conjunctive Queries using Random Access and Random-Order Enumeration

枚举 随机排列 计算机科学 排列(音乐) 随机存取 加入 预处理器 订单(交换) 匹配(统计) 组合数学 离散数学 理论计算机科学 数学 块(置换群论) 统计 操作系统 物理 人工智能 经济 程序设计语言 声学 财务
作者
Nofar Carmeli,Shai Zeevi,Christoph Berkholz,Benny Kimelfeld,Nicole Schweikardt
出处
期刊:ACM Transactions on Database Systems [Association for Computing Machinery]
卷期号:47 (3): 1-49
标识
DOI:10.1145/3531055
摘要

As data analytics becomes more crucial to digital systems, so grows the importance of characterizing the database queries that admit a more efficient evaluation. We consider the tractability yardstick of answer enumeration with a polylogarithmic delay after a linear-time preprocessing phase. Such an evaluation is obtained by constructing, in the preprocessing phase, a data structure that supports polylogarithmic-delay enumeration. In this article, we seek a structure that supports the more demanding task of a “random permutation”: polylogarithmic-delay enumeration in truly random order. Enumeration of this kind is required if downstream applications assume that the intermediate results are representative of the whole result set in a statistically meaningful manner. An even more demanding task is that of “random access”: polylogarithmic-time retrieval of an answer whose position is given. We establish that the free-connex acyclic CQs are tractable in all three senses: enumeration, random-order enumeration, and random access; and in the absence of self-joins, it follows from past results that every other CQ is intractable by each of the three (under some fine-grained complexity assumptions). However, the three yardsticks are separated in the case of a union of CQs (UCQ ): while a union of free-connex acyclic CQs has a tractable enumeration, it may (provably) admit no random access. We identify a fragment of such UCQs where we can guarantee random access with polylogarithmic access time (and linear-time preprocessing) and a more general fragment where we can guarantee tractable random permutation. For general unions of free-connex acyclic CQs, we devise two algorithms with relaxed guarantees: one has logarithmic delay in expectation, and the other provides a permutation that is almost uniformly distributed. Finally, we present an implementation and an empirical study that show a considerable practical superiority of our random-order enumeration approach over state-of-the-art alternatives.

科研通智能强力驱动
Strongly Powered by AbleSci AI

祝大家在新的一年里科研腾飞
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
4秒前
5秒前
fufu完成签到 ,获得积分10
6秒前
汉堡包应助小娄娄娄采纳,获得10
6秒前
LucyMartinez完成签到,获得积分10
10秒前
研友_VZG7GZ应助狂野的凡旋采纳,获得10
10秒前
CYJ发布了新的文献求助30
12秒前
13秒前
荔枝吖发布了新的文献求助10
16秒前
静夜谧思发布了新的文献求助10
16秒前
18秒前
19秒前
20秒前
狂野的凡旋完成签到,获得积分20
22秒前
老孙发布了新的文献求助80
22秒前
23秒前
26秒前
CYJ完成签到,获得积分10
28秒前
勤勤恳恳写论文完成签到,获得积分10
28秒前
风趣的凡完成签到 ,获得积分10
29秒前
进取拼搏发布了新的文献求助10
30秒前
静夜谧思完成签到,获得积分10
31秒前
31秒前
九月完成签到,获得积分10
33秒前
yellow完成签到,获得积分10
33秒前
科研通AI2S应助Maestro_S采纳,获得50
34秒前
H1998完成签到,获得积分10
34秒前
lilyy完成签到,获得积分10
34秒前
sally完成签到 ,获得积分10
35秒前
黄嘉仪完成签到 ,获得积分10
35秒前
子期完成签到 ,获得积分10
36秒前
张牧之完成签到 ,获得积分10
38秒前
MM应助科研通管家采纳,获得10
50秒前
Ping应助科研通管家采纳,获得10
50秒前
NexusExplorer应助科研通管家采纳,获得10
50秒前
MM应助科研通管家采纳,获得10
51秒前
51秒前
51秒前
56秒前
爆米花应助che66采纳,获得10
57秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de guyane 2500
Common Foundations of American and East Asian Modernisation: From Alexander Hamilton to Junichero Koizumi 600
Signals, Systems, and Signal Processing 510
Discrete-Time Signals and Systems 510
Using a Non-Equivalent Control Group Design in Educational Research 200
Public Health, Personal Health and Pills: Drug Entanglements and Pharmaceuticalised Governance 200
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5867828
求助须知:如何正确求助?哪些是违规求助? 6436033
关于积分的说明 15657333
捐赠科研通 4983098
什么是DOI,文献DOI怎么找? 2687328
邀请新用户注册赠送积分活动 1630061
关于科研通互助平台的介绍 1588102