Trees Flashcards

1
Q

What is a tree?

A

A set of nodes where there is a root node and - or more subsets which are trees themselves.

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

What does trees being acyclic mean?

A

There are no cycles (There are no nodes pointing back towards in the tree.

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

What is height of a tree?

A

Longest path from root to leaf node.

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

What is depth of a tree?

A

The depth of a given node is the length of the path from

the root to that node

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