- 1、本文档共29页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
国家集训队2005论文集 i魏冉
让算法的效率“跳起来”!
—— 浅谈“跳跃表”的相关操作及其应用
上海市华东师范大学第二附属中学 魏冉
【目录】
◆ 关键字 ························································································ 【2】
◆ 摘要 ························································································ 【2】
◆ 概述及结构 ·················································································· 【2】
◆ 基本操作 ························································································· 【3】
◇ 查找 ·················································································· 【3】
◇ 插入 ·················································································· 【3】
◇ 删除 ·················································································· 【4】
◇ “记忆化”查找 ····································································· 【5】
◆ 复杂度分析 ·················································································· 【6】
◇ 空间复杂度分析 ······································································ 【7】
◇ 跳跃表高度分析 ······································································ 【7】
◇ 查找的时间复杂度分析 ························································· 【7】
◇ 插入与删除的时间复杂度分析 ·················································· 【8】
◇ 实际测试效果 ····································································· 【8】
◆ 跳跃表的应用 ············································································ 【9】
◆ 总结 ························································································· 【10】
◆ 附录 ························································································· 【11】
【关键字】
跳跃表 高效 概率 随机化
【摘要】
本文分为三大部分。
首先是概述部分。它会从功能、效率等方面对跳跃表作一个初步的介绍,并给出其图形结构,以便读者对跳跃表有个形象的认识。
第二部分将介绍跳跃表的三种基本操作——查找,插入和删除,并对它们的时空复杂度进行分析。
第三部分是对跳跃表应用的介绍,并通过实际测试效果来对跳跃表以及其它一些相关数据结构进行对比,体现其各自的优缺点。
最后一部分是对跳跃表数据结构的总结。
【概述及结构】
二叉树是我们都非常熟悉的一种数据结构。它支持包括查找、插入、删除等一系列的操作。但它有一个致命的弱点,就是当数据的随机性不够时,会导致其树型结构的不平衡,从而直接影响到算法的效率。
跳跃表(Skip List)
跳跃表由多条链构成(S0,S1,S2 ……,Sh),且满足如下三个条件:
每条链必须包含两
文档评论(0)