Intro to Data Structures (Module 1) Flashcards

1
Q

what is a step-by-step procedure or set of rules designed to solve a specific problem or perform a task?

A

algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 steps an algorithm takes?

A

1) takes input
2) processes instructions
3) produces output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 characteristics of an algorithm?

A

1) Finiteness
2) Input/Output
3) Effectiveness

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 reasons why we use algorithms?

A

1) problem-solving
2) optimization
3) automation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a systematic way of organizing, managing, and storing data to have efficient access and modification?

A

data structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a contiguous block of memory with random access capability?

A

array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a collection of nodes where each node points to the next (or previous) node?

A

Linked List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a data structure that maps keys to values using a hash function?

A

Hash Table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Data structures focuses on how data is ________ and __________.

A

organized, stored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Data structures serves as a building block to implement ________.

A

ADTs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: Algorithms rely on data structures to manage/manipulate data?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Will choosing the right data structure improve algorithm efficiency?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a “conceptual” model that defines a data type based on its behavior instead of its implementation?

A

Abstract Data Types (ADT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What defines operations like push, pop, and peek with Last In, First Out (LIFO) behavior?

A

stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What has operations like enqueue and dequeue with a First In, First Out (FIFO) behavior?

A

queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 3 key characterstics of ADTs?

A

1) Encapsulation
2) Interface-Driven
3) Implementation Independence

17
Q

Implementation details hidden from the user is called?

A

Encapsulation