---
title: "How many the Types Of Queues in data structure ?"  
description: "How many the Types Of Queues in data structure ?"  
author: "Anonymous User"  
published: 2019-09-10  
updated: 2023-04-28  
canonical: https://www.mindstick.com/forum/95350/how-many-the-types-of-queues-in-data-structure  
category: "data structure"  
tags: ["data structure"]  
reading_time: 4 minutes  

---

# How many the Types Of Queues in data structure ?

Queues in the [data structure](https://www.mindstick.com/blog/11221/simple-way-to-learn-dynamic-data-structure-in-c-language).

## Replies

### Reply by Aryan Kumar

In data structure, there are several types of queues, some of them are:

1. **Linear Queue:** It is a basic queue where data elements are arranged in a sequential manner. It follows the FIFO (First-In-First-Out) principle, where the element that enters first will leave the queue first.
2. **Circular Queue:** A circular queue is similar to the linear queue, but the last element is connected to the first element to form a circular structure. This type of queue reduces the wastage of space in the memory and provides a more efficient way to manage the elements.
3. **Priority Queue:** A priority queue is a type of queue in which each element is assigned a priority value. The element with the highest priority is placed at the front of the queue, and the element with the lowest priority is placed at the back of the queue. This type of queue is useful in many applications, such as scheduling and resource management.
4. **Deque (Double-ended queue):** A deque is a queue that allows insertion and deletion of elements from both ends. It can be implemented using a doubly linked list or a circular array.
5. **Blocking Queue:** A blocking queue is a queue that blocks when it is full or empty. When a thread tries to insert an element into a full queue, it will block until there is space available. Similarly, when a thread tries to remove an element from an empty queue, it will block until an element is available.

These are some of the common types of queues used in data structures.

### Reply by Anonymous User

**Linear Queues** – A queue has two ends, the front end, and the rear end. The QUEUE is a simple [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) structure, which has FIFO ( First In First Out) property in which Items are removed in the same order as they are entered. The QUEUE has two pointer FRONT and REAR, Item can be pushed by REAR End and can be removed by FRONT End. You can traverse in a linear queue in only one direction i.e. from front to rear.

![How many the Types Of Queues in data structure ?](https://www.mindstick.com/mindstickforums/a20938e1-6e5f-4bb5-8abc-40ac2f58434d/images/af7d78e1-3574-4dc5-ab33-68db66217ab3.jpeg)\

**Circular Queues –** It is the different form of a linear queue in which the last position is connected to the first position of the list. A circular queue is similar to linear queue has two ends, the front end, and the rear end. That is the rear end is where we insert elements and front end is where we delete elements. You can traverse in a circular queue in only one direction i.e. from front to rear.

![How many the Types Of Queues in data structure ?](https://www.mindstick.com/mindstickforums/a20938e1-6e5f-4bb5-8abc-40ac2f58434d/images/e9749717-e710-4a25-be28-76c4dba27de9.jpeg)\

**Double-Ended-Queue –** This is also a type of queue that we know of as the Double-Ended-Queue, in which entry and deletion are performed at both the front and back ends of the queue. In another word, The double-ended queue also called as deque (pronounced as ‘deck’ or ‘dequeue’) is a list in which the elements can be inserted or deleted at either end in constant time. This is also known as a head-tail linked list because elements can be added to or removed from either the front (head) or the back (tail) end. Whereas, no element can be added and deleted from the middle. Into the computer’s memory, a deque is implemented using either a circular array or a circular doubly linked list. Into a deque, two pointers are maintained, LEFT and RIGHT, which point to either end of the deque. These elements in a deque extend from the LEFT end to the RIGHT end and since it is circular, in a deque of N elements, the nth element of the deque is followed by the first element of the deque.

![How many the Types Of Queues in data structure ?](https://www.mindstick.com/mindstickforums/a20938e1-6e5f-4bb5-8abc-40ac2f58434d/images/e049e22b-d65e-47bc-afe7-ebe00afe17bf.png)\


---

Original Source: https://www.mindstick.com/forum/95350/how-many-the-types-of-queues-in-data-structure

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
