홈 > 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)))
- 품사: noun
- 분야/도메인: 컴퓨터 과학
- 카테고리: Algorithms & data structures
- Government Agency: NIST
0
작성자
- GeorgeV
- 100% positive feedback