4.2 Fundamentals of Data Structures Flashcards

Understand topic 4.2

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

Which data type is LIFO?

A

A stack

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

Which data type is FIFO

A

A queue

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

What type of graph is a tree?

A

A connected, undirected graph with no cycles.

It does not have to have a root.

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

What is a root?

A

The only node with no parent.

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

What is a binary tree?

A

A rooted tree in which each node has at most two children.

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