Advertisement
MikeCook9994

B+ Tree observations

May 24th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. how B+ trees work (maybe)
  2.  
  3. generating the following tree:
  4.  
  5. 3 5
  6. / | \
  7. 1 2 - 3 4 - 5 6 7
  8.  
  9. is done by adding elements in the order:
  10. 3 > 5 > 7 > 1 > 2 > 6 > 4
  11. (or a number of other ways)
  12.  
  13. Facts:
  14. 1) Each node contains a series of values
  15. 2) The values are stored from least to greatest
  16. 3) There is a maximum number of values that can be stored
  17. in the node
  18. 4) each sibling retains a reference to the next sibling
  19. and so on until the last sibling
  20.  
  21. Insertion Assumptions
  22. 1) When this value is reached (not exceeded), a copy of
  23. the median value is maintained in parent and the remaining elements are split into to children nodes
  24. 2) The elements smaller than the median element are moved
  25. to a child node on the left, the elements larger than the median node are moved to a child node on the right.
  26. 3) When a child node exceeds the maximum load value, the
  27. node is split into to nodes along the median value, this is recurisve
  28. 4) When a child node exceeds the maximum load value, the
  29. median value is copied to the parent node, this is recursive
  30.  
  31. Deletion Assumptions
  32. 1) Weht?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement