Algorithm 3 Binary Tree Traversal Recursive
Require: a binary tree TTT
Ensure: print all keys appearing in TTT
1:procedure PrintTree(xxx)
2:if x==NILx == NILx==NIL then
3:return
4:end if
5:print x.keyx.keyx.key
6:PrintTree(x.leftx.leftx.left)
7:PrintTree(x.rightx.rightx.right)
8:end procedure
9:
10:PrintTree(T.rootT.rootT.root)