Kernighan Lin Algorithm #17
Replies: 2 comments
-
Leaving here some refs: |
Beta Was this translation helpful? Give feedback.
-
COMPUTE GAINS CONSIDERING PARTITION IMBALANCE
In this context In addition, we have that each partition is composed of intervals: This function defined below returns two vectors containing the possible node imbalance for each partition considering the node weights and the allowed imbalance, I.e. here we look for possible
Now that we have our first balanced candidates, look for the imbalanced ones which is basically the same procedure for the imbalance max and min values.
With
Finally, we can define:
This new version of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Basic Definitions
Given a SBG$G(V,E)$ and an initial partition $(A,B)$ of $V$ , define external cost and internal cost as:
$\forall a \in A \rightarrow E_a = \sum_{y \in B} c_{ay} $
$\forall a \in A \rightarrow I_a = \sum_{x \in A} c_{ax} $
Now we can define:
$\forall a \in A \rightarrow D_a = E_a - I_a $
To compute the difference, internal cost and external cost assume that each partition is represented as:
and let:
$\mathbf{ED} = E.preImage(A_i) = \{ ed_1, \cdots, ed_m\}$ (This should be $map_1$ or $map_2$ )$A_i$ from the partition that is included in some set-vertex of the original graph.
which is the set of all the domains of the set-edges that contains the set
Now, assume that$\#ed_i = \mathbf{Q} | \forall i \in \{1, \cdots,m\}$ , i.e. all the set-edges involved on each partition interval have the same cardinality.
Algorithm
With these assumptions, we can define the KL-SBG algorithm as follows:
Notes:$\mathbf{diff}$ refers to the tuple $d_i=(EC_i, IC_i)$ restricted to the maximum number of elements possible $s$ .
Here
Beta Was this translation helpful? Give feedback.
All reactions