首页 | 本学科首页   官方微博 | 高级检索  
     


Fast Generation of Random Permutations Via Networks Simulation
Authors:A. Czumaj  P. Kanarek  M. Kutylowski  K. Lorys
Affiliation:(1) Heinz Nixdorf Institute and Department of Mathematics and Computer Science, University of Paderborn, D-33095 Paderborn, Germany. artur@uni-paderborn.de., DE;(2) Institute of Computer Science,University of Wrocl aw, Przesmyckiego 20, PL-51-151 Wrocl aw, Poland. pka@tcs.uni.wroc.pl., PL;(3) Heinz Nixdorf Institute and Department of Mathematics and Computer Science, University of Paderborn, D-33095 Paderborn, Germany. mirekk@uni-paderborn.de., DE;(4) Department of Computer Science,University of Trier, D-54286 Trier, Germany, and Institute of Computer Science,University of Wrocl aw, Przesmyckiego 20, PL-51-151 Wrocl aw, Poland. lorys@tcs.uni.wroc.pl., PL
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. Received November 1996; revised March 1997.
Keywords:. Parallel algorithms   Random permutation   Uniform distribution   Switching networks   Matching   PRAM   CREW   EREW.
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号