Stacks and Queues

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts, operations, and implementations related to stacks and queues in C++.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

Stack

A LIFO (last in, first out) data structure.

2
New cards

LIFO

Last in, first out; a principle describing the order of operations in a stack.

3
New cards

Static Stack

A stack of fixed size, often implemented using an array.

4
New cards

Dynamic Stack

A stack whose size varies as needed, often implemented using a linked list.

5
New cards

push

An operation that adds a value at the top of the stack.

6
New cards

pop

An operation that removes a value from the top of the stack.

7
New cards

isEmpty

A Boolean function that returns true if the stack currently contains no elements.

8
New cards

Overflow

An exception that occurs when trying to push onto a full stack.

9
New cards

Underflow

An exception that occurs when trying to pop from an empty stack.

10
New cards

Queue

A FIFO (first in, first out) data structure.

11
New cards

FIFO

First in, first out; a principle describing the order of operations in a queue.

12
New cards

enqueue

An operation that adds an element to the rear of the queue.

13
New cards

dequeue

An operation that removes an element from the front of the queue.

14
New cards

Circular Array

An array structure where the indices wrap around, allowing efficient use of space.

15
New cards

STL

Standard Template Library; a collection of C++ template classes.

16
New cards

deque

A double-ended queue that allows insertion and removal of elements from both ends.