Question: Let T be a ( 2 k + 1 ) - node BST with nodes x 1 x 2 k + 1 , and where
Let T be a k node BST with nodes x xkand where xi is the left child of node xi for all i in k Let T resp T be the BST obtained from T by rotating resp splaying x to the root.
a points Determine the structure of T and T
b points Assuming that we assign unit weight to each node, determine a Theta bound on the decrease in potential from T to T
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
