Q1
- Draw a single binary tree that gave the following traversals: Inorder: SAEUYQRPDFKLM Preorder: FASQYEUPRDKLM
- Assume that the binary tree from Question (a) above is stored in an array-list as a complete binary tree as discussed in class. Specify the contents of such an array-list for this tree.
Q2
Give an algorithm for computing the depths of all the nodes of a tree T, where n is the number of nodes of T, in O (n)-time.