2/3 Flashcards

(8 cards)

1
Q

Class

A

Combo of data structures and algorithms

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

Tree Traversal

A

Visit/process each data item only once.

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

Depth First Traversals

A

Preorder, in-order, post-order

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

Breadth First

A

Level order

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

Pre-order Traversal

A

Root, left, right

Root node is always processed first, rightmost node is always processed last.

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

In-order Traversal

A

Left, root, right

Leftmost node is always processed first
Rightmost node is always processed last

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

Post-order Traversal

A

Left, right, root

Leftmost node is always processed first
Root note is always processed last

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

Level-order Traversal

A

Traverse top/down and left to right

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