Data Structure & Algorithms Flashcards

1
Q

In-order Tree Traversal

A

Inorder = BAC

Left → Up → Right

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

Preorder Tree Traversal

A

Preorder = ABC

Up → left → Right

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

Postorder Tree Traversal

A

Postorder = BCA

Left → Right → Up

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

Preorder Tree Traversal

(Algorithm)

A

Appends before traversing left and right

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

Inorder Tree Traversal

(Algorithm)

A

Appends after traversing left

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

Postorder Tree Traversal

(Algorithm)

A

After traversing all of the nodes

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