Beyond Binary Search: Parallel In-Place Construction of Implicit Search Tree Layouts
Beyond Binary Search: Parallel In-Place Construction of Implicit Search Tree Layouts
复制标题
DOI:
10.1109/tc.2021.3075392
复制
发表时间:
2021-04
影响因子:
3.7
通讯作者:
Kyle Berney;H. Casanova;Ben Karsin;Nodari Sitchinava
中科院分区:
文献类型:
--
作者:
Kyle Berney;H. Casanova;Ben Karsin;Nodari Sitchinava
We present parallel algorithms to efficiently permute a sorted array into the level-order binary search tree (BST), level-order B-tree (B-tree), and van Emde Boas (vEB) layouts in-place. We analytically determine the complexity of our algorithms and empirically measure their performance. When considering the total time to permute the data in-place and to perform a series of search queries, the vEB layout provides the best performance on the CPU. Given an input of $N$N=537 million 64-bit integers, the benefits of query performance (compared to binary search) outweigh the cost of in-place permutation when performing as few as 0.37% of $N$N queries. On the GPU, results depend on the particular architecture, with the B-tree and vEB layouts performing the best. The number of queries necessary to reach the break-even point with binary search ranges from 1.3% to 8.9% of $N$N=1,074 million 32-bit integers.