Common

Queue (abstract data type)

Abstract data type

Queue (abstract data type)

Common card · No. 273278

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 Dequeue, which removes one element from the front of the queue. Other operations may also be allowed, often including a peek or front operation that returns the value of the next element to be dequeued without dequeuing it. The operations of a queue make it a first-in-first-out (FIFO) data structure as the first element added to the queue is the first one removed. This is equivalent to the requirement that once a new element is added, all elements that were added before have to be removed before...

Read on Wikipedia · Image This Image was created by User:Vegpuff. If you are using the image under the creative commons share alike license please credit the photo Vegpuff/Wikipedia and include a link to this page. No explici…, CC BY-SA 3.0

Open boosters, collect cards and trade them. Free to play.

Play for free
Queue (abstract data type) – Common Wikipedia card | Wikiverse TCG