Logarithm, Algorithms, Java, Data Structures, Programming.
million elements and you want to determine if a particular element is in the list. One way to do this would be to start at the beginning of the list and compare each element to the one you’re looking for. However, this linear search would be quite slow, taking up to one million comparisons in the