previous | index | next

Big-O Notation

Since scanning a page is the dominant operation in the search, the time it takes to search will be a constant multiple of the number of times a page is scanned.

Sequential
Search Efficiency
Divide and Conquer
Search Efficiency
Ο(n) Ο(log(n))

To say that a procedure's time is Ο(g(n)), for example, Ο(log(n)) is to say that, for all but perhaps finitely many exceptions, it is known to lie below a constant multiple of log(n).

To say that a procedure's time is Θ(log(n)) is to add that it is known to lie above a constant multiple of log(n) as well.


previous | index | next