Binary search cannot achieve O(log n) time complexity on linked lists because linked lists lack random access capability, requiring O(n) time complexity for searching any element regardless of whether the list is sorted or unsorted.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
How to Implement Binary Search In Data Structure #PW #ShortsAdded:
And let's say not to find the middle element, but to find any other element, what would be the best case complexity and the worst case complexity on a sorted linked list? In linked list, whether it's sorted or not sorted, uh the complexity would be order of n.
Okay, why so?
Uh because there are one algorithm called binary search, which takes order of log n. But to implement binary search, we need somewhat of random access in in the in the particular data structure, but linked list can't provide us the random access. So, if even if we implement the binary search somehow in linked list, it would still take order of n.
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 views•2026-05-28
How agent o11y differs from traditional o11y — Phil Hetzel, Braintrust
aiDotEngineer
450 views•2026-05-28
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29
🚀 BCS613C Compiler Design | Module 1 to 5 Schema Evaluation 🔥 | VTU 6th Sem 💯 #VTU #bcs613c #exam
Pranavaa-y4y
104 views•2026-06-02











