This preview shows pages 1–9. Sign up to view the full content.
Btree
12 : 15 : 
25 : 31 : 41
59 :  : 
84 : 91 : 
1,4,8,11
12, 13
15, 18,19
21,24
25,26
31,38
41,43,46
48,49,50
59,68
72,78
84,88
91,92,99
21 : 48 : 72
A Btree.
Page 1 of 34
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document Btree
16 : 
41 : 58
8, 11, 12
16, 17
22, 23, 31
41, 52
58, 59, 61
22 : 
A Btree.
Page 2 of 34
Btree
12 : 15 : 
25 : 31 : 41
59 :  : 
84 : 91 : 
1,4,8,11
12, 13
15, 18,19
21,24
25,26
31,38
41,43,46
48,49,50
59,68
72,78
84,88
91,92,99
21 : 48 : 72
(The Btree on page 1.)
Page 3 of 34
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document Btrees of order M
z
ROOT
: 0 child (if it is a leaf); or between 2 and M
children.
z
OTHER NONLEAF NODES
: between
⎡
M/2
⎤
and M
children.
z
All leaf nodes are at the same depth.
z
A leaf node contains
⎡
M/2
⎤
to M data.
Page 4 of 34
Btree
12 : 15 : 
25 : 31 : 41
59 :  : 
84 : 91 : 
1,4,8,11
12, 13
15, 18,19
21,24
25,26
31,38
41,43,46
48,49,50
59,68
72,78
84,88
91,92,99
21 : 48 : 72
A Btree of order ____
Page 5 of 34
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document Btree
a,c
e,f,g
h,i
j,k,l
n,o
p,q,r
s,t
u,v
w,x
y,z
A Btree of order ____
Page 6 of 34
Btrees of order M
z
ROOT
: 0 child (if it is a leaf); or between 2 and M children.
z
OTHER NONLEAF NODES
: between
⎡
M/2
⎤
and M children.
z
All leaf nodes are at the same depth.
z
A leaf node contains
⎡
M/2
⎤
to M data.
Btree of order 0
Btree of order 1
(Therefore, no one uses these trees …)
Page 7 of 34
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
z
ROOT
: 0 child (if it is a leaf); or between 2 and M children.
z
OTHER NONLEAF NODES
: between
⎡
M/2
⎤
and M children.
z
All leaf nodes are at the same depth.
z
A leaf node contains
⎡
M/2
⎤
to M data.
Btrees of order 3
are also called
23 trees
.
ROOT:
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.
 Fall '06
 CJYuan

Click to edit the document details