A particular search tree has 6 nodes at level 3. At the next level, there are 24 nodes. What is the branching factor at level 3?
The answer is 4, but can someone tell me why, I thought that it was 2.
From Wikipedia:
In computing, tree data structures, and game theory, the branching factor is the number of children at each node, the outdegree. If this value is not uniform, an average branching factor can be calculated.
You have 6 nodes at level 3, 24 nodes at level 4, so the average number of children per node at level 3 is 24/6=4
.