Parallel Acyclic Joins: Optimal Algorithms and Cyclicity Separation

IF 2.3 2区 计算机科学 Q2 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE Journal of the ACM Pub Date : 2023-12-01 DOI:10.1145/3633512
Xiao Hu, Yufei Tao
{"title":"Parallel Acyclic Joins: Optimal Algorithms and Cyclicity Separation","authors":"Xiao Hu, Yufei Tao","doi":"10.1145/3633512","DOIUrl":null,"url":null,"abstract":"<p>We study equi-join computation in the massively parallel computation (MPC) model. Currently, a main open question under this topic is whether it is possible to design an algorithm that can process any join with load \\(O(N {\\rm {polylog}} N / p^{1/\\rho ^*}) \\) — measured in the number of words communicated per machine — where <i>N</i> is the total number of tuples in the input relations, <i>ρ</i><sup>*</sup> is the join’s fractional edge covering number, and <i>p</i> is the number of machines. We settle the question in the <i>negative</i> for the class of tuple-based algorithms (all the known MPC join algorithms fall in this class) by proving the existence of a join query with <i>ρ</i><sup>*</sup> = 2 that requires a load of <i>Ω</i>(<i>N</i>/<i>p</i><sup>1/3</sup>) to evaluate. Our lower bound provides solid evidence that the “AGM bound” alone is not sufficient for characterizing the hardness of join evaluation in MPC (a phenomenon that does not exist in RAM). The hard join instance identified in our argument is cyclic, which leaves the question of whether \\(O(N {\\rm {polylog}} N / p^{1/\\rho ^*}) \\) is still possible for acyclic joins. We answer this question in the <i>affirmative</i> by showing that any acyclic join can be evaluated with load \\(O(N / p^{1/\\rho ^*}) \\), which is asymptotically optimal (there are no polylogarithmic factors in our bound). The separation between cyclic and acyclic joins is yet another phenomenon that is absent in RAM. Our algorithm owes to the discovery of a new mathematical structure — we call “canonical edge cover” — of acyclic hypergraphs, which has numerous non-trivial properties and makes an elegant addition to database theory.</p>","PeriodicalId":50022,"journal":{"name":"Journal of the ACM","volume":"59 12","pages":""},"PeriodicalIF":2.3000,"publicationDate":"2023-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of the ACM","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1145/3633512","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

Abstract

We study equi-join computation in the massively parallel computation (MPC) model. Currently, a main open question under this topic is whether it is possible to design an algorithm that can process any join with load \(O(N {\rm {polylog}} N / p^{1/\rho ^*}) \) — measured in the number of words communicated per machine — where N is the total number of tuples in the input relations, ρ* is the join’s fractional edge covering number, and p is the number of machines. We settle the question in the negative for the class of tuple-based algorithms (all the known MPC join algorithms fall in this class) by proving the existence of a join query with ρ* = 2 that requires a load of Ω(N/p1/3) to evaluate. Our lower bound provides solid evidence that the “AGM bound” alone is not sufficient for characterizing the hardness of join evaluation in MPC (a phenomenon that does not exist in RAM). The hard join instance identified in our argument is cyclic, which leaves the question of whether \(O(N {\rm {polylog}} N / p^{1/\rho ^*}) \) is still possible for acyclic joins. We answer this question in the affirmative by showing that any acyclic join can be evaluated with load \(O(N / p^{1/\rho ^*}) \), which is asymptotically optimal (there are no polylogarithmic factors in our bound). The separation between cyclic and acyclic joins is yet another phenomenon that is absent in RAM. Our algorithm owes to the discovery of a new mathematical structure — we call “canonical edge cover” — of acyclic hypergraphs, which has numerous non-trivial properties and makes an elegant addition to database theory.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
并行无环连接:最优算法和环分离
研究了大规模并行计算(MPC)模型中的等联接计算。目前,该主题下的一个主要开放问题是是否有可能设计一种算法,可以处理负载\(O(N {\rm {polylog}} N / p^{1/\rho ^*}) \)的任何连接-以每台机器通信的单词数量来衡量-其中N是输入关系中元组的总数,ρ*是连接的分数边覆盖数,p是机器的数量。我们通过证明具有ρ* = 2的连接查询的存在性来解决基于元组的算法类(所有已知的MPC连接算法都属于该类)的否定问题,该查询需要Ω(N/p1/3)的负载来评估。我们的下界提供了确凿的证据,表明单独的“AGM界”不足以表征MPC中连接评估的硬度(RAM中不存在这种现象)。在我们的参数中标识的硬连接实例是循环的,这就留下了一个问题,即\(O(N {\rm {polylog}} N / p^{1/\rho ^*}) \)是否仍然可能用于非循环连接。我们肯定地回答了这个问题,表明任何无环连接都可以用负载\(O(N / p^{1/\rho ^*}) \)进行评估,这是渐近最优的(在我们的界中没有多对数因子)。循环连接和非循环连接之间的分离是RAM中不存在的另一种现象。我们的算法归功于发现了一种新的非循环超图的数学结构——我们称之为“规范边缘覆盖”,它具有许多非平凡的属性,并为数据库理论提供了一个优雅的补充。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Journal of the ACM
Journal of the ACM 工程技术-计算机:理论方法
CiteScore
7.50
自引率
0.00%
发文量
51
审稿时长
3 months
期刊介绍: The best indicator of the scope of the journal is provided by the areas covered by its Editorial Board. These areas change from time to time, as the field evolves. The following areas are currently covered by a member of the Editorial Board: Algorithms and Combinatorial Optimization; Algorithms and Data Structures; Algorithms, Combinatorial Optimization, and Games; Artificial Intelligence; Complexity Theory; Computational Biology; Computational Geometry; Computer Graphics and Computer Vision; Computer-Aided Verification; Cryptography and Security; Cyber-Physical, Embedded, and Real-Time Systems; Database Systems and Theory; Distributed Computing; Economics and Computation; Information Theory; Logic and Computation; Logic, Algorithms, and Complexity; Machine Learning and Computational Learning Theory; Networking; Parallel Computing and Architecture; Programming Languages; Quantum Computing; Randomized Algorithms and Probabilistic Analysis of Algorithms; Scientific Computing and High Performance Computing; Software Engineering; Web Algorithms and Data Mining
期刊最新文献
Query lower bounds for log-concave sampling Transaction Fee Mechanism Design Sparse Higher Order Čech Filtrations Killing a Vortex Separations in Proof Complexity and TFNP
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1