Skip to main content
Log in

Optimal Deterministic Sorting and Routing on Grids and Tori with Diagonals

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract.

We present deterministic sorting and routing algorithms for grids and tori with additional diagonal connections. For large loads ( \(h\geq 12\) ), where each processor has at most h data packets in the beginning and in the end, the sorting problem can be solved in optimal hn/6+o(n) and hn/12+o(n) steps for grids and tori with diagonals, respectively. For smaller loads, we present a new concentration technique that yields very fast algorithms for h<12 . For a load of 1, the previously most studied case, sorting only takes 1.2n+o(n) steps and routing only 1.1n+o(n) steps. For tori, we can present optimal algorithms for all loads \(h\geq 1\) . The above algorithms all use a constant-size memory for all processors and never copy or split packets, a property that the corresponding lower bounds make use of.

If packets may be copied, 1—1 sorting can be done in only 2n/3+o(n) on a torus with diagonals.

Generally gaining a speedup of 3 by only doubling the number of communication links compared with a grid without diagonals, our work suggests building grids and tori with diagonals.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received August 18, 1997; revised December 28, 1997.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Kunde, M., Niedermeier, R., Reinhardt, K. et al. Optimal Deterministic Sorting and Routing on Grids and Tori with Diagonals . Algorithmica 25, 438–458 (1999). https://doi.org/10.1007/PL00009288

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/PL00009288

Navigation