Data Structure Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what’s a data structure?

A

it’s simply a way of representing the data held in a computer’s memory.

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

what is a static data structure?

A

static data structures is where the size of the data structure is set at the beginning of the program and can’t be changed. It’s limiting because it means you need to know in advance how large structure will be. the good thing is that they’re easy to program.

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

what is a dynamic structure?

A

don’t have limited size and expand or shrink. they are more complex to implement.

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

What notation is used to describe the efficiency of a data structure or algorithm?

A

big o notation

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

what is an array?

A

an array is a collection of variables of the same type grouped under a single identifier.

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

what do the nodes in a linked list contain?

A

nodes consists of two things: data and a pointer to the next piece of data.

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

What is the first in first out data structure?

A

queues.

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

What is the last in first out data structure?

A

stack

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

What is the last in first out data structure?

A

stack

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

which two dataset are combined to create a graph data structure?

A

VERTICES AND EDGES!

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