Attached figure [lib1312061.jpg] shows a subtree rooted at vertex p. Given that the level number for vertex u is 37,
(a) What are the level numbers for vertices p, s, t, v, w, x, y and z?
(b) How many ancestors do vertices u and y have?
Solution computes the level numbers and ancestors of tree vertices under the assumption that the level number for root vertex is 0.