Docsity

Local Search Algorithm for Min Degree Spanning Tree: Approximating 2∆∗ + log n, Study notes of Approximation Algorithms

Toggle sidebar
bg1
CS880: Approximations Algorithms
Scribe: Siddharth Barman Lecturer: Shuchi Chawla
Topic: Min Degree Spanning Tree Date: 02/15/07
In this lecture we give a local search based algorithm for the Min Degree Spanning Tree problem.
8.1 Min Degree Spanning Tree
Problem Statement: Given an unweighted graph G, find a spanning tree with least possible max
degree.
This problem cab be shown to be N P -Hard by reducing Hamiltonian path to it. Essentially ex-
istence of a spanning tree of max degree two is equivalent to a having a Hamiltonian path in the
graph. This also shows that the best approximation we can hope for (unless P=N P ) is ∆∗+ 1
where ∆∗is the max degree of the optimal tree. Note that we usually express approximations in a
multiplicative form, but also occasionally in an additive form. In general, for additive approxima-
tions to be meaningful the optimal value should be bounded from below. As in this case ∆∗is an
integer no less than two.
In this lecture we provide a local search approximation algorithm which achieves an approximation
of 2∆∗+ log n. The algorithm and its analysis is by F¨urer and Raghavachari [1]. They also provide
an improved approximation with max degree ∆∗+ 1 in the same paper.
The main idea behind local search is to consider a graph over the solution space; nodes of this meta
graph represent possible solutions. We then define a set of low cost operations (edges in the meta
graph) which morph one solution into another. The strategy is to start from some solution/node
and traverse the meta graph, improving the objective function at each step. We stop when we hit
a local optimum. The length of the path traversed dictates the time complexity of the algorithm.
Also for a good approximation factor we must show that (compared with the global optima) any
local minimum reached by the algorithm is not too bad.
For the min degree spanning tree problem the solution space consists of all spanning trees. The
connecting operation is to swap edges till the degree goes down. Formally:
Definition 8.1.1 (T-swap:) Add edge e1/∈Tand remove edge e2∈Ts.t. e2is on the unique
cycle that is formed by adding e1to the tree.
In order to improve the objective function value, we would like our local search algorithm to perform
T-swaps as long as one of the following happens:
•the max degree of the current tree decreases or,
•the number of max degree nodes decrease
Unfortunately the T-swap operation with the above defined improvement criteria might get stuck
with a high max degree tree (as shown in Figure 1). In particular in the figure, adding edge (2,3)
1
pf3
pf4
pf5

Partial preview of the text

Download Local Search Algorithm for Min Degree Spanning Tree: Approximating 2∆∗ + log n and more Study notes Approximation Algorithms in PDF only on Docsity!

CS880: Approximations Algorithms Scribe: Siddharth Barman Lecturer: Shuchi Chawla Topic: Min Degree Spanning Tree Date: 02/15/

In this lecture we give a local search based algorithm for the Min Degree Spanning Tree problem.

8.1 Min Degree Spanning Tree

Problem Statement: Given an unweighted graph G, find a spanning tree with least possible max degree.

This problem cab be shown to be N P-Hard by reducing Hamiltonian path to it. Essentially ex- istence of a spanning tree of max degree two is equivalent to a having a Hamiltonian path in the graph. This also shows that the best approximation we can hope for (unless P = N P) is ∆∗^ + 1 where ∆∗^ is the max degree of the optimal tree. Note that we usually express approximations in a multiplicative form, but also occasionally in an additive form. In general, for additive approxima- tions to be meaningful the optimal value should be bounded from below. As in this case ∆∗^ is an integer no less than two.

In this lecture we provide a local search approximation algorithm which achieves an approximation of 2∆∗^ + log n. The algorithm and its analysis is by F¨urer and Raghavachari [1]. They also provide an improved approximation with max degree ∆∗^ + 1 in the same paper.

The main idea behind local search is to consider a graph over the solution space; nodes of this meta graph represent possible solutions. We then define a set of low cost operations (edges in the meta graph) which morph one solution into another. The strategy is to start from some solution/node and traverse the meta graph, improving the objective function at each step. We stop when we hit a local optimum. The length of the path traversed dictates the time complexity of the algorithm. Also for a good approximation factor we must show that (compared with the global optima) any local minimum reached by the algorithm is not too bad.

For the min degree spanning tree problem the solution space consists of all spanning trees. The connecting operation is to swap edges till the degree goes down. Formally:

Definition 8.1.1 (T-swap:) Add edge e 1 ∈/ T and remove edge e 2 ∈ T s.t. e 2 is on the unique cycle that is formed by adding e 1 to the tree.

In order to improve the objective function value, we would like our local search algorithm to perform T-swaps as long as one of the following happens:

  • the max degree of the current tree decreases or,
  • the number of max degree nodes decrease

Unfortunately the T-swap operation with the above defined improvement criteria might get stuck with a high max degree tree (as shown in Figure 1). In particular in the figure, adding edge (2, 3)

Max degree: 5

Graph G

Optimal Max Degree=

T−swap

1

(^2 )

Local Optima

Figure 8.1.1: Allowed T-swaps

introduces cycle 1 → 2 → 3 → 1, but removing any edge edge from this cycle keeps the max degree at 5. So although the optimal tree has max degree only 3; the local optimal has max degree 5. Extending this example we can show that a local optimum can have max degree Ω(n) even when the optimal solution has max degree 3.

