An undirected graph \(G(V,E)\) contains \(n \: (n>2)\) nodes named \(v_1,v_2,…

GATE · 2011 · CS · Computer Science & IT

An undirected graph G(V,E)G(V,E) contains n (n>2)n \: (n>2) nodes named v1,v2,…,vnv_1,v_2, \dots, v_n. Two nodes vi,vjv_i, v_j  are connected if and only if 0<∣i−j∣≤20 < \mid i-j\mid \leq 2. Each edge (vi,vj)(v_i,v_j) is assigned a weight i+ji+j. A sample graph with n=4n=4 is shown below.

What will be the cost of the minimum spanning tree (MST) of such a graph with nn nodes?

  1. A.

    112(11n2−5n)\frac{1}{12} (11n^2 - 5 n)

  2. B.

    n2−n+1n^2-n+1

  3. C.

    6n−116n-11

  4. D.

    2n+12n+1

Attempted by 262 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…