Chapter 2: 18 E (page 85)
Consider the task of searching a sorted array for a given element a task we usually perform by binary search in time . Show that any algorithm that accesses the array only via comparisons (that is, by asking questions of the form 鈥渋s 0?鈥), must take steps.
Short Answer
Yes, any algorithm that accesses the array only via comparisons take steps.