Perfectly load-balanced, stable, synchronization-free parallel merge

From MaRDI portal
Publication:3458205

DOI10.1142/S0129626414500054zbMATH Open1327.68328arXiv1303.4312OpenAlexW1971297816MaRDI QIDQ3458205FDOQ3458205


Authors: Christian Siebert, Jesper Larsson Träff Edit this on Wikidata


Publication date: 18 December 2015

Published in: Parallel Processing Letters (Search for Journal in Brave)

Abstract: We present a simple, work-optimal and synchronization-free solution to the problem of stably merging in parallel two given, ordered arrays of m and n elements into an ordered array of m+n elements. The main contribution is a new, simple, fast and direct algorithm that determines, for any prefix of the stably merged output sequence, the exact prefixes of each of the two input sequences needed to produce this output prefix. More precisely, for any given index (rank) in the resulting, but not yet constructed output array representing an output prefix, the algorithm computes the indices (co-ranks) in each of the two input arrays representing the required input prefixes without having to merge the input arrays. The co-ranking algorithm takes O(log min(m,n)) time steps. The algorithm is used to devise a perfectly load-balanced, stable, parallel merge algorithm where each of p processing elements has exactly the same number of input elements to merge. Compared to other approaches to the parallel merge problem, our algorithm is considerably simpler and can be faster up to a factor of two. Compared to previous algorithms for solving the co-ranking problem, the algorithm given here is direct and maintains stability in the presence of repeated elements at no extra space or time cost. When the number of processing elements p does not exceed (m+n)/log min(m,n), the parallel merge algorithm has optimal speedup. It is easy to implement on both shared and distributed memory parallel systems.


Full work available at URL: https://arxiv.org/abs/1303.4312




Recommendations




Cites Work


Cited In (3)





This page was built for publication: Perfectly load-balanced, stable, synchronization-free parallel merge

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3458205)