M-Way Search Tree
M-Way Search Tree
STRUCTURES
MAHESH GOYANI
MAHATMA GANDHI INSTITUE OF TECHNICAL EDUCATION & RESEARCH CENTER
[email protected]
Tree having m-1 key and m children is called m-way search tree.
A binary tree is a 2-way tree. It means it has m-1 = 2-1 = 1 key and
maximum 2 child.
A Binary Tree is called m-way tree of order 2.
9 20 41
9 20 9 9 20 41
9 9 20 9 20 41 9
insert (13)
13 41
insert (41)
13 21 41
insert (21)
7 : 13 21 : 41
7 13 21 41
insert (7)
7 : 13 21 : 39
41
7 13 18 21 39 41
insert (18),
insert (39)