Introduction to Algorithms and Data Structures

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

1/10

flashcard set

Earn XP

Description and Tags

mid asf

Last updated 3:38 AM on 2/9/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

What is a Data Structure?

A way of organizing and storing data efficiently.

2
New cards

What are primitive data types?

Basic data types such as int and char.

3
New cards

What is an Algorithm?

A step-by-step process to manipulate data and solve problems.

4
New cards

What must an algorithm be in order to be considered valid?

Finite, provide an output, and follow a structured approach.

5
New cards

What is an Abstract Data Type (ADT)?

A logical description of data storage and operations without implementation details.

6
New cards

What does the push() operation do in a Stack?

It adds an item to the stack.

7
New cards

In a Queue, what does the enqueue() operation do?

It adds an item to the queue.

8
New cards

What is the difference between Linear and Non-Linear Data Structures?

Linear structures have sequential order, while non-linear structures do not.

9
New cards

What is an example of a Non-Linear Data Structure?

Tree or Graph.

10
New cards

What is the main advantage of Dynamic Data Structures?

They can grow or shrink as needed.

11
New cards

What does memory fragmentation occur from?

Continuous allocation/deallocation of memory in dynamic structures.