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


Fast integer merging on the EREW PRAM
Authors:T Hagerup  M Kutyłowski
Affiliation:1. Max-Planck-Institut für Informatik, Im Stadtwald, D-66123, Saarbrücken, Germany
2. Fachbereich Mathematik-Informatik and Heinz-Nixdorf-Institut, Universit?t-GH Paderborn, D-33095, Paderborn, Germany
Abstract:We investigate the complexity of merging sequences of small integers on the EREW PRAM. Our most surprising result is that two sorted sequences ofn bits each can be merged inO(log logn) time. More generally, we describe an algorithm to merge two sorted sequences ofn integers drawn from the set {0, ...,m?1} inO(log logn+log min{n, m}) time with an optimal time-processor product. No sublogarithmic-time merging algorithm for this model of computation was previously known. On the other hand, we show a lower bound of Ω(log min{n, m}) on the time needed to merge two sorted sequences of lengthn each with elements drawn from the set {0, ...,m?1}, implying that our merging algorithm is as fast as possible form=(logn)Ω(1). If we impose an additional stability condition requiring the elements of each input sequence to appear in the same order in the output sequence, the time complexity of the problem becomes Θ(logn), even form=2. Stable merging is thus harder than nonstable merging.
Keywords:Parallel algorithms  Merging  EREW PRAMs  Lower bounds  Sublogarithmic time
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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