Let ๐‘‡ be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves ๐‘Ž and ๐‘ of ๐‘‡ are chosen uniformly and independently at random

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

Solution:

Sum of distances from a particular leaf to the remaining 7 leaves is 34. The sum would remain the same for each leaf node. Therefore total sum of distance of all the leaf nodes = 34*8.

Two leaf nodes can be selected in 8*8 = 64 ways.

Therefore, the expected value of the length between a and b in T,

= (34*8) / (8*8)

= 34 / 8

= 4.25

We will be happy to hear your thoughts

Leave a reply

Gkseries.com
Logo
Register New Account