English

A Randomised Approach to Distributed Sorting

Data Structures and Algorithms 2025-02-10 v1 Distributed, Parallel, and Cluster Computing Discrete Mathematics Probability

Abstract

We introduce and analyse a new, extremely simple, randomised sorting algorithm: - choose a pair of indices {i,j}\{i, j\} according to some distribution qq; - sort the elements in positions ii and jj of the array in ascending order. Choosing q{i,j}1/jiq_{\{i,j\}} \propto 1/|j - i| yields an order-n(logn)2n (\log n)^2 sorting time. We call it the harmonic sorter. The sorter trivially parallelises in the asynchronous setting, yielding a linear speed-up. We also exhibit a low-communication, synchronous version with a linear speed-up. We compare and contrast this algorithm with other sorters, and discuss some of its benefits, particularly its robustness and amenability to parallelisation and distributed computing.

Keywords

Cite

@article{arxiv.2502.05082,
  title  = {A Randomised Approach to Distributed Sorting},
  author = {Sam Olesker-Taylor},
  journal= {arXiv preprint arXiv:2502.05082},
  year   = {2025}
}

Comments

21 pages: 18 body + 3 appendix