Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Next: A Sample Network for Up: Graph Partitioning Theory Previous: The Spectral Bisection Method
is equal to the weights of all the edges that cross the partitioning. We seek to minimize . To do so, let be a subset of nodes of and be a subset of nodes in and
, such that
the number of nodes in each of the two subgraphs. However, we could then calculate a new cost of partitioning with and ; if the cost of the new subgraphs is less than
the cost of the old subgraph, then we should accept the new subgraphs in place of the old subgraphs. The trick of the Kernighan/Lin algorithm is efficiently finding subsets of nodes and to swap. Let equal the external cost of leaving node equal the internal savings of leaving node value of switching node calculated for all nodes in into subgraph . With these is in subgraph in subgraph (i.e. (i.e. . ) and ). The can be similarly
values assigned to each node, the comparison of two and between and and is:
remain in different
for all
in graph. `
iterations
that maximizes
Add
and
to ordered list. `
Mark nodes
and
. `
Update as if and
Pick
gains `
. ` Update . ` Update . `
} } While (Gain 0)
Note that the slowest part of the Kernighan/Lin Algorithm is the discovery of unmarked nodes that maximize the later explorations. . Also note that the Kernighan/Lin Algorithm is the basis for much of my
Next: A Sample Network for Up: Graph Partitioning Theory Previous: The Spectral Bisection Method Nicholas Anthony Degani 2003-05-11