skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Efficient implementation of Batcher's odd-even merge algorithm and its application in parallel sorting schemes

Journal Article · · IEEE Trans. Comput.; (United States)

An algorithm is presented to merge two subfiles of size n/2 each, stored in the left and the right halves of a linearly connected processor array, in 3n/2 route steps and log n compare-exchange steps. This algorithm is extended to merge two horizontally adjacent subfiles of size m*n/2 each, stored in an m*n mesh-connected processor array in row-major order, in m+2n route steps and log mn compare-exchange steps. Also an algorithm is presented to merge two vertically aligned subfiles, stored in a mesh-connected processor array in row-major order. Finally, a sorting scheme is proposed that requires 11n route steps and 2 log/sup 2/ n compare-exchange steps to sort n/sup 2/ elements stored in an n*n mesh-connected processor array. The merge algorithms for the mesh-connected processor array use wrap around connections. These connections can be avoided at the expense of some extra hardware. 12 references.

Research Organization:
Rice Univ., Houston, TX (United States)
OSTI ID:
5140174
Journal Information:
IEEE Trans. Comput.; (United States), Vol. 3
Country of Publication:
United States
Language:
English

Similar Records

Two nearly optimal sorting algorithms for mesh-connected processor arrays using shear-sort
Journal Article · Wed Feb 01 00:00:00 EST 1989 · Journal of Parallel and Distributed Computing; (USA) · OSTI ID:5140174

Parallel sorting in two-dimensional VLSI models of computation
Journal Article · Wed Feb 01 00:00:00 EST 1989 · IEEE Trans. Comput.; (United States) · OSTI ID:5140174

Some parallel sorts on a mesh-connected processor array and their time efficiency
Journal Article · Mon Sep 01 00:00:00 EDT 1986 · J. Parallel Distrib. Comput.; (United States) · OSTI ID:5140174