I was asked this question by an interviewer. How can I search a large array (thousands maybe millions of values) for a particular value.
I suggested binary search for cases in which the items are sorted and the array size is smaller. I also suggested 1 iteration for the bubble sort algorithm if you want the largest value in a large array (value is to the rightmost after 1 pass).
But I am unsure what algorithms can extract a value within an inherently random assortment of array indices.