How to calculate the average branching factor on a given tree

3.2k Views Asked by At

Can anyone explain to me, what the value of the average branching factor is if we exclude leaf nodes when computing b?

Example:

Tree

I don't know how to calculate this in the right way :/

Thanks a lot

1

There are 1 best solutions below

0
Alexis Olson On BEST ANSWER

Iterate through each non-terminal node and average the number of branches it has. In your example, the average should be between 1 and 2.

Related: How to Find the Branching Factor of a Tree