|
|
|
|
weighted path length
|
(Definition)
|
|
|
Given an extended binary tree (that is, simply any complete binary tree, where leafs are denoted as external nodes), associate weights with each external node. The weighted path length of is the sum of the product of the weight and path length of each external node, over all external nodes.
Another formulation is that weighted path length is
over all external nodes , where is the weight of an external node , and is the distance from the root of the tree to . If for all , then weighted path length is exactly the same as external path length.
Let be the following extended binary tree. Square nodes are external nodes, and circular nodes are internal nodes. 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.
|
"weighted path length" is owned by Logan.
|
|
(view preamble | get metadata)
Cross-references: minimum weighted path length, represent, internal nodes, circular, nodes, square, external path length, tree, root, distance, path length, product, sum, weights, associate, external nodes, leafs, complete binary tree, extended binary tree
There are 4 references to this entry.
This is version 1 of weighted path length, born on 2002-03-08.
Object id is 2778, canonical name is WeightedPathLength.
Accessed 4890 times total.
Classification:
|
|
|
|
|
|
Pending Errata and Addenda
|
|
|
|
|
|
|
|
|
|
|