- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Data Structure and Algorithm Analysis06 Priority Queue:数据结构与算法analysis06优先队列
* 02 Priority Queues (Heaps) 6.1 Model 6.2 Simple Implementations 6.3 Binary Heap 6.4 Applications of Priority Queues 6.5 d-Heaps 6.6 Leftist Heaps 6.7 Skew Heaps 6.8 Binomial Queues 6.9 Priority Queues in the Standard Library * Priority Queues in the Standard Library The binary heap is implemented in the STL by the class template named priority_queue found in the standard header file queue. The STL implements a max-heap rather than a minheap The key member functions are: void push( const Object x ); const Object top( ) const; void pop( ); bool empty( ); void clear( ); Using a greater function object as the comparator yields a min-heap. * * Summary have seen various implementations and uses of the priority queue ADT. The standard binary heap implementation is elegant because of its simplicity and speed. It requires no links and only a constant amount of extra space, yet supports the priority queue operations efficiently. considered the additional merge operation and developed three implementations The leftist heap is a wonderful example of the power of recursion. The skew heap represents a remarkable data structure because of the lack of balance criteria. The binomial queue shows how a simple idea can be used to achieve a good time bound. have also seen several uses of priority queues, ranging from operating systems scheduling to simulation. * * As with most data structures, it is sometimes possible to add other operations, but these are extensions and not part of the basic model depicted in Figure 6.1. Priority queues have many applications besides operating systems. In Chapter 7, we will see how priority queues are used for external sorting. Priority queues are also important in the implementation of greedy algorithms, which operate by repeatedly finding a minimum; we will see specific examples in Chapters 9 and 10. In this chapter, we will see a use of priority queues in discrete event simulation. * The time to do the insertion could be as much as O(
您可能关注的文档
- 2015年助理社会工作者《初级实务》考试真题与答案要点.docx
- 2015年全国各地中考化学试题小专题汇编13实验探究题选择题汇编.doc
- 2015年周口,专业技术人员继续教育,低碳经济与循环经济答案100分.doc.doc
- 2015年商业地产推广计划方案_图文.ppt
- 2015年山东省东营市中考数学试题及答案.doc
- 2015年作文指导《作文拟题技巧》课件.ppt
- 2015年商业地产推广计划方案_图文_1568595598.ppt.ppt
- 2015年幼儿园教科研工作计划(秋季)(新版本).doc
- 2015年全国高考新课标理综一物理试题及答案.doc
- 2015年学校党建工作自查报告.doc
- DB14-T576-2015无公害蚕豆生产技术规程.DOC.doc
- DB -2015-2013 食品安全地方标准餐饮服务单位食品安全....doc
- db140400t 019-2004 绿色农产品 马铃薯生产操作规程.doc
- db3201 t 128-2008 紫心甘薯生产技术规程.doc
- db3201 t 128-2008 紫心甘薯生产技术规程.doc.doc
- DB140400T 022-2004 绿色农产品 油桃生产操作规程.doc
- D-sub型连接器焊接工艺规范A0-06.doc.doc
- DB37T1013-2009能源管理体系标准解读.ppt
- DB33T 515-2004 出口食用明胶检验规程.doc
- DBJT 0 -27-2003 高级装饰工程质量检验评定标准(可编辑).doc
最近下载
- 职业技能大赛-电池制造工职业技能竞赛理论知识题库(附参考答案).docx
- 走近苏东坡ppt.ppt VIP
- 第1课时 水果店 课件 2025北师版数学三年级上册.ppt
- 2024年客户服务管理员(三级高级工)技能鉴定考试题库-上(单选、多选题汇总).docx VIP
- 失落的一角(精美版绘本).ppt VIP
- 1.1中华人民共和国成立前各种政治力量 课件(共25张ppt)(含音频+视频).pptx VIP
- 可能性(说课课件)四年级上册数学苏教版.ppt
- 计量器具、仪器日常使用点检表.xls VIP
- 食谱编制—食谱编制案例分析(食品营养与配餐课件).pptx VIP
- 2025上半年国内影视剧市场分析.pptx VIP
文档评论(0)