Fast generation of random permutations via networks simulation

  • Artur Czumaj
  • Przemysława Kanarek
  • Mirosław Kutyłowski
  • Krzysztof Loryś
Conference paper

DOI: 10.1007/3-540-61680-2_60

Part of the Lecture Notes in Computer Science book series (LNCS, volume 1136)
Cite this paper as:
Czumaj A., Kanarek P., Kutyłowski M., Loryś K. (1996) Fast generation of random permutations via networks simulation. In: Diaz J., Serna M. (eds) Algorithms — ESA '96. ESA 1996. Lecture Notes in Computer Science, vol 1136. Springer, Berlin, Heidelberg

Abstract

We consider the classical problem of generating random permutations with the uniform distribution. That is, we require that for an arbitrary permutation π of n elements, with probability 1/n! the machine halts with the ith output cell containing π(i), for 1≤in. We study this problem on two models of parallel computations: the CREW PRAM and the EREW PRAM.

The main result of the paper is an algorithm for generating random permutations that runs in O(log log n) time and uses O(n1+o(1)) processors on the CREW PRAM. This is the first o(log n)-time CREW PRAM algorithm for this problem.

On the EREW PRAM we present a simple algorithm that generates a random permutation in time O(log n) using n processors and O(n) space. This algorithm matches the running time and the number of processors used of the best previously known algorithms for the CREW PRAM, and performs better as far as the memory usage is considered.

The common and novel feature of both our algorithms is to design first a suitable random network generating a permutation and then to simulate this network on the PRAM model in a fast way.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag 1996

Authors and Affiliations

  • Artur Czumaj
    • 1
  • Przemysława Kanarek
    • 2
  • Mirosław Kutyłowski
    • 1
  • Krzysztof Loryś
    • 2
    • 3
  1. 1.Heinz Nixdorf Institute and Dept. of Mathematics & Computer ScienceUniversity of PaderbornPaderbornGermany
  2. 2.Institute of Computer ScienceUniversity of WrocławWrocławPoland
  3. 3.Department of Computer ScienceUniversity of TrierTrierGermany

Personalised recommendations