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


Finding the maximum,merging, and sorting in a parallel computation model
Authors:Yossi Shiloach  Uzi Vishkin
Institution:IBM Scientific Center, Technion, Haifa, Israel;Computer Science Department, Technion, Haifa, Israel
Abstract:A model for synchronized parallel computation is described in which all p processors have access to a common memory. This model is used to solve the problems of finding the maximum, merging, and sorting by p processors. The main results are: 1. Finding the maximum of n elements (1 < pn) within a depth of O(np + log logp); (optimal for p ≤ nlog log n). 2. Merging two sorted lists of length m and n (mn) within a depth of O(np + log n) for pn (optimal for p ≤ nlog n), O(logmlogpn) for p ≥ n(= O(k) if p = m1kn, k > 1). 3. Sorting n elements within a depth of O(nplogn + lognlogp) for pn, (optimal for p ≤ nlog n). O(log2nlogpn) + logn) for p ≥ n (= O(k logn) if p = n1+1k, k > 1). The depth of O(klogn) for p = n1+1k processors was also achieved by Hirschberg (Comm. ACM21, No. 8 1978, 657–661) and Preparata IEEE Trans ComputersC-27 (July 1978), 669–673). Our algorithm is substantially simpler. All the elementary operations including allocation of processors to their jobs are taken into account in deriving the depth complexity and not only comparisons.
Keywords:
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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