Computer Science > Databases
[Submitted on 15 Oct 2014 (this version), latest version 26 Jan 2017 (v8)]
Title:GYM: A Multiround Join Algorithm In MapReduce
View PDFAbstract:We study the problem of computing the join of $n$ relations in multiple rounds of MapReduce. We introduce a distributed and generalized version of Yannakakis's algorithm, called GYM. GYM takes as input any generalized hypertree decomposition (GHD) of a query of width $w$ and depth $d$, and computes the query in $O(d)$ rounds and $O(n(\mathrm{IN}^w + \mathrm{OUT}))$ communication and computation cost. Using GYM we achieve two main results: (1) Every width-$w$ query can be computed in $O(n)$ rounds of MapReduce with $O(n(\mathrm{IN}^w + \mathrm{OUT}))$ cost; (2) Every width-$w$ query can be computed in $O(\log(n))$ rounds of MapReduce with $O(n(\mathrm{IN}^{3w} + \mathrm{OUT}))$ cost. We achieve our second result by showing how to construct a $O(\log(n))$-depth and width-$3w$ GHD of a query of width $w$. We describe another general technique to construct even shorter depth GHDs with longer widths, effectively showing a spectrum of tradeoffs one can make between communication and computation and the number of rounds of MapReduce. By simulating MapReduce in the PRAM model, our second main result also implies the result of Gottlob et al.\cite{gottlob:acq} that computing acyclic and constant-width queries are in NC. In fact, for certain queries, our approach yields significantly fewer PRAM steps than does the construction of the latter paper. However, we achieve our results using only Yannakakis's algorithm, which has been perceived to have a sequential nature. Instead, we surprisingly show that Yannakakis's algorithm can be parallelized significantly by giving it as input short-depth GHDs of queries.
Submission history
From: Semih Salihoglu [view email][v1] Wed, 15 Oct 2014 18:25:22 UTC (579 KB)
[v2] Sun, 1 Feb 2015 07:37:45 UTC (459 KB)
[v3] Sun, 25 Oct 2015 21:02:33 UTC (995 KB)
[v4] Sun, 6 Dec 2015 22:46:12 UTC (863 KB)
[v5] Sat, 30 Jul 2016 04:48:02 UTC (1,127 KB)
[v6] Wed, 3 Aug 2016 03:35:45 UTC (1,125 KB)
[v7] Sat, 21 Jan 2017 04:39:07 UTC (1,171 KB)
[v8] Thu, 26 Jan 2017 04:51:19 UTC (1,171 KB)
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
Connected Papers (What is Connected Papers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.