使用连接的平行有序集
Parallel Ordered Sets Using Join
摘要:
有序集是理论算法设计和分析以及实际编程中最重要的数据类型之一。本文基于AVL树、红黑树、权平衡树和树四种平衡二叉搜索树,研究了两个有序集上的并、交、差等集合运算。我们只引入了一个子例程Join,需要为每个平衡BST以不同的方式实现,并且在此基础上,我们可以为有序集实现通用,简单和高效的并行函数。我们首先证明了工作效率,这些加入为基础的集函数使用通用的证明工作的所有四种类型的平衡BST。我们还实施和测试我们的算法上的所有四个平衡方案。有趣的是,所有四个数据结构和三个集合函数的实现在时间和加速方面表现相似(在64个核心上超过45倍)。我们还比较了我们的实现其他现有的库和算法的性能。
英文摘要:
The ordered set is one of the most important data type in both theoretical algorithm design and analysis and practical programming. In this paper we study the set operations on two ordered sets, including Union, Intersect and Difference, based on four types of balanced Binary Search Trees (BST) including AVL trees, red-black trees, weight balanced trees and treaps. We introduced only one subroutine Join that needs to be implemented differently for each balanced BST, and on top of which we can implement generic, simple and efficient parallel functions for ordered sets. We first prove the work-efficiency of these Join-based set functions using a generic proof working for all the four types of balanced BSTs. We also implemented and tested our algorithm on all the four balancing schemes. Interestingly the implementations on all four data structures and three set functions perform similarly in time and speedup (more than 45x on 64 cores). We also compare the performance of our implementation to other existing libraries and algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。