b-tree insert algorithm (i=2) · 38 b-tree insert algorithm (i=2) 1 2 1415 3?101319. 39 b-tree...

74
1 B-Tree Insert Algorithm (i=2) 10 13 19 7

Upload: others

Post on 17-Oct-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

1

B-Tree Insert Algorithm (i=2)

10 13 19

7

Page 2: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

2

B-Tree Insert Algorithm (i=2)

7 10 13 19

3

Page 3: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

3

B-Tree Insert Algorithm (i=2)

7 10 13 19

3

?

Page 4: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

4

B-Tree Insert Algorithm (i=2)

7 10

3

13 19

?

Page 5: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

5

B-Tree Insert Algorithm (i=2)

3 7

3

13 19

?10

Page 6: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

6

B-Tree Insert Algorithm (i=2)

3 7 13 19

?10

Page 7: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

7

B-Tree Insert Algorithm (i=2)

3 7 13 19

?10

1

Page 8: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

8

B-Tree Insert Algorithm (i=2)

3 7 13 19

?10

1

Page 9: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

9

B-Tree Insert Algorithm (i=2)

3 7 13 19

?10

1

Page 10: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

10

B-Tree Insert Algorithm (i=2)

1 3 7 13 19

?10

1

Page 11: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

11

B-Tree Insert Algorithm (i=2)

1 3 7 13 19

?10

2

Page 12: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

12

B-Tree Insert Algorithm (i=2)

1 3 7 13 19

?10

2

2

Page 13: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

13

B-Tree Insert Algorithm (i=2)

1 2 3 7 13 19

?10

2

2

Page 14: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

14

B-Tree Insert Algorithm (i=2)

1 2 3 7 13 19

?10

4

Page 15: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

15

B-Tree Insert Algorithm (i=2)

1 2 3 7 13 19

?10

4

4

Page 16: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

16

B-Tree Insert Algorithm (i=2)

1 2 3 7 13 19

?10

4

4

Page 17: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

17

B-Tree Insert Algorithm (i=2)

1 2 3 7 13 19

?10

4

4

Page 18: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

18

B-Tree Insert Algorithm (i=2)

1 2 3 7 13 19

?3 10

4

4

Page 19: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

19

B-Tree Insert Algorithm (i=2)

1 2 13 19

?3 10

4 7

Page 20: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

20

B-Tree Insert Algorithm (i=2)

1 2 13 19

?3 10

11

4 7

Page 21: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

21

B-Tree Insert Algorithm (i=2)

1 2 11 13 19

?3 10

4 7

Page 22: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

22

B-Tree Insert Algorithm (i=2)

1 2 11 13 19

?3 10

21

4 7

Page 23: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

23

B-Tree Insert Algorithm (i=2)

1 2 11 13 19

?3 10

21

4 7

Page 24: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

24

B-Tree Insert Algorithm (i=2)

1 2 11 13 19 21

?3 10

12

4 7

Page 25: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

25

B-Tree Insert Algorithm (i=2)

1 2 11 13 19 21

?3 10

12

4 7 12

Page 26: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

26

B-Tree Insert Algorithm (i=2)

1 2 11 13 19 21

?3 10

12

4 7 12

Page 27: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

27

B-Tree Insert Algorithm (i=2)

1 2 11 13 19 21

?3 10

12

4 7 12

Page 28: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

28

B-Tree Insert Algorithm (i=2)

1 2 11 13 19 21

?3 10 13

12

4 7 12

Page 29: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

29

B-Tree Insert Algorithm (i=2)

1 2 11 19 21

?3 10 13

12

4 7 11 12

Page 30: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

30

B-Tree Insert Algorithm (i=2)

1 2 19 21

?3 10 13

12

4 7 11 12

Page 31: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

31

B-Tree Insert Algorithm (i=2)

1 2 19 21

?3 10 13

14

4 7 11 12

Page 32: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

32

B-Tree Insert Algorithm (i=2)

1 2 14 19 21

?3 10 13

14

4 7 11 12

Page 33: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

33

B-Tree Insert Algorithm (i=2)

1 2 14 19 21

?3 10 13

15

4 7 11 12

Page 34: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

34

B-Tree Insert Algorithm (i=2)

1 2 14 15 19 21

?3 10 13

20

4 7 11 12

Page 35: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

35

B-Tree Insert Algorithm (i=2)

1 2 14 15 19 21

?3 10 13

20

4 7 11 12

20

Page 36: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

36

B-Tree Insert Algorithm (i=2)

1 2 14 15 19 21

?3 10 13

20

4 7 11 12

20

Page 37: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

37

B-Tree Insert Algorithm (i=2)

1 2 14 15 19 21

?3 10 13 19

20

4 7 11 12

20

Page 38: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

38

B-Tree Insert Algorithm (i=2)

