how to search an element in sorted linked list with time
complexity is O(log n).

Answers were Sorted based on User's Feedback



how to search an element in sorted linked list with time complexity is O(log n)...

Answer / baskerdearer

By using the skip list concept. we can search the sorted
linked list with O(log n).

Is This Answer Correct ?    35 Yes 10 No

how to search an element in sorted linked list with time complexity is O(log n)...

Answer / sniper

Yes u are right ...
here are the details

http://msdn.microsoft.com/en-us/library/ms379573%28v=vs.80%29.aspx#datastructures20_4_topic4

thanks ...

Is This Answer Correct ?    3 Yes 1 No

how to search an element in sorted linked list with time complexity is O(log n)...

Answer / pritam

we can use the binary search algorithm for this problem because this searching algorithm has O(log n) performance in both worse and average case.

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More Data Structures Interview Questions

What are the main differences between the linked list and linear array?

0 Answers  


Define back edge?

0 Answers  


How do you sort an array in decreasing order?

0 Answers  


What are the types of collection?

0 Answers  


Is hashmap ordered?

0 Answers  






Does arraylist maintain insertion order?

0 Answers  


Write the steps involved in the insertion and deletion of an element in the stack.

0 Answers  


Which data structures are applied when dealing with a recursive function?

0 Answers  


Which type of sorting is best?

0 Answers  


What is thread and types of thread?

0 Answers  


What are the disadvantages of representing a stack or queue by a linked list?

0 Answers  


What is binary tree? Explain its uses.

0 Answers  


Categories