Question: If we had a linked list that would never be modified, we can use a simpler approach than the Skip List to speed access. The
If we had a linked list that would never be modified, we can use a simpler approach than the Skip List to speed access. The concept would remain the same in that we add additional pointers to list nodes for efficient access to the \(i\) th element. How can we add a second pointer to each element of a singly linked list to allow access to an arbitrary element in \(\mathrm{O}(\log n)\) time?
Step by Step Solution
3.25 Rating (154 Votes )
There are 3 Steps involved in it
If you have a linked list that you know will never be changed you can indeed add a second pointer to each element to allow binary search type access w... View full answer
Get step-by-step solutions from verified subject matter experts
