2
Example of Inserting into a red-black tree 10,85,15,70,20,60,30,50,65,8 0,90,40,5,55 1 0 8 5 1 5 1 5 8 5 1 0 1 5 8 5 1 0 7 0 2 0 1 5 7 0 1 0 2 0 8 5 1 5 7 0 1 0 2 0 8 5 6 0 3 0 1 5 7 0 1 0 3 0 8 5 6 0 2 0 1 5 7 0 1 0 3 0 8 5 6 0 2 0 3 0 7 0 1 5 6 0 8 5 2 0 1 0 5 0

Example of Inserting into a red-black tree

Embed Size (px)

DESCRIPTION

Example of Inserting into a red-black tree. 10,85,15,70,20,60,30,50,65,80,90,40,5,55. 10. 15. 15. 15. 85. 10. 85. 10. 85. 10. 70. 15. 70. 20. 85. 20. 30. 15. 15. 15. 15. 70. 10. 70. 10. 70. 10. 70. 10. 20. 60. 85. 20. 85. 30. 85. 30. 85. 50. 60. 20. 60. - PowerPoint PPT Presentation

Citation preview

Page 1: Example of   Inserting into a red-black tree

Example of Inserting into a red-black tree

10,85,15,70,20,60,30,50,65,80,90,40,5,55

10

85

15

15

8510

15

8510

70

20

15

7010

20 85

15

7010

20 85

60

30

15

7010

30 85

6020

15

7010

30 85

6020

30

7015

60 852010

50

Page 2: Example of   Inserting into a red-black tree

30

7015

60 852010

50 65 80 90

30

7015

60 852010

50 65 80 90

30

7015

60 852010

50 65 80 90

40 55

55

Add 35

30

7015

60 852010

50 65 80 90

40 55

5

30

6015

85

2010 50

65

80 90

40 555

70

35