Advertisement
Guest User

Scapegoat tree join, fig 1

a guest
Oct 20th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. size(L) = 10 height(L) = 7
  2. size(R) = 5 height(R) = 5
  3.  
  4. Maximum height is 2 * floor(log2(size)) + 1
  5.  
  6. size(L) + size(R) = 15, max height is 7
  7.  
  8.  
  9. L R
  10.  
  11. 1 o x o
  12. ╱ ╲ ╱ ╱ ╲
  13. 2 o o x o o
  14. ╱ ╲ ╱ ╱ ╱ ╲ ╱ ╲
  15. 3 o o o + x = o o o x
  16. ╱ ╲ ╱ ╱
  17. 4 o x o x
  18. ╱ ╱ ╱ ╱
  19. 5 o x o x
  20. ╱ ╱ ╲
  21. 6 o o x
  22. ╲ ╲ ╱
  23. 7 o o x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement