SyntaxFix
Write A Post
Hire A Developer
Questions
log x to base b = y is the inverse of b^y = x
log x to base b = y
b^y = x
If you have an M-ary tree of depth d and size n, then:
traversing the whole tree ~ O(M^d) = O(n)
Walking a single path in the tree ~ O(d) = O(log n to base M)