
In a
graph, a maximum cut is a
cut whose size is at least the size of any other cut. That is, it is a
partition of the graph's
vertices into two
complementary sets and , such that the number of edges between and is as large as possible. Finding such a cut is known as the max-cut problem.
The problem can be stated simply as follows. One wants a
subset
In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
of the vertex set such that the number of edges between and the complementary subset is as large as possible. Equivalently, one wants a
bipartite subgraph of the graph with as many edges as possible.
There is a more general version of the problem called weighted max-cut, where each edge is associated with a real number, its
weight
In science and engineering, the weight of an object is a quantity associated with the gravitational force exerted on the object by other objects in its environment, although there is some variation and debate as to the exact definition.
Some sta ...
, and the objective is to maximize the total weight of the edges between and its complement rather than the number of the edges. The weighted max-cut problem allowing both positive and negative weights can be trivially transformed into a weighted
minimum cut problem by flipping the sign in all weights.
Lower bounds
Edwards obtained the following two lower bounds for maximum cuts on a graph with vertices and edges:
*For arbitrary graphs, the maximum cut is at least
*For connected graphs, it is at least
The bound for connected graphs is often called the Edwards–Erdős bound as Erdős conjectured it. Edwards proved the Edwards-Erdős bound using the
probabilistic method; Crowston et al. proved the bound using linear algebra and analysis of pseudo-boolean functions.
The Edwards-Erdős bound extends to the Balanced Subgraph Problem (BSP) on
signed graphs , i.e. graphs where each edge is assigned + or –. For a partition of into subsets and , an edge is balanced if either and and are in the same subset, or and and are different subsets. BSP aims at finding a partition with the maximum number of balanced edges in . The Edwards-Erdős gives a lower bound on for every connected signed graph .
Edwards's bound for arbitrary graphs was improved for special classes of graphs: triangle-free graphs, graphs of given maximum degree, -free graphs, etc.
Poljak and Turzik extended the Edwards-Erdős bound to weighted maximum cuts: the weight of a maximum cut is at least
where and are the weights of and its minimum weight spanning tree . Gutin and Yeo obtained a number of lower bounds for weighted Max-Cut extending the Poljak-Turzik bound for arbitrary weighted graphs and bounds for special classes of weighted graphs.
Computational complexity
The following
decision problem
In computability theory and computational complexity theory, a decision problem is a computational problem that can be posed as a yes–no question on a set of input values. An example of a decision problem is deciding whether a given natura ...
related to maximum cuts has been studied widely in
theoretical computer science
Theoretical computer science is a subfield of computer science and mathematics that focuses on the Abstraction, abstract and mathematical foundations of computation.
It is difficult to circumscribe the theoretical areas precisely. The Associati ...
:
This problem is known to be
NP-complete
In computational complexity theory, NP-complete problems are the hardest of the problems to which ''solutions'' can be verified ''quickly''.
Somewhat more precisely, a problem is NP-complete when:
# It is a decision problem, meaning that for any ...
. It is easy to see that the problem is in
NP: a ''yes'' answer is easy to prove by presenting a large enough cut. The NP-completeness of the problem can be shown, for example, by a reduction from
maximum 2-satisfiability (a restriction of the
maximum satisfiability problem). The weighted version of the decision problem was one of
Karp's 21 NP-complete problems; Karp showed the NP-completeness by a reduction from the
partition problem.
The canonical
optimization variant of the above decision problem is usually known as the ''Maximum-Cut Problem'' or ''Max-Cut'' and is defined as:
The optimization variant is known to be NP-Hard.
The opposite problem, that of finding a
minimum cut is known to be efficiently solvable via the
Ford–Fulkerson algorithm.
Algorithms
Polynomial-time algorithms
As the maximum cut problem is
NP-hard
In computational complexity theory, a computational problem ''H'' is called NP-hard if, for every problem ''L'' which can be solved in non-deterministic polynomial-time, there is a polynomial-time reduction from ''L'' to ''H''. That is, assumi ...
, no polynomial-time algorithms for Max-Cut in general graphs are known.
However, in
planar graph
In graph theory, a planar graph is a graph (discrete mathematics), graph that can be graph embedding, embedded in the plane (geometry), plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. ...
s, the maximum cut problem is dual to the
route inspection problem
In graph theory and combinatorial optimization, Guan's route problem, the Chinese postman problem, postman tour or route inspection problem is to find a shortest closed path or circuit that visits every edge of an (connected) undirected graph at ...
(the problem of finding a shortest tour that visits each edge of a graph at least once), in the sense that the edges that do not belong to a maximum cut-set of a graph ''G'' are the duals of the edges that are doubled in an optimal inspection tour of the
dual graph
In the mathematics, mathematical discipline of graph theory, the dual graph of a planar graph is a graph that has a vertex (graph theory), vertex for each face (graph theory), face of . The dual graph has an edge (graph theory), edge for each p ...
of ''G''. The optimal inspection tour forms a self-intersecting curve that separates the plane into two subsets, the subset of points for which the
winding number
In mathematics, the winding number or winding index of a closed curve in the plane (mathematics), plane around a given point (mathematics), point is an integer representing the total number of times that the curve travels counterclockwise aroun ...
of the curve is even and the subset for which the winding number is odd; these two subsets form a cut that includes all of the edges whose duals appear an odd number of times in the tour. The route inspection problem may be solved in polynomial time, and this duality allows the maximum cut problem to also be solved in polynomial time for planar graphs. The Maximum-Bisection problem is known however to be NP-hard.
More generally, whenever maximum cuts can be found in polynomial time for certain classes of graphs, the algorithms for this problem can be extended to the 2- and 3-
clique-sums of graphs in these classes. This allows the planar graph algorithm to be extended to certain broader families of graphs closed under
graph minor
In graph theory, an undirected graph is called a minor of the graph if can be formed from by deleting edges, vertices and by contracting edges.
The theory of graph minors began with Wagner's theorem that a graph is planar if and only if ...
s and having the structure of clique-sums of planar graphs and graphs of bounded size. A minor-closed family of graphs has this clique-sum structure exactly when its
forbidden minors include a graph with
crossing number at most one.
Approximation algorithms
The Max-Cut Problem is
APX-hard, meaning that there is no polynomial-time approximation scheme (PTAS), arbitrarily close to the optimal solution, for it, unless P = NP. Thus, every known polynomial-time approximation algorithm achieves an
approximation ratio
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
strictly less than one.
There is a simple
randomized 0.5-
approximation algorithm
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
: for each vertex flip a coin to decide to which half of the partition to assign it. In expectation, half of the edges are cut edges. This algorithm can be
derandomized with the
method of conditional probabilities In mathematics and computer science, the method of conditional probabilities
is a systematic method for converting non-constructive probabilistic existence proofs into efficient Deterministic algorithm, deterministic algorithms that explicitly con ...
; therefore there is a simple deterministic polynomial-time 0.5-approximation algorithm as well. One such algorithm starts with an arbitrary partition of the vertices of the given graph
and repeatedly moves one vertex at a time from one side of the partition to the other, improving the solution at each step, until no more improvements of this type can be made. The number of iterations is at most
because the algorithm improves the cut by at least one edge at each step. When the algorithm terminates, at least half of the edges incident to every vertex belong to the cut, for otherwise moving the vertex would improve the cut. Therefore, the cut includes at least
edges.
The polynomial-time approximation algorithm for Max-Cut with the best known approximation ratio is a method by Goemans and Williamson using
semidefinite programming and
randomized rounding
In computer science and operations research, randomized rounding
is a widely used approach for designing and analyzing approximation algorithms.
Many combinatorial optimization problems are computationally intractability (complexity), intrac ...
that achieves an approximation ratio
where
If the
unique games conjecture
In computational complexity theory, the unique games conjecture (often referred to as UGC) is a conjecture made by Subhash Khot in 2002. The conjecture postulates that the problem of determining the approximate ''value'' of a certain type of g ...
is true, this is the best possible approximation ratio for maximum cut. Without such unproven assumptions, it has been proven to be NP-hard to approximate the max-cut value with an approximation ratio better than
.
[; .]
Dunning et al. provide an extended analysis of 10 heuristics for this problem, including open-source implementation.
Parameterized algorithms and kernelization
While it is trivial to prove that the problem of finding a cut of size at least (the parameter) ''k'' is
fixed-parameter tractable (FPT), it is much harder to show fixed-parameter tractability for the problem of deciding whether a graph ''G'' has a cut of size at least the Edwards-Erdős lower bound (see Lower bounds above) plus (the parameter)''k''. Crowston et al. proved that the problem can be solved in time
and admits a kernel of size
. They also extended the fixed-parameter tractability result to the Balanced Subgraph Problem (BSP, see Lower bounds above) and improved the kernel size to
(holds also for BSP). Etscheid and Mnich improved the fixed-parameter tractability result for BSP to
and the kernel-size result to
vertices.
Weighted maximum cuts can be found in polynomial time in graphs of bounded
treewidth. That is, when parameterized by treewidth rather than by the cut size, the weighted maximum cut problem is fixed-parameter tractable. It remains fixed-parameter tractable for sm-width, another graph width parameter intermediate between treewidth and
clique-width. However, under standard assumptions in parameterized complexity, it is not fixed-parameter tractable for clique-width.
Applications
Machine learning
Treating its nodes as
features and its edges as distances, the max cut algorithm divides a graph in two well-separated subsets. In other words, it can be naturally applied to perform
binary classification. Compared to more common classification algorithms, it does not require a feature space, only the distances between elements within.
Theoretical physics
In
statistical physics
In physics, statistical mechanics is a mathematical framework that applies statistical methods and probability theory to large assemblies of microscopic entities. Sometimes called statistical physics or statistical thermodynamics, its applicati ...
and
disordered systems, the Max Cut problem is equivalent to minimizing the
Hamiltonian
Hamiltonian may refer to:
* Hamiltonian mechanics, a function that represents the total energy of a system
* Hamiltonian (quantum mechanics), an operator corresponding to the total energy of that system
** Dyall Hamiltonian, a modified Hamiltonian ...
of a
spin glass model, most simply the
Ising model
The Ising model (or Lenz–Ising model), named after the physicists Ernst Ising and Wilhelm Lenz, is a mathematical models in physics, mathematical model of ferromagnetism in statistical mechanics. The model consists of discrete variables that r ...
. For the Ising model on a graph G and only nearest-neighbor interactions, the Hamiltonian is
Here each vertex ''i'' of the graph is a spin site that can take a spin value
A spin configuration partitions
into two sets, those with spin up
and those with spin down
We denote with
the set of edges that connect the two sets. We can then rewrite the Hamiltonian as
Minimizing this energy is equivalent to the min-cut problem or by setting the graph weights as
the max-cut problem.
Circuit design
The max cut problem has applications in
VLSI design.
See also
*
Minimum cut
*
Minimum k-cut
*
Odd cycle transversal, equivalent to asking for the largest bipartite
induced subgraph
In graph theory, an induced subgraph of a graph is another graph, formed from a subset of the vertices of the graph and ''all'' of the edges, from the original graph, connecting pairs of vertices in that subset.
Definition
Formally, let G=(V,E) ...
*
Unfriendly partition, a related concept for infinite graphs
Notes
References
*.
*. Maximum cut (optimisation version) is problem ND14 in Appendix B (page 399).
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*. Maximum cut (decision version) is problem ND16 in Appendix A2.2. Maximum bipartite subgraph (decision version) is problem GT25 in Appendix A1.2.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
{{refend
External links
* Pierluigi Crescenzi, Viggo Kann, Magnús Halldórsson, Marek Karpinski,
Gerhard Woeginger (2000)
"Maximum Cut" i
"A compendium of NP optimization problems"
* Andrea Casini, Nicola Rebagliati (2012)
"A Python library for solving Max Cut"
Graph theory objects
Combinatorial optimization
NP-complete problems
Computational problems in graph theory