Week 1 & 2 Flashcards

1
Q

Data Structures are a collection of?

A

Data values that have relationships among them

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

What are Algorithms?

A

a finite sequence of precise instructions for solving a problem

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

What is Abstraction?

A

Hiding implementation details in order to reduce complexity and increase manageability

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

What are three things DS’s do?

A

They store data, answer queries and perform updates

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

Why do we need DS’s?

A

Every part of a computer system has non-trivial data structures in it

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

What is a DS Interface?

A

What the data structure represents (ADTS) and what operations it supports (WHAT IT DOES)

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

What is an Implementation of a DS?

A

The performance (speed + memory). How long each operation takes and how much space it uses (HOW IT IS DONE)

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

What do Lists store?

A

An indexed sequence of elements

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

What do Queues store?

A

Elements that are accessed first in, first out

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

What do stacks store?

A

Store elements that are accessed in first-in-last-out order

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

What do priority queues store?

A

Elements that are accessed by minimum priority first

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

What is a set?

A

An unordered collection containing distinct elements

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

What is a map?

A

A set of keys to values

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

What is a linked list?

A

A node-based list that is a cycle, each node is connected to the one previous, and after

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