What is a priority queue and what are it’s operations?

What are the applications of a priority Queue?
Hospital emergency room
Event-Driven simulations

How does a priority queue compare to a queue?

What are the implementations of a priority queue, what are their speeds of operations and which is the best?
What is the definition of a full tree?

Define a complete tree

What is the definition of heap ordered?



What is the definition of a heap

In general how is an array used to implement a heap?

With no pointers, how do we find a node’s children?

If 35 is stored in array index 5:



In general how do heap insertions work?




What is the code for insert (including the priority queue class)?

What is the code for siftUp?

What is the code for swap?

In general how doe DeleteMax work?
DeleteMax the following heap







