- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Sorting and Searching Timothy J. Purcell Stanford / NVIDIA Topics Sorting Sorting networks Search Binary search Nearest neighbor search Assumptions Data organized into 1D arrays Rendering pass == screen aligned quad Not using vertex shaders PS 2.0 GPU No data dependent branching at fragment level Sorting Sorting Given an unordered list of elements, produce list ordered by key value Kernel: compare and swap GPUs constrained programming environment limits viable algorithms Bitonic merge sort [Batcher 68] Periodic balanced sorting networks [Dowd 89] Bitonic Merge Sort Overview Repeatedly build bitonic lists and then sort them Bitonic list is two monotonic lists concatenated together, one increasing and one decreasing. List A: (3, 4, 7, 8) monotonically increasing List B: (6, 5, 2, 1) monotonically decreasing List AB: (3, 4, 7, 8, 6, 5, 2, 1) bitonic Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Bitonic Merge Sort Summary Separate rendering pass for each set of swaps O(log2n) passes Each pass performs n compare/swaps Total compare/swaps: O(n log2n) Limitations of GPU cost us factor of logn over best CPU-based sorting algorithms Searching Types of Search Search for specific element Binary search Search for nearest element(s) k-nearest neighbor search Both searches require ordered data Binary Search Find a specific element in an ordered list Implement just like CPU algorithm Assuming hardware supports long enough shaders Finds the first element of a given value v If v does not exist, find next smallest element v Search algorithm is sequential, but many searches can be executed in parallel Number of pixels drawn determines number of searches executed in parallel 1 pixel == 1 search Binary Search Search for v0 Binary Search Search for v0 Binary Search Search for
您可能关注的文档
- 2019-2020学年度教育科研工作会.ppt
- 2019年系列讲座课件10PlanningDataAnalysisandCompletingtheDesign.ppt
- 2019年系列讲座课件11.ppt
- 2019年系列讲座课件14.170ProgrammingforEconomists.ppt
- 2019年系列讲座课件14-15May,2002.ppt
- 2019年系列讲座课件15玩出了名堂.ppt
- 2019年系列讲座课件19th-CenturyFictionOverview.ppt
- 2019年系列讲座课件37EGLSuccessStories.ppt
- 2019年系列讲座课件101-1表法人单位基本情况.ppt
- 2019年系列讲座课件FIFASoccerWorldCupDurban,KZNBusinessPlanDr.ppt
- 2019年系列讲座课件StandardReferenceElectrodeStandardHydrogenElectrode.ppt
- 2019年系列讲座课件StatusofEmbeddedLinux&CELFPlenary.ppt
- 2019年系列讲座课件StimulusandResponse.ppt
- 2019年系列讲座课件StudentInternships-ImpactonIndustrialDistributionProgram.ppt
- 2019-2020年PF-E型有机废气活性炭吸附--催化燃烧脱附装置.doc
- 2019-2020年php-购物车完整实现代码.doc
- 2019-2020年PI4-QPSK信号的调制与解调.doc
- 2019-2020年PKPM课程总结论文.doc
- 2019-2020年PLC彩灯亮灭、闪烁时间及流动方向的控制.doc
- 2019-2020年PLC工作台自动往返循环课程设计报告(三菱FX系列)---副本.doc
最近下载
- 面向2025年商业银行的金融科技人才金融科技产品运营能力培养策略.docx
- 【50页PPT】数据治理平台与数据运营体系建设方案.pptx VIP
- E5071B网络分析仪指导书.pdf VIP
- 汽车售后经理年终总结.pptx VIP
- 操作考核标准:简易呼吸气囊.pdf VIP
- 高标准基本农田建设项目竣工验收报告.docx VIP
- 人力资源控制程序.doc VIP
- 2020年美工理论题库4.docx VIP
- 国标图集05s502图集阀门井-国家建筑标准设计图集电子版下载 1.docx VIP
- 第2讲 一心跟着共产党(第一课时)没有共产党就没有新中国(课件)-《学生读本(小学低年级)》.pptx VIP
文档评论(0)