The distributed minimum spanning tree (MST) problem involves the construction of a minimum spanning tree by a distributed algorithm, in a network where nodes communicate by message passing. It is radically different from the classical sequential problem, although the most basic approach resembles Borůvka's algorithm. One important application of this problem is to find a tree that can be used for broadcasting. In particular, if the cost for a message to pass through an edge in a graph is significant, an MST can minimize the total cost for a source process to communicate with all the other processes in the network. The problem was first suggested and solved in O(VlogV) time in 1983 by Gallager et al., where V is the number of vertices in the graph. Later, the solution was improved to O(V) and finally O(Vlog∗V+D) where D is the network, or graph diameter. A lower bound on the time complexity of the solution has been eventually shown to be Ω(VlogV+D).
Overview The input graph G(V,E) is considered to be a network, where vertices V are independent computing nodes and edges E are communication links. Links are weighted as in the classical problem. At the beginning of the algorithm, nodes know only the weights of the links which are connected to them. (It is possible to consider models in which they know more, for example their neighbors' links.) As the output of the algorithm, every node knows which of its links belong to the minimum spanning tree and which do not.
MST in message-passing model The message-passing model is one of the most commonly used models in distributed computing. In this model, each process is modeled as a node of a graph. Each communication channel between two processes is an edge of the graph. Two commonly used algorithms for the classical minimum spanning tree problem are Prim's algorithm and Kruskal's algorithm. However, it is difficult to apply these two algorithms in the distributed message-passing model. The main challenges are:
Both Prim's algorithm and Kruskal's algorithm require processing one node or vertex at a time, making it difficult to make them run in parallel. For example, Kruskal's algorithm processes edges in turn, deciding whether to include the edge in the MST based on whether it would form a cycle with all previously chosen edges. Both Prim's algorithm and Kruskal's algorithm require processes to know the state of the whole graph, which is very difficult to discover in the message-passing model. Due to these difficulties, new techniques were needed for distributed MST algorithms in the message-passing model. Some bear similarities to Borůvka's algorithm for the classical MST problem.
GHS algorithm The GHS algorithm of Gallager, Humblet and Spira is one of the best-known algorithms in distributed computing theory. This algorithm constructs an MST in the asynchronous message-passing model.
Assumptions The GHS algorithm requires several assumptions.
The input graph is connected and undirected. Each edge in the input graph has distinct finite weights. This assumption is not needed if there is a consistent method to break ties between edge weights. Each node initially knows the weight of each edge incident to that node. Initially, each node is in an inactive state. Each node either spontaneously awakens or is awakened by receipt of any message from another node. Messages can be transmitted independently in both directions on an edge and arrive after an unpredictable but finite delay, without error. Each edge delivers messages in FIFO order.
Properties of MSTs Define a fragment of an MST T to be a sub-tree of T. That is, a fragment is a connected set of nodes and edges of T. MSTs have two important properties in relation to fragments:
Given a fragment of an MST T, let e be a minimum-weight outgoing edge of the fragment. Then joining e and its adjacent non-fragment node to the fragment yields another fragment of an MST. If all the edges of a connected graph have different weights, then the MST of the graph is unique. These two properties form the basis for proving correctness of the GHS algorithm. In general, the GHS algorithm is a bottom-up algorithm in the sense that it starts by letting each individual node be a fragment, and then joining fragments until a single fragment is left. The above properties imply that the remaining fragment must be an MST.
Description of the algorithm The GHS algorithm assigns a level to each fragment, which is a non-decreasing integer with initial value 0. Furthermore, each fragment with a non-zero level has an ID, which is the ID of the core edge in the fragment, which is selected when the fragment is constructed. During the execution of the algorithm, each node can classify each of its incident edges into three categories:
Branch edges are those that have been determined to be part of the MST. Rejected edges are those that have been determined not to be part of the MST. Basic edges are all edges that are neither branch edges nor rejected edges. In level-0 fragments, each awakened node will do the following:
Choose its minimum-weight incident edge and mark that edge as a branch edge. Send a message via the branch edge to notify the node on the other side. Wait for a message from the other end of the edge. The edge that is chosen by the two nodes it connects becomes the core edge, and is assigned level 1. In non-zero-level fragments, a separate algorithm is executed in each level. This algorithm can be separated into three stages: broadcast, convergecast, and change core.
Broadcast The two nodes adjacent to the core broadcast messages to the rest of the nodes in the fragment. The messages are sent via the branch edge but not via the core. Each broadcast message contains the ID and level of the fragment. At the end of this stage, each node has received the new fragment ID and level.
… excerpt ends here. Continue reading the full article.

