820 likes | 829 Views
This article explores three algorithms for computing maximal independent sets (MIS) in a graph: sequential greedy algorithm, general algorithm, and simple distributed algorithm. The time complexity and probability of success for each algorithm are discussed.
E N D
Independent Set (IS): Any set of nodes that are not adjacent
Maximal Independent Set (MIS): An independent set that is no subset of any other independent set
A Sequential Greedy algorithm Suppose that will hold the final MIS Initially
Phase 1: Pick a node and add it to
Phase 2: Pick a node and add it to
Phases 3,4,5,…: Repeat until all nodes are removed
Phases 3,4,5,…,x: Repeat until all nodes are removed No remaining nodes
Running time of algorithm: Worst case graph: nodes
A General Algorithm For Computing MIS Same as the sequential greedy algorithm, but at each phase we may select any independent set (instead of a single node)
Example: Suppose that will hold the final MIS Initially
Phase 1: Find any independent set And insert to :
Phase 2: On new graph Find any independent set And insert to :
Phase 3: On new graph Find any independent set And insert to :
remove and neighbors No nodes are left
Observation: The number of phases depends on the choice of independent set in each phase: The larger the independent set at each phase the faster the algorithm
Example: If is MIS, 1 phase is needed Example: If each contains one node, phases are needed (sequential greedy algorithm)
A Simple Distributed Algorithm Same with the general MIS algorithm At each phase the independent set is chosen randomly so that it includes many nodes of the remaining graph
Let be the maximum node degree in the whole graph 2 1 Suppose that is known to all the nodes
At each phase : Each node elects itself with probability 2 1 Elected nodes are candidates for independent set
However, it is possible that neighbor nodes may be elected simultaneously Problematic nodes
All the problematic nodes must be un-elected. The remaining elected nodes form independent set
Analysis: Success for a node in phase : disappears at end of phase (enters or ) A good scenario that guarantees success No neighbor elects itself 2 1 elects itself
Probability of success in phase: At least No neighbor should elect itself 2 1 elects itself
Probability of success in phase: At least For
Therefore, node will enter and disappear in phase with probability at least 2 1
Expected number of phases until node disappears: phases at most
Bad event for node : after phases node did not disappear Probability:
Bad event for any node in : after phases at least one node did not disappear Probability:
Good event for all nodes in : within phases all nodes disappear Probability: (high probability)
Total number of phases: with high probability Time duration of each phase: Total time:
Luby’s MIS Distributed Algorithm Runs in time in expected case with high probability this algorithm is asymptotically better than the previous
At each phase : Each node elects itself with probability degree of in 2 1 Elected nodes are candidates for the independent set
If two neighbors are elected simultaneously, then the higher degree node wins Example: if
If both have the same degree, ties are broken arbitrarily Example: if
Using previous rules, problematic nodes are removed Problematic nodes