Go to the source code of this file.
This function returns max_i(x[i]-y[i])
Definition at line 68 of file mcutil.c.
References max().
Referenced by Greedy_McKWayCutOptimize(), and Greedy_McKWayVolOptimize().
This function returns true if i, x[i] <= z[i].
Definition at line 86 of file mcutil.c.
Referenced by Match_RM(), and Match_SHEM().
This function returns true if i, a*x[i]+y[i] <= z[i].
Definition at line 114 of file mcutil.c.
Referenced by EliminateSubDomainEdges(), Greedy_McKWayCutOptimize(), Greedy_McKWayVolOptimize(), Match_RM(), and Match_SHEM().
This function returns true if i, a*x[i]+y[i] >= z[i].
Definition at line 128 of file mcutil.c.
Referenced by Greedy_McKWayCutOptimize(), and Greedy_McKWayVolOptimize().
int BetterVBalance | ( | idx_t | ncon, | |
real_t * | invtvwgt, | |||
idx_t * | v_vwgt, | |||
idx_t * | u1_vwgt, | |||
idx_t * | u2_vwgt | |||
) |
This function checks if v+u2 provides a better balance in the weight vector that v+u1
Definition at line 143 of file mcutil.c.
Referenced by Match_SHEM().
This function takes two ubfactor-centered load imbalance vectors x & y, and returns true if y is better balanced than x.
Definition at line 169 of file mcutil.c.
Referenced by FM_Mc2WayCutRefine(), and McGeneral2WayBalance().
int BetterBalanceKWay | ( | idx_t | ncon, | |
idx_t * | vwgt, | |||
real_t * | ubvec, | |||
idx_t | a1, | |||
idx_t * | pt1, | |||
real_t * | bm1, | |||
idx_t | a2, | |||
idx_t * | pt2, | |||
real_t * | bm2 | |||
) |
Given a vertex and two weights, this function returns 1, if the second partition will be more balanced than the first after the weighted additional of that vertex. The balance determination takes into account the ideal target weights of the two partitions.
Definition at line 189 of file mcutil.c.
Referenced by EliminateComponents(), Greedy_McKWayCutOptimize(), and Greedy_McKWayVolOptimize().
Computes the maximum load imbalance of a partitioning solution over all the constraints.
Definition at line 228 of file mcutil.c.
References max(), graph_t::ncon, ncon, and graph_t::pwgts.
Referenced by FM_Mc2WayCutRefine(), Greedy_KWayCutOptimize(), Greedy_KWayVolOptimize(), Greedy_McKWayCutOptimize(), Greedy_McKWayVolOptimize(), McGeneral2WayBalance(), and Print2WayRefineStats().
Computes the maximum load imbalance difference of a partitioning solution over all the constraints. The difference is defined with respect to the allowed maximum unbalance for the respective constraint.
Definition at line 256 of file mcutil.c.
References max(), graph_t::ncon, ncon, and graph_t::pwgts.
Referenced by Balance2Way(), IsBalanced(), MlevelKWayPartitioning(), and MultilevelBisect().
real_t ComputeLoadImbalanceDiffVec | ( | graph_t * | graph, | |
idx_t | nparts, | |||
real_t * | pijbm, | |||
real_t * | ubfactors, | |||
real_t * | diffvec | |||
) |
Computes the difference between load imbalance of each constraint across the partitions minus the desired upper bound on the load imabalnce. It also returns the maximum load imbalance across the partitions & constraints.
Definition at line 284 of file mcutil.c.
References max(), graph_t::ncon, ncon, and graph_t::pwgts.
Referenced by FM_Mc2WayCutRefine(), and McGeneral2WayBalance().
Computes the load imbalance of each constraint across the partitions.
Definition at line 311 of file mcutil.c.
References graph_t::ncon, ncon, and graph_t::pwgts.
Referenced by Greedy_McKWayCutOptimize(), and Greedy_McKWayVolOptimize().