Algorithm 5 Tree Traversal Recursive
Require: a tree using left-child, right-sibling representation
Ensure: print all keys appearing in
1:procedure PrintTree()
2:if then
3:return
4:end if
5:print
6:-
7:while do
8:PrintTree()
9:-
10:end while
11:end procedure
12:
13:PrintTree()