English

Simplified, stable parallel merging

Distributed, Parallel, and Cluster Computing 2012-07-02 v3 Data Structures and Algorithms

Abstract

This note makes an observation that significantly simplifies a number of previous parallel, two-way merge algorithms based on binary search and sequential merge in parallel. First, it is shown that the additional merge step of distinguished elements as found in previous algorithms is not necessary, thus simplifying the implementation and reducing constant factors. Second, by fixating the requirements to the binary search, the merge algorithm becomes stable, provided that the sequential merge subroutine is stable. The stable, parallel merge algorithm can easily be used to implement a stable, parallel merge sort. For ordered sequences with nn and mm elements, mnm\leq n, the simplified merge algorithm runs in O(n/p+logn)O(n/p+\log n) operations using pp processing elements. It can be implemented on an EREW PRAM, but since it requires only a single synchronization step, it is also a candidate for implementation on other parallel, shared-memory computers.

Keywords

Cite

@article{arxiv.1202.6575,
  title  = {Simplified, stable parallel merging},
  author = {Jesper Larsson Träff},
  journal= {arXiv preprint arXiv:1202.6575},
  year   = {2012}
}
R2 v1 2026-06-21T20:26:58.999Z