↑ arvau

Wikipedia / Capacitated minimum spanning tree

Capacitated minimum spanning tree is a minimal cost spanning tree of a graph. The edges connecting the subgraphs to the root node are called gates. Finding the optimal solution is NP-hard.

Algorithms

be the edge cost between vertices.

Esau-Williams heuristic

Esau-Williams heuristic finds suboptimal CMST that are very close to the exact solutions, but on average EW produces better results than many other heuristics.

Initially, all nodes are connected to the root. We repeat the iterations until we can not make any further improvements to the tree.

Esau-Williams heuristics for computing a suboptimal CMST:

function CMST(c,C,r):
    Tc_{1r}c_{2r}c_{nr}}
    while have changes:
        for eacha_{i}
a_{j} = closest node in a different subtree
t(a_{i})g_{i}c_{ij}
        t_max = maxt(a_{i}))
        k = it(a_{i}) = t_max
        if ( cost(i) + cost(j) <= c)
            T = Tg_{k}
            T = Tc_{kj}
    return T

It is easy to see that EW finds a solution in polynomial time.

Ahuja's heuristic

Ahuja's heuristic uses a local search in a large multi-exchange neighborhood from a randomized greedy initial solution.

Initial solution

ones instead of the best one in each step.

Local Search Neighborhood

such that the displaced structure is the next displacer, the last displacer displaces the first displacer, no original component has more than one displacer and the capacity is not exceeded in any resulting component.

Improvement Graph

yields the 4 possible edges. An edge exists if the corresponding change does not lead to the target component exceeding the capacity. The cost of an edge is the difference in the cost of the minimal spanning trees on the vertices in the target component before and after the displacement. Thus neighbors in the local search correspond to cycles in the improvement graph that contain at most one node from each component.

Local Search Step

The local search step uses a dynamic programming approach to find a minimum cost cycle in the improvement graph. Paths through the improvement graph with increasing length are generated and only the most favorable with the same start and end as well as involved components is stored. To this end a hash table with the tuple of those 3 properties as key is used to hold paths. Since in each negative cycle there is a node such that all paths within that cycle containing this node have negative cost, only paths with negative cost need to be considered at all. As the comparison of sets of involved components between paths is one of the most common operations in the algorithm, it is implemented as comparison of indicator bit arrays stored as integers for speed. This however clearly stems from a lot of hash collisions, which might be a consequence of the particular choice of hash function and table structure, as well as high load factor due to space restrictions (paper from 2003).

Performance

At the time the paper was written (2003) this algorithm was state of the art on a standard operations research benchmark. The execution was dominated by the building (respectively updating) of the improvement graph. The number of edges in the improvement graph empirically scaled quadratically with the size of the input graph and since this determines the number of times the comparatively complex step of finding a minimum spanning tree has to be run, this is the most critical factor. Thus one can conclude that less dense input graphs greatly benefit the running time, as this reduces the number of edges in the improvement graph.

Applications

CMST problem is important in network design: when many terminal computers have to be connected to the central hub, the star configuration is usually not the minimum cost design. Finding a CMST that organizes the terminals into subnetworks can lower the cost of implementing a network.

References