data structures finals

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

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:06 PM 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

17 Terms

1
New cards

Queue

is a linear data structure that follows FIFO (First In, First Out).

2
New cards

Enqueue()

Adding element at the REAR

3
New cards

Dequeue()

Removing element at the FRONT

4
New cards

First()

returns first element without removing

5
New cards

Size()

returns number of elements

6
New cards

Is Empty()

checks if queue has no elements (size)

7
New cards

Is Full()

checks if queue reached capacity (maximum capacity)

8
New cards

Basic Queue

one direction

9
New cards

Circular Queue

connects last position to first

10
New cards

Advantages:

- Efficient memory usage

- Reuses freed space

- Continuous operations

11
New cards

Deque (Double-Ended Queue)

Insert and remove from BOTH ends

12
New cards

Importance:

- Organizes data (FIFO)

- Used in real systems

- Controls process flow

- Improves efficiency

13
New cards

Is Empty() Checks if Size == 0 TRUE → Empty FALSE → Not Empty

is empty reminder

14
New cards

Front = Front + 1 Size = Size - 1

dequeue reminder

15
New cards

Rear = Rear + 1 Size = Size + 1

enqueue reminder

16
New cards

EMPTY If Size = 0,

FULL (not ISFULL),

If Size = Maximum Array Size

reminder about empty, full and size

17
New cards

Is Full() Checks if Size == Maximum Array Size TRUE → Full FALSE → Not Full

if full reminder