Question: By changing the potential function, it is possible to prove different bounds for splaying. Let the weight function W(i) be some function assigned to each

By changing the potential function, it is possible to prove different bounds for splaying. Let the weight function W(i) be some function assigned to each node in the tree, and let S(i) be the sum of the weights of all the nodes in the subtree rooted at i, including i itself. The special case W(i) = 1 for all nodes corresponds to the function used in the proof of the splaying bound. Let N be the number of nodes in the tree, and let M be the number of accesses. Prove the following two theorems:
a. The total access time is O(M + (M + N) logN).
b. If qi is the number of times that item i is accessed, and qi > 0 for all i, then the total access time is
0M+E log(M/q) i=1

0M+E log(M/q) i=1

Step by Step Solution

3.47 Rating (180 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Choose W i 1 N for each item Then for any access of node X R f X 0 and R i X log N so th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1486-C-S-A(567).docx

120 KBs Word File

Students Have Also Explored These Related Algorithms Questions!