Skip to content
queue

File:Data_Queue.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ220543· pop 50· linked from 206 articles

Also known as queue data type, queue data structure

abstract data type

Key facts

Operation
Average
Search
O( n )
Insert
O(1)
Delete
O(1)
Space
O( n )

via Wikipedia infobox

Wikidata facts

Image
Data Queue-ar.svg
Show 3 more facts
Commons category
Queue data structure
IPA transcription
ʈ͡ʂu˥˩lie˥˩
Sources (2)

via Wikidata · CC0

~12 min read

Article

In computer science, a queue is an abstract data type that serves as an ordered collection of entities. By convention, the end of the queue where elements are added is called the back, tail, or rear of the queue. The end of the queue where elements are removed is called the head or front of the queue. The name queue is an analogy to the words used to describe people in line to wait for goods or services. It supports two main operations.

Enqueue, which adds one element to the rear of the queue

Gallery (2)

Connections

Categories