Algorithm Search⌘K

Definitioncore

Ratio cut

Also called Wei-Cheng ratio cut.

The cut size of a bipartition divided by the product of the part sizes, minimized to find natural clusters without a fixed balance.

The ratio cut of a split of a graph or a netlist into two nonempty parts AA and BB is the weight of the cut divided by ∣A∣⋅∣B∣|A| \cdot |B|. Wei and Cheng introduced it in 1989 for circuit partitioning: instead of forcing two parts of equal size, it lets the parts have any sizes, but makes a cut cheaper per crossing net the more balanced it is. So a minimum ratio cut finds a natural split, such as a loosely joined cluster, even when the cluster is small. Finding a minimum ratio cut is NP-hard (Wei and Cheng, 1991), and the second smallest Laplacian eigenvalue divided by nn is a lower bound on it (Hagen and Kahng, 1992). The normalized cut is the same idea with volumes instead of vertex counts.

Definition

Let G=(V,E)G = (V, E) be a graph with n=∣V∣≥2n = |V| \ge 2 vertices and edge weights w≥0w \ge 0. For a set AA with ∅≠A⊊V\emptyset \ne A \subsetneq V and B=V∖AB = V \setminus A, let cut(A,B)\mathrm{cut}(A, B) be the total weight of the edges between AA and BB. The ratio cut of (A,B)(A, B) is

R(A,B)=cut(A,B)∣A∣⋅∣B∣.R(A, B) = \frac{\mathrm{cut}(A, B)}{|A| \cdot |B|}.

The minimum ratio cut of GG is R∗=min⁡AR(A,B)R^* = \min_{A} R(A, B) over all such AA. For a netlist, a hypergraph, cut(A,B)\mathrm{cut}(A, B) is the weight of the nets with pins in both parts, as in hypergraph partitioning, and ∣A∣|A|, ∣B∣|B| may be replaced by the total cell areas. The formula is defined only when both parts are nonempty.

