Data Structures & Algorithms in Java: Working with Queues


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this course, you’ll explore a popular data structure, the queue. Queues offer first in, first out access. All additions to the queue are done at one end, which is the rear of the queue, and removals from the queue are done from the front of the queue. You'll learn how to implement a queue using arrays and linked lists and you’ll also examine a related data structure, the deque - basically the queue with additional operations. Next, you'll learn about implementations of the stack and queue, which are part of the standard Java library. Finally, you'll see how you can work with the priority queue, which allows you to access elements in the order of priority.



Expected Duration (hours)
1.8

Lesson Objectives

Data Structures & Algorithms in Java: Working with Queues

  • discover the key concepts covered in this course
  • recall the basic characteristics of a queue
  • perform simple operations using Is Full, Is Empty, and Size on a queue implemented using arrays
  • enqueue elements in a queue implemented using arrays
  • dequeue elements in a queue implemented using arrays
  • recall why enqueue is an O(N) operation in a queue implemented using arrays
  • enqueue elements in a queue implemented as a circular queue
  • dequeue elements in a queue implemented as a circular queue
  • enqueue elements in a queue implemented using linked lists
  • dequeue elements and peek into a queue implemented using linked lists
  • implement a double-ended queue
  • build a queue using two stacks
  • use the built-in classes in Java for queues and stacks
  • use the priority queue and specify priorities using a comparator
  • summarize the key concepts covered in this course
  • Course Number:
    it_jddsajdj_05_enus

    Expertise Level
    Intermediate