Since the priority queue is implemented by a heap (class ABA_BHEAP) the insertion of a new element and the deletion of the minimal element require O(log n) time if n elements are stored in the priority queue.
#include <bprioqueue.h>
Inheritance diagram for ABA_BPRIOQUEUE< Type, Key >::
|
Extends the function getMin(min) in the way that the minimal element is also removed from the priority queue.
Since the priority queue is implemented by a heap (class ABA_BHEAP) the insertion of a new element and the deletion of the minimal element require O(log n) time if n elements are stored in the priority queue.
Definition at line 57 of file bprioqueue.h.
The constructor of an empty priority queue.
Inserts an element in the priority queue.
Retrieves the element with minimal key from the priority queue.
0 If the priority queue is non-empty,
1 otherwise.
Retrieves the key of the minimal element in the priority queue.
0 If the priority queue is non-empty,
1 otherwise.
Extends the function getMin(min) in the way that the minimal element is also removed from the priority queue.
0 If the priority queue is non-empty,
1 otherwise.
Makes the priority queue empty.
The maximal number of elements which can be stored in the priority queue.
The number of elements stored in the priority queue.
Increases the size of the priority queue.
It is not allowed to decrease the size of the priority queue. In this case an error message is output and the program stops.
A pointer to the corresponding global object.
Definition at line 131 of file bprioqueue.h.
The heap implementing the priority queue.
Definition at line 135 of file bprioqueue.h.
The documentation for this class was generated from the following file: