Graph Algorithms

Answer & solution
Official answer: 5
Approach: Find a cut on which BC is uniquely cheapest, then test the equality boundary because “every MST” is stronger than “some MST”.
Consider cut {B,D}|{A,C}. Its crossing edges have weights BC=x, DA=6, BA=7 and DC=8. If x<6, BC is the unique lightest edge of this cut. By the cut property it must occur in every MST. In detail, any spanning tree omitting BC has another crossing edge on the path connecting B to C; adding BC and removing that heavier crossing edge lowers its weight, contradicting minimality.
At x=6, the tree {BD,AC,AD} has weight 1+3+6=10 and omits BC. The tree {BD,AC,BC} also has weight 10, and no spanning tree can have smaller weight than the three globally smallest edge weights, which sum to 10. Thus BC is no longer mandatory.
For x>6, BC is uniquely heaviest on cycle B-D-A-C-B, whose other weights are 1,6,3, so the cycle property excludes it from an MST. Therefore the required condition is x<6, and the largest integer is 5. Equality cannot be included just because a tie allows an MST containing BC.