Priority Queues

The ADT

Possible Implementations

  1. Sorted List   -- too slow
  2. Binary Search Tree -- overkill
  3. Balanced Binary Search Tree (a later topic)

Binary Heaps

A complete binary tree with the additional property that at every vertex,
neither child is smaller than the vertex.  ( a partial ordering)

Concepctually a complete binary tree, but implemented as an array.

Properties -- for vertex at index i


Tuesday, 11-Apr-2000 15:19:08 EDT

Sorry! We could not find what you were looking for

Try going back to the main page here

 
4
4
0
0
0
0

Sorry! We could not find what you were looking for

Try going back to the main page here

 
4
4
0
0
0
0