叶子结点和分支节点_完全二叉树总结点数与叶结点数关系分析

本文从归纳总结点数的奇偶性与度为1结点的关系,以及通过最后一个结点与其父结点的位置关系,分析完全二叉树的总结点数与叶结点数的数学联系,帮助深化对数据结构中完全二叉树的理解。
摘要由CSDN通过智能技术生成

摘要:该文从两个角度分析了完全二叉树的总结点数与叶结点数之间的关系。其一,通过归纳找到总结点数的奇偶性与度为1的结点个数之间的关系,进而导出总结点数与叶结点数的关系;其二,由最后一个结点的父结点为倒数第一个分支结点的事实,找到总结点数与叶结点数的关系。这种多角度的分析有利于学生对此数据结构的深入理解。

关键词:数据结构;树;二叉树;完全二叉树

中图分类号:TP311文献标识码:A文章编号:1009-3044(2008)34-1569-02

Complete Binary Tree Nodes and Leaves Number Relation

LIU Song, LAN Ying

(College of Computer Science and Technology, Jilin Normal University, Siping 136000, China)

Abstract: This paper analyzed the relation between the complete binary tree nodes and the leaves number by two ways. First, it induced the relation between the odevity of complete binary tree nodes and the number of one degree nodes, then come to the conclusion. Second, through the fact that the parent of the last node is the last branch node, the paper got the same conclusion. Analyzing by two ways is helpful for students to und

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值