arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.09717cs.DB
收藏

非循环连接的实例和输出最优并行算法

Instance and Output Optimal Parallel Algorithms for Acyclic Joins

Xiao Hu, Ke Yi

摘要:

大规模并行连接算法近年来受到了广泛的关注,而大多数先前的工作集中在最差最优算法。然而,这些连接算法的最坏情况下的最优性依赖于具有非常大的输出大小的硬实例,这在实践中很少出现。最优性的一个更强的概念是{ \em output-optimal},它要求算法在共享相同输入和输出大小的所有实例的类中是最优的。更强的最优性是{ \em实例最优},即,该算法在每一个实例上都是最优的,但是这并不总是可以实现的。在传统的RAM计算模型中,经典的Yannakakis算法在任何非循环连接上都是实例最优的。但在大规模并行计算(MPC)模型中,情况变得更加复杂。我们首先表明,类的r-层次连接,实例最优仍然可以实现MPC模型。然后,我们给出了一个新的MPC算法的任意非循环连接负载$O ({\IN \over p} + {\sqrt{\IN \cdot \OUT} \over p})$,其中$\IN,\OUT$是输入和输出的连接大小,和$p$是MPC模型中的服务器的数量。这通过$O (\sqrt{\OUT \over \IN} )$因子改进了Yannakakis算法的MPC版本。此外,我们还证明,对于每个非循环但非r层次连接,当使用$\OUT = O(p \cdot \IN)$时,这是输出最优的。最后,我们给出了MPC模型中三角连接的第一个输出敏感下界,表明它本质上比非循环连接更困难。

英文摘要:

Massively parallel join algorithms have received much attention in recent years, while most prior work has focused on worst-optimal algorithms. However, the worst-case optimality of these join algorithms relies on hard instances having very large output sizes, which rarely appear in practice. A stronger notion of optimality is {\em output-optimal}, which requires an algorithm to be optimal within the class of all instances sharing the same input and output size. An even stronger optimality is {\em instance-optimal}, i.e., the algorithm is optimal on every single instance, but this may not always be achievable. In the traditional RAM model of computation, the classical Yannakakis algorithm is instance-optimal on any acyclic join. But in the massively parallel computation (MPC) model, the situation becomes much more complicated. We first show that for the class of r-hierarchical joins, instance-optimality can still be achieved in the MPC model. Then, we give a new MPC algorithm for an arbitrary acyclic join with load $O ({\IN \over p} + {\sqrt{\IN \cdot \OUT} \over p})$, where $\IN,\OUT$ are the input and output sizes of the join, and $p$ is the number of servers in the MPC model. This improves the MPC version of the Yannakakis algorithm by an $O (\sqrt{\OUT \over \IN} )$ factor. Furthermore, we show that this is output-optimal when $\OUT = O(p \cdot \IN)$, for every acyclic but non-r-hierarchical join. Finally, we give the first output-sensitive lower bound for the triangle join in the MPC model, showing that it is inherently more difficult than acyclic joins.

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

↑