Why does binary search need random access, and what happens if it is run on a linked list?
Binary search jumps straight to the middle element, which costs $O(1)$ in an array but $O(n)$ in a linked list, where the middle can only be reached by walking node by node. On a linked list the walking adds up to about n steps, so the search degrades to $O(n)$ even though it still makes only $O(\log n)$ comparisons.
In an array, element i lives at a computable address: base address + i · element size. Reading a[m] is a single step. A linked list has no such formula; to read element m it must follow m links from the head.
Binary search on a linked list therefore walks n/2 nodes to the first middle, then n/4 to the next, then n/8, …, which sums to about n. The comparisons stay logarithmic, but the walking makes the whole search linear.
The difference is drastic in practice. Java's Collections.binarySearch on a sorted list of a million Integers took about 4 µs on an ArrayList and about 100,000 µs on a LinkedList: roughly 25,000 times slower, for the same call on the same data. Java marks lists with fast indexed access with the RandomAccess interface for exactly this reason.
Gotcha: a unit test does not catch this. Picking LinkedList instead of ArrayList from the IDE's autocomplete takes two seconds, and every correctness test stays green, because the results are identical. Only a test that measures how the running time grows with n would expose it.
Go deeper:
Java RandomAccess interface — the marker interface, and why generic algorithms switch strategy for lists without it.