Efficient Computation of Quantiles over Joins
Efficient Computation of Quantiles over Joins
复制标题
通过连接高效计算分位数
DOI:
10.1145/3584372.3588670
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Riedewald, Mirek
中科院分区:
文献类型:
--
作者:
Tziavelis, Nikolaos;Carmeli, Nofar;Gatterbauer, Wolfgang;Kimelfeld, Benny;Riedewald, Mirek
We present efficient algorithms for Quantile Join Queries, abbreviated as %JQ. A %JQ asks for the answer at a specified relative position (e.g., 50% for the median) under some ordering over the answers to a Join Query (JQ). Our goal is to avoid materializing the set of all join answers, and to achieve quasilinear time in the size of the database, regardless of the total number of answers. A recent dichotomy result rules out the existence of such an algorithm for a general family of queries and orders. Specifically, for acyclic JQs without self-joins, the problem becomes intractable for ordering by sum whenever we join more than two relations (and these joins are not trivial intersections). Moreover, even for basic ranking functions beyond sum, such as min or max over different attributes, so far it is not known whether there is any nontrivial tractable %JQ.In this work, we develop a new approach to solving %JQ and show how this approach allows not just to recover known results, but also generalize them and resolve open cases. Our solution uses two subroutines: The first one needs to select what we call a "pivot answer". The second subroutine partitions the space of query answers according to this pivot, and continues searching in one partition that is represented as new %JQ over a new database. For pivot selection, we develop an algorithm that works for a large class of ranking functions that are appropriately monotone. The second subroutine requires a customized construction for the specific ranking function at hand.We show the benefit and generality of our approach by using it to establish several new complexity results. First, we prove the tractability of min and max for all acyclic JQs, thereby resolving the above question. Second, we extend the previous %JQ dichotomy for sum to all partial sums (over all subsets of the attributes). Third, we handle the intractable cases of sum by devising a deterministic approximation scheme that applies to every acyclic JQ.
登录
查看更多内容
DOI:
--
发表时间:
2020
期刊:
International Conference on Database Theory
影响因子:
--
作者:
J. Doleschal;Noa Bratman;B. Kimelfeld;W. Martens
通讯作者:
W. Martens
影响因子:
1.1
作者:
Ilya Baran;E. Demaine;M. Patrascu
通讯作者:
M. Patrascu
影响因子:
1.8
作者:
Carmeli, Nofar;Tziavelis, Nikolaos;Gatterbauer, Wolfgang;Kimelfeld, Benny;Riedewald, Mirek
通讯作者:
Riedewald, Mirek
DOI:
10.1137/1.9781611976489.7
发表时间:
2021
期刊:
Symposium on Algorithmic Principles of Computer Systems (APOCS
影响因子:
--
作者:
Abo-Khamis, M.;Im, S.;Moseley, B.;Pruhs, K.;Samadian, A.
通讯作者:
Samadian, A.
DOI:
--
发表时间:
2017
期刊:
International Conference on Database Theory
影响因子:
--
作者:
Mahmoud Abo Khamis;H. Ngo;Dan Olteanu;Dan Suciu
通讯作者:
Dan Suciu