Skip to main content
Log in

Fast Generation of Random Permutations Via Networks Simulation

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract.

We consider the problem of generating random permutations with uniform distribution. That is, we require that for an arbitrary permutation π of n elements, with probability 1/n! the machine halts with the i th output cell containing π(i) , for 1 ≤ i ≤ n . 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(n 1+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 outperforms each of the previously known algorithms for the exclusive write PRAMs.

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

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 November 1996; revised March 1997.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Czumaj, A., Kanarek, P., Kutylowski, M. et al. Fast Generation of Random Permutations Via Networks Simulation . Algorithmica 21, 2–20 (1998). https://doi.org/10.1007/PL00009206

Download citation

  • Issue Date:

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

Navigation