GATEverse
← GATE CSE 1990

Q13a

NATMarks unknown

Consider the height-balanced tree TtT_{t} with values stored at only the leaf nodes, shown in Fig.4..4.

Figure 1

(i) Show how to merge to the tree, T1T_{1} elements from tree T2T_{2} shown in Fig.5.5 using node D of tree T1T_{1}.

Figure 2

(ii) What is the time complexity of a merge operation of balanced trees T1T_{1} and T2T_{2} where T1T_{1} and T2T_{2} are of height h1h_{1} and h2h_{2} respectively, assuming that rotation schemes are given. Give reasons.

Sign in to save attempts.

Loading…