Describe the difference between a queue and a priority queue.
What will be an ideal response?
The queue has the data ordered by when they were added. The priority queue data items are ordered by some other value which specifies the priority (date, importance, etc.) When an item is removed from a queue, it is the item that was the first one entered by time. When an item is removed from a priority queue, it is the one with the highest priority (and first entered, if the same priority).
You might also like to view...
A use case:
A) summarizes an activity, its trigger, input, and output. B) describes a subsystem of a data flow diagram showing how the processes use data produced by other processes. C) describes how the data is partitioned into programs for different users. D) shows when the data is updated, read, created or deleted.
Most Creative Commons licenses require, at a minimum, that the user provide attribution to the author wherever the work is used.
Answer the following statement true (T) or false (F)