GATE CS 2019 · Arrays & Matrix Representation

NAT · 2 marks · Problem PROG-DSTR-0109

Let T be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves a and b of T are chosen uniformly and independently at random. The expected value of the distance between a and b in T (i.e., the number of edges in the unique path between a and b) is (rounded off to 2 decimal places) .

Numerical answer (NAT).

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: [4.25, 4.25].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/302802/gate2019-cs-46

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com