R icon indicating copy to clipboard operation
R copied to clipboard

Gomory hu tree

Open ArpitaHanjagi opened this issue 2 months ago • 1 comments

Algorithm: Gomory-Hu Tree

Purpose: Represents all-pairs minimum cuts in an undirected weighted graph as a tree.

Theory:

Each edge in the tree corresponds to a minimum cut between its endpoints.

Any min-cut between two vertices in the original graph is the minimum weight on the path connecting them in the tree.

Time Complexity: O(V * max-flow) (depends on the max-flow algorithm used).

Space Complexity: O(V + E).

Input: Weighted undirected graph as adjacency list.

Output: Parent array and edge weights representing the Gomory-Hu tree.

ArpitaHanjagi avatar Oct 20 '25 19:10 ArpitaHanjagi

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 26 '25 00:11 github-actions[bot]

This PR was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Dec 04 '25 00:12 github-actions[bot]