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