Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 810 Bytes

b-tree.md

File metadata and controls

25 lines (14 loc) · 810 Bytes

B-tree TODO

Not binary tree: http://en.wikipedia.org/wiki/B-tree.

Like a binary tree with many values per node:

btree

Notable sub-cases:

Same complexity as RB-tree, but with slower in theory by a constant factor.

Default data structure for MySQL InnoDB INDEX.

In practice: way faster for accessing trees saved in slow storage like hard disks.

  • to go down each level, you must traverse all values of a node
  • less memory efficient

Advantage:

  • less nodes need to be retrieved. Huge practical gains here to read data from slow media.