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

星中子图计数的次线性时间算法及其在连接选择性估计中的应用

Sublinear-Time Algorithms for Counting Star Subgraphs with Applications to Join Selectivity Estimation

Maryam Aliakbarpour, Amartya Shankha Biswas, Themistoklis Gouleakis, John Peebles, Ronitt Rubinfeld, Anak Yodpinyanee

摘要:

我们研究的问题估计值的形式$S_p \triangleq \sum \binom{x_i}{p}$的总和时,一个有能力的样本$x_i \geq 0$与概率成比例的幅度。当$p=2$,这个问题相当于估计选择性的数据库系统中的自连接查询时,可以随机抽样行。我们还研究了$\{x_i\}$是图的度序列时的特殊情况,这对应于当一个图有能力随机采样边缘时,计算图中$p$ -星的数量。我们的算法的$(1 \pm \varepsilon)$ -乘近似的$S_p$查询和时间复杂度$Ø(\frac{m \log \log n}{ε^2 S_p^{1/p}})$。这里,$m=\sum x_i/2$是图中的边数,或者等价地,是数据库表中记录数的一半。类似地,$n$是图中的顶点数和数据库表中唯一值的数量。我们还提供了严格的下限(多对数因子)在几乎所有情况下,即使$\{x_i\}$是一个度序列,并允许使用图的结构,试图得到一个更好的估计。我们不知道任何先前的下限问题的连接选择性估计。对于图的问题,以前的工作,假设采样能力只有\emph{vertices}一致给出了算法与匹配的下限[戈恩,罗恩,和沙维特。\textit{SIAM J. Comput.},25(2011),pp. 1365-1411]。与随机采样边缘的能力,我们表明,可以实现更快的算法近似的星星子图的数量,绕过在此之前的工作的下限。例如,在$S_p\leq n$和$p=2$的情况下,我们的上限是$\tilde{O}(n/S_p^{1/2})$,而当没有随机边查询时,它们的下限是$Ω(n/S_p^{1/3})$。

英文摘要:

We study the problem of estimating the value of sums of the form $S_p \triangleq \sum \binom{x_i}{p}$ when one has the ability to sample $x_i \geq 0$ with probability proportional to its magnitude. When $p=2$, this problem is equivalent to estimating the selectivity of a self-join query in database systems when one can sample rows randomly. We also study the special case when $\{x_i\}$ is the degree sequence of a graph, which corresponds to counting the number of $p$-stars in a graph when one has the ability to sample edges randomly. Our algorithm for a $(1 \pm \varepsilon)$-multiplicative approximation of $S_p$ has query and time complexities $Ø(\frac{m \log \log n}{ε^2 S_p^{1/p}})$. Here, $m=\sum x_i/2$ is the number of edges in the graph, or equivalently, half the number of records in the database table. Similarly, $n$ is the number of vertices in the graph and the number of unique values in the database table. We also provide tight lower bounds (up to polylogarithmic factors) in almost all cases, even when $\{x_i\}$ is a degree sequence and one is allowed to use the structure of the graph to try to get a better estimate. We are not aware of any prior lower bounds on the problem of join selectivity estimation. For the graph problem, prior work which assumed the ability to sample only \emph{vertices} uniformly gave algorithms with matching lower bounds [Gonen, Ron, and Shavitt. \textit{SIAM J. Comput.}, 25 (2011), pp. 1365-1411]. With the ability to sample edges randomly, we show that one can achieve faster algorithms for approximating the number of star subgraphs, bypassing the lower bounds in this prior work. For example, in the regime where $S_p\leq n$, and $p=2$, our upper bound is $\tilde{O}(n/S_p^{1/2})$, in contrast to their $Ω(n/S_p^{1/3})$ lower bound when no random edge queries are available.

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

↑