Whats the differents between a Queue and a Priority Queue
Pamela
Whats the differents between a Queue and a Priority Queue
Pamela
I'm not sure exactly what you are talking about, but let me try and help you.
A queue might be lined up in any order, such as order things were added...A priority queue might be lined up in accordance to each of the items in the queue. If you could give me a little more information about what you were talking about, I think I could help you out.
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
Ok ill try posting this again.. it didn't make it the first time
A queue is a simple First In First Out (FIFO) structure
Whatever is pushed in first, will be pulled out first.
A priority queue is like a queue, but it sortes the items in the queue. Using STL the default is to have the largest items be pulled out first, so no matter what order the items are pushed in, the biggest one will be pulled out first.
Check out this STL reference for some help
http://www.sgi.com/tech/stl/table_of_contents.html