For a similarity graph with weights W, degrees D and Laplacian L=D−W, how do you derive the relaxation of the two-way normalised cut Ncut(A,B)=cut(A,B)(1vol(A)+1vol(B)) into the generalised eigenproblem Lf=λDf? How do you check the bound on the graph with w12=w34=1, w23=0.1?

Unsupervised learning, Spectral clustering
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can choose the right indicator vector so that Ncut becomes a Rayleigh quotient with the constraints that lead to the second eigenvector.

Key idea

Define fi=vol(B)/vol(A) for i∈A and fi=−vol(A)/vol(B) for i∈B. Then f⊤Lf=vol(V) Ncut(A,B), f⊤Df=vol(V) and f⊤D1=0. Relaxing f to real values gives min⁡f⊤Lf/f⊤Df with f⊤D1=0.

Steps

  1. Use f⊤Lf=12∑i,jwij(fi−fj)2. Only pairs across the cut have fi≠fj, with difference vol(B)/vol(A)+vol(A)/vol(B)=vol(V)vol(A)vol(B), using vol(A)+vol(B)=vol(V).
  2. Hence f⊤Lf=cut(A,B) vol(V)2vol(A)vol(B)=vol(V) Ncut(A,B), because vol(V)vol(A)vol(B)=1vol(A)+1vol(B).
  3. Compute f⊤Df=vol(A)vol(B)vol(A)+vol(B)vol(A)vol(B)=vol(V), and f⊤D1=vol(A)vol(B)−vol(A)vol(B)=0.
  4. So Ncut=f⊤Lff⊤Df over these discrete f. The problem is NP-hard because f takes only two values. Relax to any real f with f⊤D1=0.
  5. Set y=D1/2f. Then the problem is min⁡y⊤Lsymy/y⊤y with Lsym=D−1/2LD−1/2 and y⊥D1/21, whose minimiser is the eigenvector of the second-smallest eigenvalue. Equivalently, f solves Lf=λDf with λ2. The smallest eigenvalue, λ1=0 with f=1, is excluded by the constraint. Threshold f (for example at 0) to get A,B.
  6. Check: A={1,2}, B={3,4} gives cut=0.1, vol(A)=vol(B)=2.1, so Ncut=0.1 (1/2.1+1/2.1)=0.0952. With the same antisymmetric ansatz as the 4-node graph, the generalised problem is 1.1λ2−2.3λ+0.2=0, with smallest root λ2=1/11=0.0909≤0.0952. The relaxed value is below the true Ncut, as it should be.

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Unsupervised learning: How can the k-means objective be written as a trace problem over cluster indicator vectors, and what lower bound on the optimal SSE do you get by relaxing it to orthonormal matrices when the data are centred?
Next in Unsupervised learning: How do you show that DBSCAN* (DBSCAN without border points) at radius ε is the same as cutting a single-linkage tree built on the mutual reachability distance dm(x,y)=max⁡{c(x),c(y),d(x,y)}, where c(x) is the core distance? What does this say about minPts=1 and about the order-dependence of DBSCAN?