Data Structures Flashcards

1
Q

What is a linked list?

A

A data structure that represents a sequence of nodes.

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

What is a singly linked list?

A

Each node in a singly linked list points to the next node in the linked list.

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

What is a doubly linked list?

A

Each node points to both the next node and the previous node.

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

What is a data structure?

A

A set of variables that an algorithm uses to solve a problem. Can be as simple as an int variable or an array of strings, or super complex like with graphs, etc.

Choosing the right data structure can make algorithms more efficient.

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

Abstract Data Type (ADT)

A

A coordinated group of data structures + algorithms + interface functions used to solve a particular problem. Data structures and algorithms are a secret in ADT. It provides an interface to enable the rest of the program to use the ADT.
A program is build from a collection of ADTs, each solving a different sub-problem.

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

“Interface” functions

A

A simple set of functions that hide the complexity of the data structures and algorithms in an ADT.

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