Unit 7 - Data Structures

0.0(0)
studied byStudied by 0 people
0.0(0)
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:01 PM on 2/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Tree

A tree is a connected, undirected graph with no cycles

2
New cards

Binary Tree

A rooted tree with a maximum of 2 children.

3
New cards

Ways to traverse a tree

Pre-order, In-order, Post-Order

4
New cards

Balanced Tree

The nodes are distributed in a way that eight is kept to a minimum

5
New cards

Elementary data type

Data types provided by programming languages

6
New cards

Examples of Elementary Data Types

Characters, integers, boolean, float,

7
New cards

Composite Data Type

Combination of elementary data types, they store multiple values.

8
New cards

Examples of Composite Data Types

String, Array,

9
New cards

Abstract Data Type

Operations that can be performed on data structures

10
New cards

Examples of Abstract Data Types

Queues, Lists, Stacks, Tree, Graph, Dictionary

11
New cards

Queue

Its an array that only allows data to be inserted from one end and retrieved from the other.

12
New cards

What structure is Queues?

FIFO

13
New cards

Examples of where queues are used in real life

At a checkout, entering a cinema, school lunch line

14
New cards

What are some examples of queue operations

  1. Enqueue(item)

  2. Dequeue

  3. isEmpty

  4. isFull

  5. Size

  6. Maxsize

15
New cards

Static data structure

They cannot grow or shrink in size

16
New cards

Dynamic Data Structure

They can grow and shrink in size

17
New cards

Advantage of linear queue

Simple to program

18
New cards

Disadvantage Linear Queues

Can’t reuse space

19
New cards

Usage for Linear Queues

School lunch line

20
New cards

Advantage of Circular Queue

Can reuse spaces

21
New cards

Disadvantage of Circular Queues

More complex to program

22
New cards

Usage of Circular Queues


Documents waiting to be printed

23
New cards

Advantage of Priority Queue

Gives importance to items

24
New cards

Disadvantage of Priority Queue

Additional processing required

25
New cards

Usage of Priority Queue

Accidents and Emergencies

26
New cards

Explore top flashcards