Explanation
Binary Variables: for . Each variable represents whether a vertex is in one of the two sets (0 or 1).
Objective Function: The goal is to maximize the sum of the expression over all edges in the graph.
How It Works
Same Set: If both vertices and are in the same set (either both 0 or both 1), then:
This means no cut is made between these vertices.
Different Sets: If vertices and are in different sets (one is 0 and the other is 1), then:
This means a cut is made between these vertices.
Maximizing the Cuts
The formula sums up the values for all edges in the graph. By maximizing this sum, the algorithm ensures that as many edges as possible are between vertices in different sets, thus maximizing the number of cuts.
* * *
I got timed out for running a session too long. I was only running half the code, so I assume
the computer was waiting for the second part. Running again with the whole MaxCut mini code!!!
No comments:
Post a Comment