Some basic notation:
lg x is the base 2 logarithm of x (can also be written log2x)ln x is the base e natural logarithm of x (can also be written logex)lgnx is the notation for (lg x)nUseful identities:
x = ylogyxlogx(yz) = logxy + logxzlogxyz = z logxylogxy = logzy/logzxlogx1/y = -logxylogxy = 1/logyxxlogyz = zlogyx
We say that a function f is polyalgorithmically bound if f(x) = lgO(1)x.
Since logxz = k logyz for some k,
we usually use base 2 for the big O notation, i.e.
O(logxz) = O(logyz) = O(lg z).
Note that any polynomial function grows faster than any polyalgorithmic function.
T. H. Cormen, C. E. Leiserson, R. L. Rivest, Introduction to Algorithms. MIT Press, 1990.
Copyright © 2014 Barry Watson. All rights reserved.