请输入您要查询的字词:

 

单词 WeightedPathLength
释义

weighted path length


Given an extended binary treeMathworldPlanetmath T (that is, simply any complete binary treeMathworldPlanetmathPlanetmath, where leafs are denoted as external nodes), associate weights with each external node. The weighted path length of T is the sum of the productPlanetmathPlanetmath of the weight and path length of each external node, over all external nodes.

Another formulation is that weighted path length is wjlj over all external nodes j, where wj is the weight of an external node j, and lj is the distance from the root of the tree to j. If wj=1 for all j, then weighted path length is exactly the same as external path lengthMathworldPlanetmath.

Example

Let T be the following extended binary tree. Square nodes are external nodes, and circular nodes are internal nodesPlanetmathPlanetmath. Values in external nodes indicate weights, which are given in this problem, while values in internal nodes represent the weighted path length of subtrees rooted at those nodes, and are calculated from the given weights and the given tree. The weight of the tree as a whole is given at the root of the tree.

This tree happens to give the minimum weighted path length for this particular set of weights.

随便看

 

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

 

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