Slides Opti
Slides Opti
Overview
• Spectral Clustering
• Greedy Algorithm
• Kernighan-Lin Local Re nement
• Recursive Bisectioning
• Multilevel Partitioning
fi
Problem Statement
Given: G = (V, E, w). Need to partition V into k subsets, such that:
[ k ]
|V|
❖
Vi ≤ Vmax := (1 + ϵ) (epsilon-constrained, looks nicer since RHS is const)
∑
❖
minimize w({u, v})
{u,v}∈C
∑ ∑
∀p : xv,p ≤ Vmax (*) ∀v ∈ V : xv,p = 1
v∈V p
∑
❖
∀p : xv,p ≤ M
v∈V
∑
❖
∀p : xv,p ≥ m
v∈V
❖ M−m≤α
Ultimately, the objective function:
∑
minimize euvw({u, v})
{u,v}∈E
We implement this model into both OR-Tools' CP solver and SCIP solver.
Spectral Clustering
❖ Powerful algorithm for non-convex clusters
❖ Make use of the spectrum (eigenvector, eigenvalues) to reduce dimension
(similar concept as Principal Components Analysis)
❖ Input:
❖ W: our adjacency weight matrix (symmetric)
❖ D: degree matrix (di = deg vertex i) (diagonal)
❖ L = D − W: the Laplacian (symmetric)
Spectral Clustering
Properties of the Laplacian:
❖ Positive-de nite
❖ Smallest eigenvalue is λ1 = 0, corresponding eigenvector is 1.
❖ Has n non-negative real eigenvalues λ1 ≤ λ2 ≤ . . . ≤ λn.
❖ Multiplicity of λ = 0 is the number of connected components in the graph.
❖ Algorithm most likely is not going to perform well, but could run for many
iterations and get usable partition.
Kernighan-Lin Local Refinement
❖ Historically important; one of the rst practical heuristics for graph
partitioning
maximal matching,
maximal cliques, etc.
❖ Phase 2: Partition
When the contracted graph
is small enough, carry out
partition using IP/greedy/...
Multilevel Algorithms
❖ Phase 3: Uncoursening: