The Artima Developer Community
Sponsored Link

C# Answers Forum
priority queues

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Dimitris Paras

Posts: 12
Nickname: dimpars
Registered: Feb, 2005

priority queues Posted: Mar 10, 2005 4:11 AM
Reply to this message Reply
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.

Topic: Document Imaging system/Scanning and indexing Previous Topic   Next Topic Topic: looking for Software Developer for MAC

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use