在PRAM模型中以常数时间实现高效查询评估
Work-Efficient Query Evaluation in Constant Time with PRAMs
AI总结:
本文研究了在CRCW PRAM模型中并行常数时间查询评估的效率,探讨了关系运算符的算法,并在特定条件下提出了高效序列查询算法。
摘要:
本文研究了在CRCW PRAM模型中并行常数时间查询评估的问题。尽管已知所有关系代数查询都可以在适当的CRCW PRAM模型上以常数时间评估,但本文关注评估算法的效率,即处理器数量或等效的工作量。并行设置下的朴素评估会导致工作量呈多项式增长,并且结果集的存储可能极为分散。本文讨论了常数时间PRAM查询评估的一些障碍,并提出了关系运算符的算法,探讨了三种设置,在这些设置中存在高效的序列查询算法:无环查询、半连接代数查询和连接查询(后者在最坏情况最优框架下)。在温和的假设下——即数据值的大小是数据库大小的多项式规模,或数据库的关系已适当排序——本文提出了常数时间算法,这些算法在弱意义上是高效的工作量,即可以实现工作量O(T^{1+ε}),对于每个ε>0,与最优序列算法的时间T相比。重要的工具是Goldberg和Zwick(1995)提出的近似前缀和和压缩算法。
英文摘要:
The article studies query evaluation in parallel constant time in the CRCW PRAM model. While it is well-known that all relational algebra queries can be evaluated in constant time on an appropriate CRCW PRAM model, this article is interested in the efficiency of evaluation algorithms, that is, in the number of processors or, asymptotically equivalent, in the work. Naive evaluation in the parallel setting results in huge (polynomial) bounds on the work of such algorithms and in presentations of the result sets that can be extremely scattered in memory. The article discusses some obstacles for constant-time PRAM query evaluation. It presents algorithms for relational operators and explores three settings, in which efficient sequential query evaluation algorithms exist: acyclic queries, semijoin algebra queries, and join queries -- the latter in the worst-case optimal framework. Under mild assumptions -- that data values are numbers of polynomial size in the size of the database or that the relations of the database are suitably sorted -- constant-time algorithms are presented that are weakly work-efficient in the sense that work $\mathcal{O}(T^{1+\varepsilon})$ can be achieved, for every $\varepsilon>0$, compared to the time $T$ of an optimal sequential algorithm. Important tools are the algorithms for approximate prefix sums and compaction from Goldberg and Zwick (1995).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。