Algorithm 7 Get Parent of xx in Time Linear to xx’s Number of Children

1:procedure Parent(xx)

2:p=x.leftp = x.left-childchild

3:while not p.rightp.right-siblingsibling-toto-parentparent do

4:p=p.rightp = p.right-siblingsibling

5:end while

6:return p.rightp.right-siblingsibling

7:end procedure