Data Structure & Algorithms Flashcards
1
Q
In-order Tree Traversal
A
Inorder = BAC
Left → Up → Right
2
Q
Preorder Tree Traversal
A
Preorder = ABC
Up → left → Right
3
Q
Postorder Tree Traversal
A
Postorder = BCA
Left → Right → Up
4
Q
Preorder Tree Traversal
(Algorithm)
A
Appends before traversing left and right
5
Q
Inorder Tree Traversal
(Algorithm)
A
Appends after traversing left
6
Q
Postorder Tree Traversal
(Algorithm)
A
After traversing all of the nodes