FrontendX
Prove cut property: lightest crossing edge in every MST
medium
Blind solve
Description
AI Assistance
Solution
Test Cases
Test Result
Submissions
Canvas
Prove cut property: lightest crossing
edge in every MST
Analyze the prove cut property: lightest crossing edge in every mst.
Examples
Example 1
Input:
"proof_case_1"
Output:
true
Example 2
Input:
"proof_case_2"
Output:
true
Hints
Hint 1
Recall the definition of a cut in a graph and how it partitions the vertices into two disjoint sets.
Hint 2
Consider how the lightest edge crossing a cut relates to the edges in any MST of the graph.
Hint 3
Prove that if an edge is the lightest crossing edge for some cut, it must be included in every MST of the graph.
Related Problems
prove-kruskal-correctness-via-cut-property
prove-cycle-property-heaviest-cycle-edge-not-in-any-mst
minimum-spanning-tree-kruskal
1
/**
2
* @param {string} input
3
* @return {boolean}
4
*/
5
function solve(input) {
6
// solve Prove cut property: lightest crossing edge in every MST problem here
7
return false;
8
}
Click to start editing · javascript
Prove cut property: lightest crossing edge in every MST
Analyze the prove cut property: lightest crossing edge in every mst.