answersLogoWhite

0

A queue is a data structure that allows adding elements at one end (the tail of the queue), and removing them from the other end (the head).

Adding at the tail is sometimes called enqueueing, and removing from the head is dequeueing.

Inserting or removing elements at other places is not permitted.

There may also be operations to examine the element at the head of the queue without removing it (peeking), and to find out how many elements there are in the queue.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is fifo data structure?

FIFO, means "First In, First Out". An example of such a data structure is a queue.


What is the need of circular queue in data structures?

Circular queue is a linear data structure that follows the First In First Out principle. A re-buffering problem often occurs for each dequeue operation in a standard queue data structure. This is solved by using a circular queue which joins the front and rear ends of a queue.


What are types of Queue?

Queue is a data structure which is based on FIFO that is first in first out. Following are the types of queue: Linear queue Circular queue Priority queue Double ended queue ( or deque )


What is single dimension in data structure?

Array, Stake, Queue.


What is a batch queue?

A batch queue is a system software data structure maintained by job scheduler software.


Is a heap a type of tree structure?

No, a heap is not a type of tree structure. A heap is a specialized tree-based data structure commonly used in computer science for efficient priority queue operations.


How do you determine symmetry of a data structure For example how do you know if a Stack or a queue or a priority queue or a double ended queue are symmetric?

You can determine symmetry of a data structure in two ways. One is when the stacks and queues data are put in the application and when the stacks are put in during run-time.


What is most appropriate data structure to implement priority queue?

heap


What is first in first out data structure?

QUEUE is the first in first out (FIFO) data structure. It is a linear data structure in which insertion of an element is done from rear end of a list and deletion of an element is done from front end of a list. For example- people in queue waiting for bus.


Can stack be called fifo data structure?

No. A stack is a LIFO (Last In First Out) data structure.A queue is a FIFO (First In First Out) data structure.


Which data structure represents a waiting line and limits insertions to be made at the back of the data structure and limits removals to be made from the front?

Queue.


Where can Java Queue be downloaded?

A 'queue' is a particular kind of data structure that Java is capable of working with. There are no products called "Java Queue" and is thus not something one can download.