Logo
Search
Search
View menu

Queue

Presentations | English

Queue is also an abstract data type or a linear data structure, just like stack data structure, in which the first element is inserted from one end called the REAR(also called tail), and the removal of existing element takes place from the other end called as FRONT(also called head). Which is exactly how queue system works in real world. If you go to a ticket counter to buy movie tickets, and are first in the queue, then you will be the first one to get the tickets. Right? Same is the case with Queue data structure. Data inserted first, will leave the queue first. The process to add an element into queue is called Enqueue and the process of removal of an element from queue is called Dequeue. In real life scenario, Call Centre phone systems uses Queues to hold people calling them in an order, until a service representative is free. The simplest example of a queue is the typical line that we all participate in from time to time. We wait in a line for a movie, we wait in the check-out line at a grocery store, and we wait in the cafeteria line. Computer science also has common examples of queues.

Picture of the product
Lumens

7.50

Lumens

PPTX (30 Slides)

Queue

Presentations | English