previous
|
start
|
next
Binary Search
Assume
n
is a power of 2,
n
= 2
m
where
m
= log
2
(
n
)
Then: T(
n
) = 1 + log
2
(
n
)
Binary search is an O(log(
n
)) algorithm
previous
|
start
|
next