Other normalizations. Several quantities with the same name differ by a constant factor:

  • In spectral clustering (for example in von Luxburg's tutorial), RatioCut(A,B)=cut(A,B) (1/∣A∣+1/∣B∣)=n R(A,B)\mathrm{RatioCut}(A, B) = \mathrm{cut}(A, B) \, (1/|A| + 1/|B|) = n \, R(A, B).
  • The uniform sparsest cut, with demand 1 between every pair of vertices, is cut(A,B)/(∣A∣∣B∣)\mathrm{cut}(A, B) / (|A| |B|), which is exactly RR.
  • The edge expansion cut(A,B)/min⁡(∣A∣,∣B∣)\mathrm{cut}(A, B) / \min(|A|, |B|) lies between R⋅n/2R \cdot n/2 and R⋅nR \cdot n, since max⁡(∣A∣,∣B∣)\max(|A|, |B|) lies between n/2n/2 and nn.
  • The normalized cut divides by the volumes (sums of degrees) of the parts instead of the vertex counts.

A bound on any of them gives a bound on the others, but only after the factor is fixed. A statement about "the ratio cut" must say which one it uses. This page uses RR.

Lower bound by λ2\lambda_2 (Hagen and Kahng). Let LL be the Laplacian of GG with eigenvalues 0=λ1≤λ2≤⋯≤λn0 = \lambda_1 \le \lambda_2 \le \cdots \le \lambda_n. Then

R∗≥λ2n.R^* \ge \frac{\lambda_2}{n}.

Proof. Take any split (A,B)(A, B) and define xv=∣B∣x_v = |B| for v∈Av \in A and xv=−∣A∣x_v = -|A| for v∈Bv \in B. Then ∑vxv=∣A∣∣B∣−∣B∣∣A∣=0\sum_v x_v = |A| |B| - |B| |A| = 0, so xx is orthogonal to the all-ones vector. Each cut edge has ∣xu−xv∣=∣A∣+∣B∣=n|x_u - x_v| = |A| + |B| = n, and every other edge has xu=xvx_u = x_v, so x⊤Lx=∑{u,v}∈Ew(u,v)(xu−xv)2=n2 cut(A,B)x^{\top} L x = \sum_{\{u,v\} \in E} w(u,v) (x_u - x_v)^2 = n^2 \, \mathrm{cut}(A, B). Also x⊤x=∣A∣ ∣B∣2+∣B∣ ∣A∣2=n ∣A∣ ∣B∣x^{\top} x = |A| \, |B|^2 + |B| \, |A|^2 = n \, |A| \, |B|. By the Courant-Fischer theorem, λ2\lambda_2 is the least Rayleigh quotient over nonzero vectors orthogonal to the all-ones vector, so

λ2≤x⊤Lxx⊤x=n2 cut(A,B)n ∣A∣ ∣B∣=n R(A,B).\lambda_2 \le \frac{x^{\top} L x}{x^{\top} x} = \frac{n^2 \, \mathrm{cut}(A, B)}{n \, |A| \, |B|} = n \, R(A, B).

This holds for every split, so R∗≥λ2/nR^* \ge \lambda_2 / n. □\square

The vector xx takes only two values. Allowing any real values is the relaxation that the spectral method solves: the eigenvector of λ2\lambda_2 minimizes the quotient, and spectral partitioning rounds it back to a split by a sweep. The bound has no matching upper bound by a constant factor: on a path of nn vertices, R∗=1/(⌊n/2⌋⌈n/2⌉)≈4/n2R^* = 1/(\lfloor n/2 \rfloor \lceil n/2 \rceil) \approx 4/n^2 while λ2/n≈π2/n3\lambda_2 / n \approx \pi^2 / n^3. A two-sided estimate in terms of λ2\lambda_2 holds for the edge expansion and the conductance, by the Cheeger inequality, not with a constant factor for RR.

Basic properties.

  • For fixed sizes ∣A∣=a|A| = a, minimizing RR is minimizing the cut, so the bisection with a=n/2a = n/2 minimizes RR among all bisections.
  • The denominator a(n−a)a (n - a) grows from n−1n - 1 at a=1a = 1 to ⌊n2/4⌋\lfloor n^2/4 \rfloor at a=⌊n/2⌋a = \lfloor n/2 \rfloor. A cut of a large part must be more than ⌊n2/4⌋/(n−1)≈n/4\lfloor n^2/4 \rfloor / (n - 1) \approx n/4 times smaller than a cut of a single vertex to win.
  • R∗=0R^* = 0 if and only if GG is disconnected, as λ2=0\lambda_2 = 0 in the same case.
  • The minimum bisection width bb gives R∗≤b/⌊n2/4⌋R^* \le b / \lfloor n^2/4 \rfloor.

Examples and non-examples

  • Two triangles. On the graph of the graph partitioning page (two triangles a,b,ca, b, c and d,e,fd, e, f joined by the edges cdcd and bebe), the split {a,b,c}∣{d,e,f}\{a, b, c\} \mid \{d, e, f\} has R=2/9R = 2/9. A single vertex of degree 2 gives 2/52/5, and the other splits are worse, so R∗=2/9R^* = 2/9. Here λ2=1\lambda_2 = 1, and the bound gives R∗≥1/6R^* \ge 1/6.
  • A clique with a pendant vertex. Take K4K_4 on a,b,c,da, b, c, d and add a vertex ee joined only to dd. Cutting off ee gives R=1/(1⋅4)=1/4R = 1/(1 \cdot 4) = 1/4. The split {d,e}∣{a,b,c}\{d, e\} \mid \{a, b, c\} cuts 3 edges and gives 3/6=1/23/6 = 1/2, and every split of the clique is worse still. So R∗=1/4R^* = 1/4 with parts of size 1 and 4: the ratio cut does not force balance, it finds the loose vertex. The Laplacian has λ2=1\lambda_2 = 1, and the bound gives 1/51/5. A bisection rule would instead have to cut the clique.
  • A path. On a path with nn vertices, every split cuts at least one edge, and one edge gives 1/(a(n−a))1/(a(n - a)), least at a=⌊n/2⌋a = \lfloor n/2 \rfloor. For n=6n = 6 this is 1/91/9, and λ2/n=(2−2cos⁡(π/6))/6≈0.0447\lambda_2/n = (2 - 2\cos(\pi/6))/6 \approx 0.0447.
  • A netlist. Cells a,b,c,d,ea, b, c, d, e and nets {a,b,c}\{a, b, c\}, {c,d}\{c, d\}, {d,e}\{d, e\}, {a,e}\{a, e\}. The split {a,b,c}∣{d,e}\{a, b, c\} \mid \{d, e\} cuts the nets {c,d}\{c, d\} and {a,e}\{a, e\}, so R=2/6=1/3R = 2/6 = 1/3. The split {b}∣{a,c,d,e}\{b\} \mid \{a, c, d, e\} cuts only {a,b,c}\{a, b, c\}, so R=1/4R = 1/4, which is smaller. In the netlist form, cutting off a cell that has a single net is cheap.
  • Non-example: an empty part. A=VA = V or A=∅A = \emptyset is not a ratio cut: the formula divides by zero. A minimum ratio cut is always over two nonempty parts.
  • Non-example: the bisection width. The ratio cut is not the bisection width divided by a constant, since its best split need not be balanced, as the pendant example shows.
  • Sparsest cut. The general form with demands. With unit demands it is the ratio cut, and its approximation algorithms (Leighton and Rao; Arora, Rao and Vazirani) apply to R∗R^*.
  • Normalized cut. Divides by the volumes of the parts. It is the objective of spectral clustering with the normalized Laplacian, while the ratio cut goes with the unnormalized Laplacian.
  • Graph partitioning and hypergraph partitioning. These fix the sizes by a balance condition and minimize the cut alone.
  • Spectral partitioning. Hagen and Kahng's EIG1 sorts the vertices by the eigenvector of λ2\lambda_2 and takes the prefix of least ratio cut.
  • Cheeger inequality. Relates λ2\lambda_2 to conductance and expansion from both sides.

References

  1. Yen-Chuen Wei and Chung-Kuan Cheng, Ratio cut partitioning for hierarchical designs, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 10(7), 911 to 921, 1991, the definition of the ratio cut for netlists, the statement that finding the optimal ratio cut is NP-complete, and the iterative shifting heuristic
  2. Yen-Chuen Wei and Chung-Kuan Cheng, Towards efficient hierarchical designs by ratio cut partitioning, IEEE International Conference on Computer-Aided Design (ICCAD), 298 to 301, 1989, the conference version of the ratio cut objective
  3. Lars Hagen and Andrew B. Kahng, New spectral methods for ratio cut partitioning and clustering, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 11(9), 1074 to 1085, 1992, the lower bound of the minimum ratio cut by the second smallest Laplacian eigenvalue divided by n, and the EIG1 sweep over the sorted eigenvector
  4. Andrew B. Kahng, Jens Lienig, Igor L. Markov and Jin Hu, VLSI Physical Design, From Graph Partitioning to Timing Closure, second edition, Springer, 2022, Chapter 2, Netlist and System Partitioning (general locator)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/95PDKQ/text.yaml