I have a tree with a root node at level d = 0. Each node in my tree has b children. If I'm trying to reach some goal node G, and I know that G is ALWAYS the first (leftmost) child on any level. How many nodes will I have to check if I use a breadth first search to traverse my tree?
Breadth first search refers to examining an entire level before moving onto the next level. That is, we first examine each node at depth d before examining any of their children.
I was thinking of this problem as a series type of problem. I set b = 2 to get a look at an example tree and then counted how many nodes needed to be checked at each level. I got the series : 1,4,13,40,121 from counting the accumulated total of nodes so far at level d, but I can't make anything out of this information.
Can anyone help me?


LinkBack URL
About LinkBacks