1 2 14 15

?3 10 13 19

20

4 7 11 12

20 21

Page 39: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

39

B-Tree Insert Algorithm (i=2)

1 2 14 15

?3 10 13 19

5

4 7 11 12

20 21

Page 40: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

40

B-Tree Insert Algorithm (i=2)

1 2 14 15

?3 10 13 19

5

4 7 11 12

20 21

Page 41: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

41

B-Tree Insert Algorithm (i=2)

1 2 14 15

?3 10 13 19

5

4 5 7 11 12

20 21

Page 42: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

42

B-Tree Insert Algorithm (i=2)

1 2 14 15

?3 10 13 19

6

4 5 7 11 12

20 21

Page 43: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

43

B-Tree Insert Algorithm (i=2)

1 2 14 15

?3 10 13 19

6

4 5 6 7 11 12

20 21

Page 44: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

44

Page 45: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

45

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

4 5 6 7 11 12

20 21

8

Page 46: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

46

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

4 5 6 7 11 12

20 21

8

8

Page 47: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

47

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

4 5 6 7 11 12

20 21

8

8

Page 48: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

48

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

4 5 6 7 11 12

20 21

8

8

Page 49: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

49

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

6 7 11 12

20 21

8

84 5

Page 50: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

50

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

7 8 11 12

20 21

6

64 5

Page 51: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

51

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

7 8 11 12

20 21

6

4 5

Page 52: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

52

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

7 8 11 12

20 21

6

4 5

Page 53: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

53

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

7 8 11 12

20 21

6

4 5

Page 54: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

54

B-Tree Insert Algorithm (i=2)

1 2

14 15

?3 10 13 19

7 8 11 12

20 21

6

4 5

3 6

Page 55: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

55

B-Tree Insert Algorithm (i=2)

1 2

14 15

?13 19

7 8 11 12

20 21

10

4 5

3 6

Page 56: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

56

B-Tree Insert Algorithm (i=2)

1 2

14 15

?13 19

7 8 11 12

20 21

4 5

3 6

10

Page 57: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

57

B-Tree Insert Algorithm (i=2)

1 2

14 15

?13 19

7 8 11 12

20 21

4 5

3 6

10

10

Page 58: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

58

B-Tree Insert Algorithm (i=2)

1 2

14 15

?13 19

7 8 11 12

20 21

4 5

3 6

10 B-Tree with minimal occupacy

Page 59: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

59

Delete Operations1. By stealing from other nodes2. By merging nodes3. By shriking

Page 60: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

60

B-Tree Delete

1 2

14 15

?13 19

7 8 11 12

20 21

4 5

3 6

10

23

Page 61: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

61

B-Tree Delete

1 2

14 15

?13 19

7 8 11 12

20 21 23

4 5

3 6

10

Page 62: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

62

B-Tree Delete

1 2

14 15

?13 19

7 8 11 12

20 21 23

4 5

3 6

10

14

Page 63: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

63

B-Tree Delete

1 2

14 15

?13 19

7 8 11 12

20 21 23

4 5

3 6

10

14

underflow

Page 64: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

64

B-Tree Delete

1 2

15

?13 19

7 8 11 12

20 21 23

4 5

3 6

10

underflow

Page 65: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

65

B-Tree Delete

1 2

15 19

?13 20

7 8 11 12

21 23

4 5

3 6

10

Page 66: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

66

B-Tree Delete

1 2

15 19

?13 20

7 8 11 12

21 23

4 5

3 6

10

5

Page 67: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

67

B-Tree Delete

1 2

15 19

?13 20

7 8 11 12

21 23

4 5

3 6

10

5

underflow

Page 68: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

68

B-Tree Delete

1 2

15 19

?13 20

7 8 11 12

21 23

4

3 6

10

merge

Page 69: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

69

B-Tree Delete

1 2

15 19

?13 20

7 8 11 12

21 23

4

3 6

10

merge

Page 70: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

70

B-Tree Delete

1 2

15 19

?13 20

11 12

21 23

4 6 7 8

3

10underflow

Page 71: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

71

B-Tree Delete

1 2

15 19

?13 20

11 12

21 23

4 6 7 8

3

10merge

Page 72: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

72

B-Tree Delete

1 2

15 19

?13 20

11 12

21 23

4 6 7 8

3

10merge

Page 73: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

73

B-Tree Delete

1 2

15 19

?

11 12

21 23

4 6 7 8

3 10 13 20

Page 74: B-Tree Insert Algorithm (i=2) · 38 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 39 B-Tree Insert Algorithm (i=2) 1 2 1415 3?101319. 40 B-Tree Insert Algorithm (i=2) 1 2 1415

74

B-Tree Delete

1 2

15 19

?

11 12

21 23

4 6 7 8

3 10 13 20

Free nodesthat are nolonger used