Home > Term: queue
queue
A collection of items in which only the earliest added item may be accessed. Basic operations are add (to the tail) or enqueue and delete (from the head) or dequeue. Delete returns the item removed. Also known as "first-in, first-out" or FIFO. Formal Definition: It is convenient to define delete or dequeue in terms of remove and a new operation, front. The operations new(), add(v, Q), front(Q), and remove(Q) may be defined with axiomatic semantics as follows.
- new() returns a queue
- front(add(v, new())) = v
- remove(add(v, new())) = new()
- front(add(v, add(w, Q))) = front(add(w, Q))
- remove(add(v, add(w, Q))) = add(v, remove(add(w, Q)))
- Part of Speech: noun
- Industry/Domain: Computer science
- Category: Algorithms & data structures
- Government Agency: NIST
0
Creator
- GeorgeV
- 100% positive feedback