Chapter 20 Flashcards
queue
An ordered set of objects waiting for a service of some kind.
Queue
An ADT that performs the operations one might perform on a queue.
queueing policy
The rules that determine which member of a queue is removed next.
FIFO
First In, First Out, a queueing policy in which the first member to arrive is the first to be removed.
priority queue
A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.
Priority Queue
An ADT that defines the operations one might perform on a priority queue.
linked queue
An implementation of a queue using a linked list.
constant time
An operation whose runtime does not depend on the size of the data structure.
linear time
An operation whose runtime is a linear function of the size of the data structure.