To overcome this problem, we allow T-swaps even when the above two conditions do not hold. In particular, consider edges e 1 = (u 1 , u 2 ) and e 2 = (u 3 , u 4 ) with e 1 ∈/ T , e 2 ∈ T and e 2 lying on the unique cycle in T ∪{e 1 }, say the T-swap of e 1 and e 2 transforms T into T ′. Finally let δ indicate the max degree of the four end points of edges e 1 and e 2 in T , i.e. δ = maxi{degT (ui)} and similarly in T ′, δ′^ = maxi{degT ′^ (ui)}. We perform a T-swap if δ′^ < δ, i.e. we perform a T-swap if the max degree over the four end points of the involved edges goes down.

This operation does not necessarily decrease the objective function value, however we note that the degree sequence of the tree decreases lexicographically. In particular, say the string χT represents

edge bw nodes of deg t−

T

T

T 1

2 3

Tc (X ) T t

X

Figure 8.1.2: Connected components in tree

been T-swapped in to reduce the degree of one of the vertices currently in Xt. So if A and B are connected in the graph, it must be via an edge with end points in Xt− 1. Hence, if we remove the Xt− 1 vertices all the cT (Xt) components definitely get disconnected in the original graph. This implies that c(Xt− 1 ) ≥ cT (Xt) for all t.

By lemma 8. 1 .3 we have

∆∗^ ≥

c(Xt− 1 ) + |Xt− 1 | − 1 |Xt− 1 |

Since |Xt− 1 | ≥ |Xt| and c(Xt− 1 ) ≥ cT (Xt) the above along with eqn. 8. 1 .1 reduces to

∆∗^ ≥ t|Xt| − 2(|Xt| − 1) + |Xt| − 1 |Xt− 1 |

= (t − 1)|Xt| + 1 |Xt− 1 |

≥

(t − 1)|Xt| |Xt− 1 |

We now pick a t that is large, and simultaneously for which |Xt| is a large fraction of |Xt− 1 |. Note that there is always a t in [∆ − log n, ∆] s.t. |Xt| ≥ 12 |Xt− 1 |. This holds because log n jumps of relative size more than 1/2 will use up all the n vertices.

For this t, ∆∗^ ≥ (∆ − log n − 1) × 12 hence we have ∆ ≤ 2∆∗^ + log n + 1.

We now proceed to determine the running time of algorithm. We prove that the number of steps required to reach a local optimal is polynomial n.

Consider the degree sequence χT of nodes in the tree ∆ ∆ ∆ − 1... 2 2 1 1. As stated earlier at every step χT moves down lexicographically. But the number of different sequences and therefore, the number of possible steps is exponentially large. Instead we use a potential function argument to show fast convergence. We define the following potential function φ(T ) =

v 3 deg(v). The intuition

behind this definition is that we assign exponential higher weight to high degree vertices. Also note that φ(T 0 ) ≤ n 3 n−^1.

Define ∆φ as the change in potential function value obtained after a T-swap. Say currently we are at tree T 1 and T-swap edge (u 1 , u 2 ) by introducing (v 1 , v 2 ) to obtain new tree T 2 , i.e. T 2 = T 1 \ {(u 1 , u 2 )} ∪ {(v 1 , v 2 )}. Say

  • degT 1 (u 1 ) = x 1 and degT 1 (u 2 ) = x 2
  • degT 1 (v 1 ) = y 1 and degT 1 (v 2 ) = y 2

Assume w.l.o.g. that x 1 ≥ x 2 , since the T-swap was legal we have y 1 + 1 ≤ x 1 − 1 and y 2 + 1 ≤ x 2. This implies

∆φ = φ(T 1 ) − φ(T 2 ) =

3 x^1 +

3 x^2 −

3 x^1 −^1

We ignore the second term in the summand to obtain

∆φ ≥

3 x^1 −

3 x^1 −^1 ≥

3 x^1 −^1

We modify the algorithm to allow a T-swaps only if the max degree of the four end points of e 1 and e 2 is greater than ∆ − log n (this does not impact the analysis of Theorem 8. 1 .2). Hence ∆φ ≥ const × 3 ∆ n.

As φ(T 1 ) ≤ n 3 ∆, we have ∆φ ≥ const × φ( nT 21 ). In other words in n^2 steps we shave off a constant factor. Therefore in n^2 × log(Initial value) = O(n^2 log(n 3 n−^1 )) = O(n^3 ) steps the algorithm would reach a local optimum. This implies that the running time of the algorithm is polynomial in n.

To summarize the local search algorithm is given as follows:

  1. Start with an arbitrary spanning tree.
  2. Say current max degree of tree is ∆
  3. Consider edges e 1 = (u 1 , u 2 ) and e 2 = (u 3 , u 4 ) with e 1 ∈/ T , e 2 ∈ T and e 2 lying on the unique cycle in T ∪ {e 1 }; Let xi = degT (ui) for i ∈ [4] and δ = maxi∈[4]{xi}; Let δ′^ = max{x 1 + 1, x 2 + 1, x 3 − 1 , x 4 − 1 };
  4. If (δ > δ′^ and δ ≥ ∆ − log n) perform T-swap of edges e 1 and e 2.
  5. Repeat steps 2 through 4 until no edges satisfy the conditions in step 4.