This paper presents a batch-parallel 2-3 tree T in an asynchronous dynamic multithreading model that supports searches, insertions and deletions in sorted batches and has essentially optimal parallelism, even under the restrictive QRMW (queued read-modify-write) memory contention model where concurrent accesses to the same memory location are queued and serviced one by one. Specifically, if T has n items, then performing an item-sorted batch (given as a leaf-based balanced binary tree) of b operations on T takes O( b * log(n/b+1) + b ) work and O( log b + log n ) span (in the worst case as b,n -> inf). This is information-theoretically work-optimal for b <= n, and also span-optimal for pointer-based structures. Moreover, it is easy to support optimal intersection, union and difference of instances of T with sizes m <= n, namely within O( m * log(n/m+1) ) work and O( log m + log n ) span. Furthermore, T supports other batch operations that make it a very useful building block for parallel data structures. To the author's knowledge, T is the first parallel sorted-set data structure that can be used in an asynchronous multi-processor machine under a memory model with queued contention and yet have asymptotically optimal work and span. In fact, T is designed to have bounded contention and satisfy the claimed work and span bounds regardless of the execution schedule. Since all data structures and algorithms in this paper fit into the dynamic multithreading paradigm, all their performance bounds are directly composable with those of other data structures and algorithms in the same model. Finally, the pipelining techniques in this paper are also likely to be very useful in asynchronous parallelization of other recursive data structures.
翻译:本文展示了一个批量单数 2-3 树 T, 在一个不同步的动态多读模式中, 支持在分批批中搜索、 插入和删除, 并且基本上具有最佳的多平行性, 即使在限制性的 QRMW (queued read- modify- write) 内存争议模型下, 将同时访问同一内存位置的功能排成队列, 并用一个 。 具体地说, 如果 T 有 n 项, 然后执行一个项目分解的批( 以叶为基础的平衡双向双向双向双向双向的双向双向双向双向双向导 。 在 O( b * log (n/ b+1) + b) 上, 工作和 O( log b) 双向双向双向双向双向双向双向双向的运行结构中, 其双向的运行模式和双向方向的运行, 正在向的运行、 正在前向、 数据运行、 正在前的运行、 正在前的运行、 数据结构、 正在中, 正在、 正在、 正在、行、 正在、行、行、 正在、行、 正在、 正在、行、行、行、 正在、 正在、 正在、 正在、行、 正在、 正在、 正在、行、行、行、行、 正在、 正在、行、行、行、行、行、 正在、 正在、行、 正在、行、行、 正在、行、行、 正在、行、行、行、行、行、、、行、行、行、、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行、行