辽宁石油化工大学学报

辽宁石油化工大学学报 ›› 2009, Vol. 29 ›› Issue (2): 60-62.

• 计算机与自动化 • 上一篇    下一篇

一种完全基于高度的满二叉树判定算法

张利群,张 杰   

  1. 辽宁石油化工大学职业技术学院,辽宁抚顺113001
  • 收稿日期:2009-01-12 出版日期:2009-06-25 发布日期:2017-07-05
  • 作者简介:张利群(1965-),男,辽宁清原县,教授,硕士

A Deciding Algorithm of Full Binary Tree Completely Based on Height

ZHANG Li-qunZHANG Jie   

  1. Vocational and Technical College,Liaoning University of Petroleum & Chemical Technology,Fushun Liaoning 113001,P.R.China
  • Received:2009-01-12 Published:2009-06-25 Online:2017-07-05

摘要: 分析了满二叉树具有的性质,得到了满二叉树的一个等价定义,利用该等价定义给出了一种完全基
于高度的满二叉树判定算法。该算法解决了传统上既要计算二叉树高度又要计算二叉树中结点个数来判定一棵二
叉树是否为满二叉树的问题,丰富了满二叉树的判定方法。应用结果表明,这种完全基于高度的满二叉树判定算法
运行正确,判定结论可信。

关键词: 满二叉树 , 算法 , 递归

Abstract: By analyzing the characteristic of full binary tree, an equivalence definition was obtained. A decision algorithm of full binary tree completely based on height was provided by the equivalence definition. The algorithm solved the traditional deciding problem of full binary tree. The traditional method needs not only calculate binary tree height but also count branch node numbers. The new decision algorithm enriched the deciding methods of full binary tree. The application shows that the decision algorithm of full binary tree completely based on height runs accurately and the decision result is creditable.

Key words: Full binary tree , Algorithm , Recursion

引用本文

张利群,张 杰. 一种完全基于高度的满二叉树判定算法[J]. 辽宁石油化工大学学报, 2009, 29(2): 60-62.

ZHANG Li-qun, ZHANG Jie. A Deciding Algorithm of Full Binary Tree Completely Based on Height[J]. Journal of Liaoning Petrochemical University, 2009, 29(2): 60-62.

使用本文

0
    /   /   推荐

导出引用管理器 EndNote|Ris|BibTeX

链接本文: https://journal.lnpu.edu.cn/CN/

               https://journal.lnpu.edu.cn/CN/Y2009/V29/I2/60