Explanation : Maximum possible value of n for which we have
complete tree and our 't' node is the last leaf node
at height 4.
So, the maximum possible value of n
= 1 + 2 + 4 + 8 + 16
= 31
Explanation : Suppose G = (v, E) and G1 = (v, E1) such that
E1 ≤ E and v1 ≤ v
Consider an example
Consider the w(e) = 1 of e ∉ E1
it means the cost
of v1
to v4
is only 1 other edges having cost 0. It is
noted that G1
is connected (As shown in example).
Explanation : for i = 1 ton
for j = 1 ton
for K = 1 ton
A[j, K] = max (j, K], A[j, i) + a(i, K)]
Anxn Matrix and A[j, K] = 1 if (j, K) ∈ E
so there exist a path from J to K and must contain
A[j, K] edges