Hi,
I am trying to understand priority queue. I have downloaded a lecture slide form the link:
http://www.bowdoin.edu/~ltoma/teaching/cs210/spring09/Slides/210-PQueue.pdf
(sorry its not inserting using Link)
However, on slide 5 it provides an example which I have attached. I can understand insert(3, B) which is at the end of queue. But I cant understand insert (7,D) which is in the middle. Can some body please guide me is this stuff correct or not? Is there any other good example of priority queues using arrays?
Zulfi.
I am trying to understand priority queue. I have downloaded a lecture slide form the link:
http://www.bowdoin.edu/~ltoma/teaching/cs210/spring09/Slides/210-PQueue.pdf
(sorry its not inserting using Link)
However, on slide 5 it provides an example which I have attached. I can understand insert(3, B) which is at the end of queue. But I cant understand insert (7,D) which is in the middle. Can some body please guide me is this stuff correct or not? Is there any other good example of priority queues using arrays?
Zulfi.
Attachments
-
49.7 KB Views: 6