Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Module 5:
  2. slide 31: shouldn't insert and delete be O(n) since you have to shift elements?
  3. slide 37: how can you implement MTF with array? Doesn't it need O(n) to shift?
  4. Also, what does optimal "offline" ordering mean?
  5.  
  6. module 4 slide 26:
  7. "suffices to store height right - height left" - but then how do you modify the rebalancing algorithms for that? Can't tell what the current balance factor is from the balance factor of the children
  8.  
  9. When removing a node from an AVL tree, the overall height of the tree may not change or may decrease by 1. Is it possible that the height decreases by 2 or more?
  10.  
  11. Remember that when deleting from AVL, if the two children of the taller child of the unbalanced node are the same height, you cannot just randomly choose one. Refer to Olga's slides for more info.
  12.  
  13.  
  14. SKIP LIST:
  15. The expected number of steps to go up k levels is 2k. But, how can we then conclude that k is in O(log n)?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement