ESA 1994: Algorithms — ESA '94 pp 377-390 | Cite as
Desnakification of mesh sorting algorithms
Abstract
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. Uni-axial algorithms have clear practical and theoretical advantages over bi-axial algorithms. We show that 1-1 sorting can be performed in 2 1/2 · n+o(n) steps. Alternatively, this problem is solved with maximal queue size five in 4 1/3 · n steps, without any additional terms. For practically important values of n, this algorithm is much faster than any algorithm with good asymptotical performance. A hot-potato sorting algorithm runs in 5 1/2 · n steps.
Keywords
Queue Size Small Packet Large Packet Sorting Time Sorting ProblemPreview
Unable to display preview. Download preview PDF.
References
- 1.Kaklamanis, C., D. Krizanc, ‘Optimal Sorting on Mesh-Connected Processor Arrays,’ Proc. 4th Symp. on Parallel Algorithms and Architectures, pp. 50–59, ACM, 1992.Google Scholar
- 2.Kaufmann, M., J.F. Sibeyn, ‘Randomized k-k Sorting on Meshes and Tori,’ manuscript, 1992.Google Scholar
- 3.Kaufmann, M., J.F. Sibeyn, T. Suel, ‘Derandomizing Algorithms for Routing and Sorting on Meshes,’ Proc. 5th Symp. on Discrete Algorithms, pp 669–679 ACM-SIAM, 1994.Google Scholar
- 4.Krizanc, D., L. Narayanan, ‘Zero-One Sorting on the Mesh,’ Proc. 5th Symp. on Parallel and Distributed Processing, IEEE, pp. 641–647, 1993.Google Scholar
- 5.Kunde, M., ‘Block Gossiping on Grids and Tori: Deterministic Sorting and Routing Match the Bisection Bound,’ Proc. European Symp. on Algorithms, LNCS 726, pp. 272–283, Springer-Verlag, 1993.Google Scholar
- 6.Newman, I., A. Schuster, ‘Hot-Potato Algorithms for Permutation Routing,’ Proc. ISTCS, June 1993.Google Scholar
- 7.Schnorr, C.P., A. Shamir, ‘An Optimal Sorting Algorithm for Mesh Connected Computers,’ Proc. 18th Symp. on Theory of Comp., pp. 255–263, ACM, 1986.Google Scholar
- 8.Sibeyn, J.F., ‘Desnakification of Mesh Sorting Algorithms,’ Techn. Rep. MPI-I-94-102, revised and extended version, Max-Planck Institut für Informatik, Saarbrücken, Germany, 1994.Google Scholar
- 9.Sibeyn, J.F., B.S. Chlebus, M. Kaufmann, ‘Permutation Routing on Meshes with Small Queues,’ Proc. 19th Mathematical Foundations of Computer Science, LNCS, Springer Verlag, 1994, to appear.Google Scholar