SLIDE 1
403: Algorithms and Data Structures Heapsort and Priority Queues
Fall 2016 UAlbany Computer Science
Some slides borrowed from David Luebke
1
403: Algorithms and Data Structures Heapsort and Priority Queues - - PowerPoint PPT Presentation
403: Algorithms and Data Structures Heapsort and Priority Queues Fall 2016 UAlbany Computer Science 1 Some slides borrowed from David Luebke Context We defined heaps almost complete binary trees A[ Parent ( i )] A[ i ]
Some slides borrowed from David Luebke
1
16 14 10 8 7 9 3 2 4 1
16 14 10 8 7 9 3 2 4 1 A = =
2
3
4
5
4 1 3 2 16 9 10 14 8 7
6
7
8
9
10
11
12
13
14
15
16
17
18
19