- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Fast computation of maximum最大的快速计算
Lecture 4 : Accelerated Cascading and Parallel List Ranking We will first discuss a technique called accelerated cascading for designing very fast parallel algorithms. We will then study a very important technique for ranking the elements of a list in parallel. Fast computation of maximum Input: An array A holding p elements from a linearly ordered universe S. We assume that all the elements in A are distinct. Output: The maximum element from the array A. We use a boolean array M such that M(k)=1 if and only if A(k) is the maximum element in A. Initialization: We allocate p processors to set each entry in M to 1. Fast computation of maximum Step 1: Assign p processors for each element in A, p2 processors overall. Consider the p processors allocated to A(j). We name these processors as P1, P2,..., Pi,..., Pp. Pi compares A(j) with A(i) : If A(i) A(j) then M(j) := 0 else do nothing. Fast computation of maximum Step 2: At the end of Step 1, M(k) , 1 ? k ? p will be 1 if and only if A(k) is the maximum element. We allocate p processors, one for each entry in M. If the entry is 0, the processor does nothing. If the entry is 1, it outputs the index k of the maximum element. Fast computation of maximum Complexity: The processor requirement is p2 and the time complexity is O(1). We need concurrent write facility and hence the Common CRCW PRAM model. Optimal computation of maximum This is the same algorithm which we used for adding n numbers. Optimal computation of maximum This algorithm takes O(n) processors and O(log n) time. We can reduce the processor complexity to O(n / log n). Hence the algorithm does optimal O(n) work. An O(log log n) time algorithm Instead of a binary tree, we use a more complex tree. Assume that . The root of the tree has children. Each node at the i-th level has children for . Each node at level k has two children. An O(log log n) time algorithm Some Properties The depth of the tree i
您可能关注的文档
- Circulating Current – load switch open - Welcome :循环电流–负荷开关开欢迎.ppt
- Click to add title - RESULTS:单击此处添加标题-结果.ppt
- CMOSS2-技术-总体规划-云计算V20091112(节选).ppt
- COMPARING RANDOMIZATION AND A RANDOM RUN …:比较的随机和随机运行….ppt
- Consent forNotice of Full and Individual Evaluation Reevaluation同意fornotice充分和个体评价的再评价.ppt
- Consequential Validity结果效度.ppt
- Consolidating Standards to Enable Economies of Scale巩固标准使规模经济.ppt
- Concepts for implementing adaptive finite element codes :实现自适应有限元程序概念.ppt
- Constant Acceleration Equations - Nuffield Foundation恒定加速度方程纳菲尔德基金会.ppt
- Constant Atmospheric Gases - Heckman'sHomePage大气中的气体- heckman'shomepage常数.ppt
- Family PACT Evaluation Studies - ATMCH家庭协议- atmch评价研究.ppt
- Fall 2008 Dielectric Test Tables Agenda & Presentation2008秋季介电测试表议程&;演讲.ppt
- Fat Containing Lesions of the Brain - AJNR Blog含脂肪的脑病变临床的博客.ppt
- Fatal Accident Rate - 5 year trend致命的事故率- 5年的趋势.ppt
- FASD and Mental Health - FASEout - Fetal Alcohol Spectrum FASD和心理健康faseout -胎儿酒精谱系.ppt
- Fast Buffer Memory with Deterministic Packet Departures:确定数据包离开高速缓冲存储器.ppt
- Fatigue and Recovery疲劳与恢复.ppt
- Father of the X-Ray - Fermi Gamma-ray Space Telescope:的X -父亲的费米伽马射线太空望远镜.ppt
- Fault-Tolerance in VHDL Description Transient-Fault Injection 在VHDL描述的瞬时故障注入容错.ppt
- Fatty Acid Biosynthesis - Texas A&M University:脂肪酸的生物合成-德克萨斯&;M大学.ppt
文档评论(0)