二叉树存储分类.docxVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
二叉树的存储分类 【摘要】本篇论文主要包含以下几个方面:二叉树的定义(在树的基础上),二叉树的性质,二叉树的存储结构,二叉树的遍历,由浅如深的介绍了二叉树的主要内容和结构特性、程序实现,同时文章多处用到图示的方法将抽象的计算方法变成教为直观的图解。在文章的最后还做了简单的总结,让人们对二叉树在生活中的应用及未来的发展有了一定的了解。数据结构中二叉树对解决生活问题有着很大的帮助,因此,我们更应该深入的学习和了解二叉树的原理及实际的应用,而这当中又以二叉树的存储为重中之重,因此熟练掌握二叉树的存储分类为以后更方便的解决计算机相关问题做好铺垫,只有详细学习二叉树,了解二叉树的存储结构,才能更好的完成以后将要面临的任务。【关键词】二叉树,二叉树的顺序存储,二叉树的链式存储Abstract: This thesis mainly includes the following aspects: binary tree definition (on the base of the tree), the nature of the binary tree, the storage structure of the binary tree, binary tree traversal, achieved by such as the shallow deep introduced binary tree of the main content and structure characteristics, program. At the same time, the number of used calculation method of graphical representation of the abstract into teaching visual graphic. At the end of the article also made a simple summary, so that people on the two fork tree in the life of the application and the future development of a certain understanding. Binary tree data structure to solve the problem of life has a great help. Therefore, we should be more in-depth study and understanding of binary tree theory and practical application, and this and the binary tree storage as the most important, therefore master binary tree storage classification is more convenient for computer to solve the problems related to pave the way, only the detailed study of binary tree, understand the storage structure of the binary tree, after completion in order to better will be faced with the task.Key words: Two binary tree, the order of the two tree storage, the chain storage of the two fork tree目录引言11.二叉树11.1二叉树的定义11.2二叉树的性质21.3二叉树的基本操作22.二叉树的存储2存储结构分为顺序存储、链式存储、索引存储、散列存储。以下讨论二叉树的顺序存储和链式存储。22.1顺序存储结构22.1.1约定空元素顺序存储2增设“虚结点”补齐至完全二叉树,然后,按照层次遍历顺序存储。如下图所示:32.1.2 附加空结点标志顺序存储32.2链式存储结构32.2.1 二叉链式存储32.2.2三叉链式存储4图442.2.3中-前序链式存储4图653二叉树的实现53.1约定空元素顺序存储63.2 二叉树链式存储程序实现73.3中-前序链式存储9总结9引言 在现实世界中有许多复杂的问题都需要用到二叉树来解决,在二叉树这种数据结构中,元素之间有明显的层次关系,它可以很客观的描述。 那么在运用二叉树解决实际问题的时候二叉树的存储结构尤为重要,二叉树在计算机中的存储有几种结构,

文档评论(0)

2266670 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档