|
creates priority queue
- Parameters
-
pqueue | pointer to a priority queue |
initsize | initial number of available element slots |
sizefac | memory growing factor applied, if more element slots are needed |
frees priority queue, but not the data elements themselves
- Parameters
-
pqueue | pointer to a priority queue |
clears the priority queue, but doesn't free the data elements themselves
- Parameters
-
inserts element into priority queue
- Parameters
-
pqueue | priority queue |
elem | element to be inserted |
removes and returns best element from the priority queue
- Parameters
-
returns the best element of the queue without removing it
- Parameters
-
returns the number of elements in the queue
- Parameters
-
returns the elements of the queue; changing the returned array may destroy the queue's ordering!
- Parameters
-
|