From charlesreid1

Revision as of 06:50, 3 June 2017 by Admin (talk | contribs) (Created page with "=Notes= ==Skiena Chapter 3== ===Basics of priority queues=== Priority queues are queues in which the elements are kept in a sorted order. Scheduling jobs of relative impo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Notes

Skiena Chapter 3

Basics of priority queues

Priority queues are queues in which the elements are kept in a sorted order.

Scheduling jobs of relative importance is example where items should be maintained in the queue in order of importance.

Priority queues provide more flexibility than simple searching, because they allow for new elements to enter the system at arbitrary intervals.

The cost-effectiveness of inserting a new job into a queue, instead of constantly sorting and resorting and resorting again.

Priority queue interface

See also: Abstract Data Types