Question: For a Leftist Heap, rank(x) = 0 for a node x that is a leaf and rank(x) = 1 + min{rank(left(x)), rank(right(x))} for a node
(a) Show that the rank of the root is O(log n) (this is equivalent to saying that the length of the rightmost path (from the root) is O(log n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
