• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
June 13, 2022 |390 Views

Self Organizing List (Introduction)

Description
Discussion

The worst case search time for a sorted linked list is O(n). With a Balanced Binary Search Tree, we can skip almost half of the nodes after one comparison with root. For a sorted array, we have random access and we can apply Binary Search on arrays.

One idea to make search faster for Linked Lists is Skip List. Another idea (which is discussed in this post) is to place more frequently accessed items closer to head.. There can be two possibilities. offline (we know the complete search sequence in advance) and online (we don’t know the search sequence).

Self Organizing List (Introduction) : https://www.geeksforgeeks.org/self-organizing-list-set-1-introduction/