Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 4 2 8 7 9 3 10 14 16 HEAP-EXTRACT-MAX(A).

Similar presentations


Presentation on theme: "1 4 2 8 7 9 3 10 14 16 HEAP-EXTRACT-MAX(A)."— Presentation transcript:

1 1 4 2 8 7 9 3 10 14 16 HEAP-EXTRACT-MAX(A)

2 1 4 2 8 7 9 3 10 14 16 HEAP-EXTRACT-MAX(A)

3 1 14 10 8 7 9 3 2 4 HEAP-EXTRACT-MAX(A)

4 1 14 10 8 7 9 3 2 4 HEAP-EXTRACT-MAX(A)

5 14 1 10 8 7 9 3 2 4 HEAP-EXTRACT-MAX(A)

6 14 1 10 8 7 9 3 2 4 HEAP-EXTRACT-MAX(A)

7 14 8 10 1 7 9 3 2 4 HEAP-EXTRACT-MAX(A)

8 14 8 10 1 7 9 3 2 4 HEAP-EXTRACT-MAX(A)

9 14 8 10 4 7 9 3 2 1 HEAP-EXTRACT-MAX(A)

10 1 4 2 8 7 9 3 10 14 16 HEAP-INCREASE-KEY(A, 9, 15)

11 16 14 10 8 7 9 3 2 1 15 HEAP-INCREASE-KEY(A, 9, 15)

12 16 14 10 8 7 9 3 2 1 15 HEAP-INCREASE-KEY(A, 9, 15)

13 16 10 14 15 7 9 3 2 1 8 HEAP-INCREASE-KEY(A, 9, 15)

14 16 10 14 15 7 9 3 2 1 8 HEAP-INCREASE-KEY(A, 9, 15)

15 16 10 15 7 9 3 14 2 1 8 HEAP-INCREASE-KEY(A, 9, 15)

16 ? 16 10 15 7 9 3 14 2 1 8 HEAP-INCREASE-KEY(A, 9, 15)

17 16 10 15 7 9 3 14 2 1 8 HEAP-INCREASE-KEY(A, 9, 15)

18 16 14 10 8 7 9 3 2 4 1 5 MAX-HEAP-INSERT(A, 12)

19 16 14 10 8 7 9 3 2 4 1 5 MAX-HEAP-INSERT(A, 12)

20 16 14 10 8 7 9 3 2 4 1 5 - MAX-HEAP-INSERT(A, 12)

21 16 14 10 8 7 9 3 2 4 1 5 12 MAX-HEAP-INSERT(A, 12)

22 16 14 10 8 7 9 3 2 4 1 5 12 MAX-HEAP-INSERT(A, 12)

23 16 14 10 8 7 12 3 2 4 1 5 9 MAX-HEAP-INSERT(A, 12)

24 16 14 10 8 7 12 3 2 4 1 5 9 MAX-HEAP-INSERT(A, 12)

25 16 14 12 8 7 10 3 2 4 1 5 9 MAX-HEAP-INSERT(A, 12)

26 ? 16 14 12 8 7 10 3 2 4 1 5 9 MAX-HEAP-INSERT(A, 12)

27 16 14 12 8 7 10 3 2 4 1 5 9 MAX-HEAP-INSERT(A, 12)


Download ppt "1 4 2 8 7 9 3 10 14 16 HEAP-EXTRACT-MAX(A)."

Similar presentations


Ads by Google