Finding the minimum in an unsorted array in logarithmic time
问题 Is there an algorithmic approach to find the minimum of an unsorted array in logarithmic time ( O(logn) )? Or is it only possible in linear time? I don't want to go parallel. Thanks Michael 回答1: If the list is unsorted, your search has to be at least linear. You must look at each item at least once, because anything you haven't looked at might be less than what you've already seen. 回答2: It is not possibly in linear time, because in lg n steps you can only inspect lg n elements, and because