Queue Data Structure Review

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

flashcard set

Earn XP

Description and Tags

This set of vocabulary flashcards covers the fundamental concepts, operations, types, and logic of the Queue data structure as described in the lecture notes.

Last updated 9:53 AM on 6/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Queue

A linear data structure that follows the FIFO (First In, First Out) principle.

2
New cards

FIFO

Stands for First In, First Out, the operational principle of a queue.

3
New cards

Enqueue()

A basic operation that adds an element at the REAR of the queue.

4
New cards

Dequeue()

A basic operation that removes an element at the FRONT of the queue.

5
New cards

First()

A function that returns the first element without removing it.

6
New cards

Size()

A function that returns the number of elements contained in the queue.

7
New cards

Is Empty()

A function that checks if the queue has no elements, returning TRUE if Size==0Size == 0.

8
New cards

Is Full()

A function that checks if the queue has reached its maximum capacity, returning TRUE if Size==Maximum Array SizeSize == \text{Maximum Array Size}.

9
New cards

Basic Queue

A type of queue that operates in one direction.

10
New cards

Circular Queue

A type of queue that connects the last position to the first, allowing for efficient memory usage and the reuse of freed space.

11
New cards

Deque (Double-Ended Queue)

A type of queue where elements can be inserted and removed from BOTH ends.

12
New cards

Enqueue Formula

The logic represented by Rear=Rear+1Rear = Rear + 1 and Size=Size+1Size = Size + 1.

13
New cards

Dequeue Formula

The logic represented by Front=Front+1Front = Front + 1 and Size=Size1Size = Size - 1.

14
New cards

EMPTY Condition

A state that occurs if Size=0Size = 0.

15
New cards

FULL (Condition)

A state that occurs if Size=Maximum Array SizeSize = \text{Maximum Array Size}.