Chapter 4: Q57E (page 257)
Estimate the complexity of algorithm 1 for finding the base b expansion of an integer n in terms of the number of divisions used.
Short Answer
\(\)\(O(\log n)\)
Therefore exactly\(\left\lfloor {{{\log }_b}n} \right\rfloor + 1\) divisions are required, and this is\(O(\log n)\).