请输入您要查询的字词:

 

单词 ExternalPathLength
释义

external path length


Given a binary treeMathworldPlanetmath T, construct its extended binary treeMathworldPlanetmath T.The external path lengthMathworldPlanetmath of T is then defined to be the sum of the lengths of the paths to each of the external nodes.

For example, let T be the following tree.

The extended binary tree of T is

The external path length of T (denoted E) is

E=2+3+3+3+3+3+3=20

The internal path length of T is defined to be the sum of the lengths of the paths to each of the internal nodesPlanetmathPlanetmath. The internal path length of our example tree (denoted I) is

I=1+2+0+2+1+2=8

Note that in this case E=I+2n, where n is the number of internal nodes. This happens to hold for all binary trees.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 10:10:38