- 1、本文档共18页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Analysis Of Binomial Heaps Operations Insert Add a new min tree to top-level circular list. Meld Combine two circular lists. Remove min Pairwise combine min trees whose roots have equal degree. O(MaxDegree + s), where s is number of min trees following removal of min element but before pairwise combining. Binomial Trees All Trees In Binomial Heap Are Binomial Trees Insert creates a B0. Meld does not create new trees. Pairwise combine takes two trees of equal degree and makes one a subtree of the other. Let n be the number of operations performed. Number of inserts is at most n. No binomial tree has more than n elements. MaxDegree = log2n. Complexity of remove min is O(log n + s) = O(n). Aggregate Method Get a good bound on the cost of every sequence of operations and divide by the number of operations. Results in same amortized cost for each operation, regardless of operation type. Can’t use this method, because we want to show a different amortized cost for remove mins than for inserts and melds. Aggregate Method – Alternative Get a good bound on the cost of every sequence of remove mins and divide by the number of remove mins. Consider the sequence insert, insert, …, insert, remove min. The cost of the remove min is O(n), where n is the number of operations in the sequence. So, amortized cost of a remove min is O(n/1) = O(n). Accounting Method Guess the amortized cost. Insert = 2. Meld = 1. Remove min = 3log2n. Show that P(i) – P(0) = 0 for all i. Potential Function P(i) = amortizedCost(i) – actualCost(i) + P(i – 1) P(i) – P(0) is the amount by which the first i operations have been over charged. We shall use a credit scheme to show P(i) – P(0) = 0 for all i. P(i) = number of credits after operation i. Initially number of credits is 0. P(0) = 0. Insert Guessed amortized cost = 2. Use 1 unit to pay for the actual cost of the insert. Keep the remaining 1 unit as a credit for a future remove min operation. Keep this credit with the min tree that is created by
您可能关注的文档
- 电源及充电器原理与维修.ppt
- 电源芯片TOP242249.pdf
- 电子LED行业深度研究.pdf
- 电子PspiceCAD技术3.ppt
- 电子表格的制作课件.ppt
- 概率论与数理统计课件35.ppt
- 湖南师范大学四六级考试备考英语语法复习十八:数词.ppt
- 电装火花塞推介会资料.pdf
- 概率论与数理统计课件62.ppt
- 电子病历与社区卫生信息化南京1126会议.ppt
- 再生医学技术在心血管支架植入后的伦理问题研究.docx
- 创新思维与创业精神-演讲人角色:创新思维专家.pptx
- 2025年连锁餐饮食品安全风险评估与食品安全风险评估咨询服务报告.docx
- 露营地生态旅游服务标准化与质量提升报告.docx
- 聚焦2025年,工业园区土地征收社会稳定风险评估与风险评估报告修订.docx
- 网络运营方案.pptx
- 2023年广东省广州市增城市朱村街道招聘社区工作者真题附答案详解.docx
- 职业技能培训线上线下融合模式下的学习资源整合研究报告.docx
- 2025年新型建筑保温材料在建筑保温行业中的市场细分与竞争格局分析报告.docx
- 2023年广东省广州市增城市朱村街道招聘社区工作者真题带答案详解.docx
文档评论(0)