B - Tree
B - Tree
BY:Aastha Tripathi(718001)
Swati Chaurasia(718044)
What is B-Tree?
Definition:
2 7 9 15 22 31 43 56 69 72
B-Trees 6
Type 2: Simple non-leaf deletion
Delete 52
12 29 56
52
7 9 15 22 31 43 56 69 72
B-Trees 7
Type 3: Enough siblings
12 29
Demote root key and
promote leaf key
7 9 15 22 31 43 56 69
Delete 22
B-Trees 8
Type 3: Enough siblings
12 31
7 9 15 29 43 56 69
B-Trees 9
Type 4: Too few keys in node and
its siblings
12 29 56
7 9 15 22 31 43 69 72
Too few keys!
Delete 72
B-Trees 10
Type 4: Too few keys in node and
its siblings
12 29
7 9 15 22 31 43 56 69
B-Trees 11
Comparing Trees
Binary Trees
-Can become unbalanced and lose
their good time complexity(big O)
-AVL trees are strict binary trees
that overcome the balance
problem
-Heap remain balanced but only
prioritise(not order)the keys
Multi-way Trees
-B-Tress can be m-way,they can
have any (odd) number of
children
-One B-Tree,the 2-3(or3-way)B-
Tree,approximates a permanently
balanced binary tree,exchanging
the AVL tree’s balancing
operations for insertion and(more
complex)deletion operations.
THANK YOU