Binary Trees Flashcards

1
Q

What is a binary tree?

A

Binary trees are trees where each node has either 0, 1 or

2 children.

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

What is Breadth-first search?

A

When you visit each node in order of each level. (Root, all parent, all leaf etc.)

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

What is depth-first search?

A

Depth-first searches travel recursively down to the leaves

and then back up.

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