i dont understand how the following complexities come from.
espeacialy b(b^d-1) in the time complexity
Time complexity: Total numb. of nodes generated: 1 + b + b2 + … + bd + b(b^d-1) = O(b^(d+1)) Space complexity:O(b^(d+1))
where b – maximum branching factor of the search tree d – depth of the least-cost solution