Traversing of trees Flashcards

1
Q

What is a breadth-first-search?

A

A method of traversing an entire graph by first visiting all neighbours of the first node before repeating the same with each neighbour in the order they were visited

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

What is depth-first-search?

A

A method of traversing an entire graph by travelling as far along one route before back tracking and trying and alternative unexplored routes

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

What is pre-order traversal?

A

Root, Left, Right

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

What is in order-traversal?

A

Left, Root, Right

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

What is post-order traversal?

A

Left, Right, Root

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