树的相关定义及遍历

时间:2021-08-30 09:22:54   收藏:0   阅读:7

树的一些概念:

技术分享图片

 

 技术分享图片

 

 


两种特殊的二叉树:

满二叉树和完全二叉树:(参考博客)https://blog.csdn.net/u013812939/article/details/46798743

技术分享图片

 

 


 

树的遍历

技术分享图片

 

 

技术分享图片

 

 


快速写出树的各种遍历结果:

(参考博客:https://blog.csdn.net/WUZHU2017/article/details/108734282)

技术分享图片

 

 


以上资料来源:《极客时间 | 数据结构与算法之美》

 

原文:https://www.cnblogs.com/Guhongying/p/15202401.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!