|
|
priority queues
|
Posted: Mar 10, 2005 4:11 AM
|
|
|
Advertisement
|
Actually i am a c++ developer and i face a problem with priority queues.
I would like to define a priority queue<int,int>.
Each element of the queue is represented by two integers. How does the priority queue classify the elements?
As far as i know it classifies the elements from the maximum value to the minimum.
According to which integer, the priority queue will classify the elements?
I simply want to extract each time the maximum element of the queue, according to the first integer(for example).
Thakn you in advance for your consideration.
|
|