One of the most common methods by which logarithms arise in computer science is to repeatedly divide an array in half, which is often found with separation and rest algorithms, such as binary search, merging, etc. In these cases, the number of times you can split an array of length n twice, before moving on to singleton arrays, this is log 2 n.
- . , log 2 n n. , radix, , . , GCD, , , -, .
, - , , . , "" x ( "" ). , , . , log 2 n , .
, base-two CS. , AVL- , & phi; - . - e, quicksort, , , . , - - - . , , .
, . , ( ), - O (n log n) O (log n).