1.

How to maintain multi-level skip list properties when insertions and deletions are done?(a) design each level of a multi-level skip list with varied probabilities(b) that cannot be maintained(c) rebalancing of lists(d) reconstructionAsked question is from Skip List in chapter Types of Lists of Data Structures & Algorithms IThe question was asked in semester exam.

Answer»

The correct answer is (a) design each level of a multi-level skip list with VARIED probabilities

Easy explanation - For EXAMPLE consider a 2 level skip list. the level-2 skip list can skip one NODE on a average and at some places may skip 2 nodes, depending on probabilities. this ensures O(logn).



Discussion

No Comment Found

Related InterviewSolutions