About 725,000 results
Open links in new tab
  1. Queue Data Structure - GeeksforGeeks

    Apr 7, 2025 · Like a stack, the queue is a linear data structure that stores items in a First In First Out (FIFO) manner. With a queue, the least recently added item is removed first. A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. Operations

  2. Introduction to Queue Data Structure - GeeksforGeeks

    Mar 28, 2025 · A Queue Data Structure is a fundamental concept in computer science used for storing and managing data in a specific order. It follows the principle of "First in, First out" (FIFO), where the first element added to the queue is the first one to be removed.

  3. Queue Data Structure - Online Tutorials Library

    Queue Data Structure - Learn about the Queue data structure, its types, operations, and applications in computer science. Understand how to implement queues effectively.

  4. Queue Data Structure and Implementation in Java, Python and …

    Queue operations work as follows: We usually use arrays to implement queues in Java and C/++. In the case of Python, we use lists. self.k = k. self.queue = [None] * k. self.head = self.tail = -1 # Insert an element into the queue def enqueue(self, data): if (self.tail == self.k - 1): print("The queue is full\n") elif (self.head == -1):

  5. Queue in Data Structures - Types & Algorithm (With Example)

    Jan 15, 2025 · This principle is widely used in various applications of Queue in data structures, such as task scheduling, buffering, and handling asynchronous data. There are different types of queues in data structures, including simple queues, circular queues, and priority queues.

  6. Queue Data Structure: Types, Example, Operations, Full Guide

    Feb 20, 2025 · What is Queue in Data Structure? A queue in data structures is a fundamental concept where elements are arranged in a sequence, and operations are performed based on the First In, First Out (FIFO) principle. This means that the first element added to the queue will be the first one to be removed.

  7. Basic Operations for Queue in Data Structure - GeeksforGeeks

    Mar 28, 2025 · Queue is a linear data structure that follows FIFO (First In First Out) Principle, so the first element inserted is the first to be popped out. Some of the basic operations for Queue in Data Structure are: enqueue () – Insertion of elements to the queue. dequeue () – Removal of elements from the queue.

  8. DSA Queues - W3Schools

    Queues can be implemented by using arrays or linked lists. Queues can be used to implement job scheduling for an office printer, order processing for e-tickets, or to create algorithms for breadth-first search in graphs. Queues are often mentioned together with Stacks, which is a similar data structure described on the previous page.

  9. Queue Data Structure With Examples (2025) By Logicmojo

    For example, a queue can be used as a data structure to store elements in a recursive algorithm for breadth-first search (BFS) or level-order traversal of a tree or graph. In these cases, the queue is used to process nodes or elements in a specific order while the recursive function handles the logic and decision-making process.

    • Reviews: 8.6K
    • Queue Data Structure – Complete Guide (Types, Example, …

      From simple linear queues to more advanced circular and priority queues, understanding their differences is key to selecting the right one for your application. Let explain its major types. 1. Simple Queue (Linear Queue)

    Refresh