Row-Major Sorting on Meshes

In all recent near-optimal sorting algorithms for meshes, the packets are sorted with respect to some snake-like indexing. In this paper we present deterministic algorithms for sorting with respect to the more natural row-major indexing. For 1-1 sorting on an n × n mesh, we give an algorithm that runs in 2 · n + o(n) steps, matching the distance bound, with maximal queue size five. It is considerably simpler than earlier algorithms. Another algorithm performs k-k sorting in k · n / 2 + o(k · n) steps, matching the bisection bound. Furthermore, we present uniaxial algorithms for row-major sorting. We show that 1-1 sorting can be performed in $2 \frac{1}{2} · n + o(n) steps. Alternatively, this problem is solved with maximal queue size five in $4 \frac{1}{3} · n steps, without any additional terms.

[1]  Manfred Kunde Block Gossiping on Grids and Tori: Deterministic Sorting and Routing Match the Bisection Bound , 1993, ESA.

[2]  Christos Kaklamanis,et al.  Optimal sorting on mesh-connected processor arrays , 1992, SPAA '92.

[3]  Michael Kaufmann,et al.  Derandomizing algorithms for routing and sorting on meshes , 1994, SODA '94.

[4]  Satish Rao,et al.  Hot-potato routing on processor arrays , 1993, ACM Symposium on Parallelism in Algorithms and Architectures.

[5]  Jop F. Sibeyn,et al.  Desnakification of Mesh Sorting Algorithms , 1994, ESA.

[6]  Fillia Makedon,et al.  A 2n-2 Step Algorithm for Routing in an nxn Array with Constant Size Queues , 1989, SPAA.

[7]  Sanguthevar Rajasekaran k-k Routing, k-k Sorting, and Cut-Through Routing on the Mesh , 1995, J. Algorithms.

[8]  Adi Shamir,et al.  An optimal sorting algorithm for mesh connected computers , 1986, STOC '86.

[9]  P ? ? ? ? ? ? ? % ? ? ? ? , 1991 .

[10]  Fillia Makedon,et al.  A 2n−2 step algorithm for routing in ann ×n array with constant-size queues , 1995, SPAA '89.

[11]  Ulrich Meyer,et al.  Matrix transpose on meshes: theory and practice , 1997, Proceedings 11th International Parallel Processing Symposium.

[12]  Michael Kaufmann,et al.  Deterministic permutation routing on meshes , 1993, Proceedings of 1993 5th IEEE Symposium on Parallel and Distributed Processing.

[13]  Lata Narayanan,et al.  Zero-One Sorting on the Mesh , 1995, Parallel Process. Lett..

[14]  Rüdiger Reischuk Probabilistic Parallel Algorithms for Sorting and Selection , 1985, SIAM J. Comput..

[15]  Assaf Schuster,et al.  Hot Potato Worm Routing via Store-and-Forward Packet Routing , 1995, J. Parallel Distributed Comput..

[16]  Manfred Kunde Concentrated regular data streams on grids: sorting and routing near to the bisection bound , 1991, [1991] Proceedings 32nd Annual Symposium of Foundations of Computer Science.

[17]  Leslie G. Valiant,et al.  A logarithmic time sort for linear size networks , 1982, STOC.

[18]  F. Leighton,et al.  Introduction to Parallel Algorithms and Architectures: Arrays, Trees, Hypercubes , 1991 .

[19]  Ulrich Meyer,et al.  Towards practical permutation routing on meshes , 1994, Proceedings of 1994 6th IEEE Symposium on Parallel and Distributed Processing.

[20]  H. T. Kung,et al.  Sorting on a mesh-connected parallel computer , 1976, STOC '76.

[21]  Uriel Feige,et al.  Exact analysis of hot-potato routing , 1992, Proceedings., 33rd Annual Symposium on Foundations of Computer Science.