Consider a weighted complete graph \(๐บ\) on the vertex setโ€ฆ

2016

Consider a weighted complete graphย \(๐บ\)ย on the vertex setย \(\{๐œˆ_1,๐œˆ_2,....๐œˆ_๐‘›\}\)ย such that the weight of the edgeย \((๐œˆ_๐‘–,๐œˆ_๐‘—)\)ย isย \(4|๐‘–โ€“๐‘—|.\) The weight of minimum cost spanning tree ofย \(๐บ\) is :

  1. A.

    \(4n^2\)

  2. B.

    \(n\)

  3. C.

    \(4n - 4\)

  4. D.

    \(2n - 2\)

Attempted by 139 students.

Show answer & explanation

Correct answer: C

Answer: 4n - 4

Reasoning:

  • Edge weights are given by 4|i - j|, so any edge joining consecutive vertices vi and vi+1 has weight 4.

  • A spanning tree on n vertices uses exactly n-1 edges, so using the n-1 consecutive edges (v1โ€“v2, v2โ€“v3, โ€ฆ, v_{n-1}โ€“v_n) gives total weight 4 + 4 + โ€ฆ + 4 = 4(n-1).

  • To see this is minimal, consider any cut that separates the first k vertices {v1,โ€ฆ,vk} from the rest. The smallest edge crossing that cut is between vk and vk+1 and has weight 4, so any spanning tree must include at least one crossing edge of weight at least 4 for each such cut. There are n-1 such cuts, giving a lower bound of 4(n-1).

  • Since the chain of consecutive vertices attains this lower bound, the minimum possible spanning tree weight is 4(n-1) = 4n - 4.

A video solution is available for this question โ€” log in and enroll to watch it.

Explore the full course: Coding For Placement