0

148 elements which has a log base 2 of 7.2 ?

So I have to round up to calculate max elements accessed or round down ?

8 or 7

4

1 回答 1

3

维基百科说:⌊log2(N)+1⌋,http ://en.wikipedia.org/wiki/Binary_search_algorithm#Performance

于 2013-04-11T21:23:18.603 回答