If only the right child exists, count its subtree height plus the edge to it, giving B1=1+height(right). With both children present, the longer child subtree determines height, again plus one edge: B2=1+max(h1,h2). Thus A.
More Trees and Binary Search Trees questions
GATE 2013 CS (CS1) Q17– What is the tightest worst-case upper bound for inserting into a binary search tree with n…
GATE 2013 CS (CS1) Q53– A BST has preorder 30,20,10,15,25,23,39,35,42. Find its postorder.
GATE 2011 CS (CS1) Q39– An unlabelled binary-tree shape has n nodes and n distinct keys are supplied. In how many…
GATE 2010 CS (CS1) Q20– In a binary tree with n nodes, every node has an odd number of descendants, counting…
GATE 2015 CS (CS2) Q23– A binary tree T has 20 leaves. How many nodes have exactly two children?
GATE 2015 CS (CS3) Q21– A binary tree has 200 leaves. How many nodes have exactly two children?