This paper is concerned with the average running time of Batcher's odd-even merge sort when implemented on a collection of processors. We consider the case where the size n of the input is an arbitrary multiple of the number p of processors used. We show that Batcher's odd-even merge (for two sorted lists of length m each) can be implemented to run in time O((m/p)(1 + log(1 + p2/m))) on the average, and that odd-even merge sort can be implemented to run in time O((n/p)(log(n/p)-+-log'p(1 A-log(1 + p2/n)))) on the average. In the case of merging (sorting) the average is taken over all possible outcomes of the merging (all possible permutations of n elements). That means that oddeven merge and odd-even merge sort have an optimal average running time if n≥ p2.
CITATION STYLE
Rüb, C. (1995). On the average running time of odd-even merge sort. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 900, pp. 491–502). Springer Verlag. https://doi.org/10.1007/3-540-59042-0_99
Mendeley helps you to discover research relevant for your work.