Page 17 - Algorithms Notes for Professionals
P. 17

Let's call x the number of operations: we know that 1 = n / (2^x).

       So 2^x = n, then x = log n

       Conclusion


       When faced with successive divisions (be it by two or by any number), remember that the complexity is logarithmic.





















































































       colegiohispanomexicano.net – Algorithms Notes                                                            13
   12   13   14   15   16   17   18   19   20   21   22