460 likes | 563 Views
The geometric GMST problem with grid clustering. Presented by 楊劭文 , 游岳齊 , 吳郁君 , 林信仲 , 萬高維 Department of Computer Science and Information Engineering, National Taiwan University. Outlines. Geometric GMST with grid clustering Proof of NP-hardness Reduction Optimal structure Optimal cost
E N D
The geometric GMST problem with grid clustering Presented by 楊劭文, 游岳齊, 吳郁君, 林信仲, 萬高維 Department of Computer Science and Information Engineering, National Taiwan University
Outlines • Geometric GMST with grid clustering • Proof of NP-hardness • Reduction • Optimal structure • Optimal cost • Dynamic programming algorithm • Polynomial time approximation scheme Special Topics on Graph Algorithms
Minimum Spanning Tree • a tree formed from a subset of the edges in a given undirected graph, with two properties: • (1) it spans the graph, i.e., it includes every vertex in the graph, and • (2) it is a minimum, i.e., the total weight of all the edges is as low as possible. Special Topics on Graph Algorithms
Generalized Minimum Spanning Tree • A partition of the vertex set V into clusters • Find a tree of minimum cost containing at least one vertex in each cluster Special Topics on Graph Algorithms
Applications • Applications are encountered in telecoms. Special Topics on Graph Algorithms
Geometric GMST w/grid clustering • The graph is complete • All vertices are the points situated inside the k × l planar integer grid • Edge cost: Euclidean distance between the points in the plane • All points in the same cell form a cluster • k × l grid is the smallest integer grid containing all points Special Topics on Graph Algorithms
Geometric GMST w/grid clustering Special Topics on Graph Algorithms
Outlines • Geometric GMST with grid clustering • Proof of NP-hardness • Reduction • Optimal structure • Optimal cost • Dynamic programming algorithm • Polynomial time approximation scheme Special Topics on Graph Algorithms
Theorem 1 The geometric GMST is strongly NP-hard, even if we restrict to instances in which all nonempty grid cells are connected and each grid cell contains at most two points • Proof by reducing from the problem exact cover by 3-sets (X3C) Special Topics on Graph Algorithms
S1 S2 S3 S4 x1 x2 x3 x4 x5 x6 Exact Cover by 3-Sets • A ground set X = {1, 2, … , n}, n = 3q • C = {S1, S2, …, Sm} • For 1 ≤ i ≤ m, Si is a subset of X • |Si| = 3 Special Topics on Graph Algorithms
Exact Cover by 3-Sets • Is there a set C’ such that • C’ ⊆C • The elements of C’ are disjoint and • For each xiC’, Uxi = X S1 S2 S3 S4 x1 x2 x3 x4 x5 x6 Special Topics on Graph Algorithms
S2 S1 S3 x1 x2 Special Topics on Graph Algorithms
x1 S3 x2 S2 Special Topics on Graph Algorithms
Outlines • Geometric GMST with grid clustering • Proof of NP-hardness • Reduction • Optimal structure • Optimal cost • Dynamic programming algorithm • Polynomial time approximation scheme Special Topics on Graph Algorithms
Connecting Edge • Connecting Edge (dotted edge) • Its length d is slightly larger than √2. • Assume d is arbitrary close to √2. Special Topics on Graph Algorithms
Lemma1 • No edge in Topt is larger than d, where Topt is some optimal solution. Special Topics on Graph Algorithms
Optimal subgraph Special Topics on Graph Algorithms
Lemma2 • The subgraph induced by an arbitrary optimal solution and nonempty cells of an arbitrary block is connected. Special Topics on Graph Algorithms
Optimal Subgraph Special Topics on Graph Algorithms
Two possible structures • Two possible structure in a column. • By lemma1 and lemma2 • Trunk: the structure in a column. Special Topics on Graph Algorithms
Outlines • Geometric GMST with grid clustering • Proof of NP-hardness • Reduction • Optimal structure • Optimal cost • Dynamic programming algorithm • Polynomial time approximation scheme Special Topics on Graph Algorithms
Calculate the Total Cost • For any n ≥ 1 let be the total cost of the edges in a trunk • Let > 0 be a small enough number. Special Topics on Graph Algorithms
Differences between Red Trunk & Blue Trunk • we can move some points by a very small distance • The cost of a red trunk remains • The cost of a blue trunk is • Connecting blocks in a red trunk costs d • The connection cost for a blue trunk is as follows. Connecting block i with block i + 1 in column j costs d − if i ∈ and d otherwise Special Topics on Graph Algorithms
Definition • let Z = c( ) be its cost. • = Z−3(m−1)(n+1) • let be the contribution of column j Special Topics on Graph Algorithms
Connecting edge • For a connecting edge e in a column j we define its averaged connecting cost as where is the number of connecting edges in column j. • We have Special Topics on Graph Algorithms
Use Blue Trunk • the averaged connecting cost c(e) for each of the three connecting edges e in this column is • if a column j contains at least one connecting edge e that connects block i with block i+1 while , then the averaged connecting cost c(e) is at least Special Topics on Graph Algorithms
X3CGMST • If an exact cover exists • if no cover exists Special Topics on Graph Algorithms
Outlines • Geometric GMST with grid clustering • Proof of NP-hardness • Reduction • Optimal structure • Optimal cost • Dynamic programming algorithm • Polynomial time approximation scheme Special Topics on Graph Algorithms
Definitions f (St,M) t ∈{1, 2, . . . , − 3} Ct: The tth column St: subset of V containing exactly one point from each nonempty cell in Ct+1,Ct+2, and Ct+3. Tt: edge set on St-1 U St M: zero-one transitive matrix represents theconnectivity f (St,M): a generalized minimum spanning forest M St … Ct Ct+1 Ct+2 Ct+3 … St-1 M’ Special Topics on Graph Algorithms f (St-1,M’)
Lemma 3 Assume that all nonempty grid cells are connected, then an optimal solution of a geometric GMST with grid clustering does not contain edges of length greater than 2√2. By Lemma 3, any forest f(St, M) can be obtained as a forest f(St-1, M’) extended by a subset Tt of edges on the point set St-1∪St. Special Topics on Graph Algorithms
Dynamic programming algorithm The recursive relation: Consistency Enumerate St and M Enumerate St-1 and M’ Enumerate Tt 4k points Adding Number of St Special Topics on Graph Algorithms
Theorem 2 The dynamic programming algorithm solves the geometric GMST with connected nonempty grid cells in time The computation time is polynomial if k is fixed. Special Topics on Graph Algorithms
Outlines • Geometric GMST with grid clustering • Proof of NP-hardness • Reduction • Optimal structure • Optimal cost • Dynamic programming algorithm • Polynomial time approximation scheme Special Topics on Graph Algorithms
Polynomial Time Approximation Scheme (PTAS) • Assume all nonempty grid cells are connected. • The number is at least . • The PTAS is based on the DP. • It is a - approximation where . Special Topics on Graph Algorithms
Partitioning into Slices • Define . #Rows Row Slice 1 Slice 2 Slice 3 Slice △ Special Topics on Graph Algorithms
Finding GST for each Slice • GMSTs are obtained by applying DP. • Obtain a GST by adding edges only in the upper/bottom rows of the slice. Slice i Special Topics on Graph Algorithms
Obtaining the GST for the Graph • Picking edges greedily yields GST . Row Slice 1 Slice 2 Slice 3 Slice △ Special Topics on Graph Algorithms
TAPPX: (1+ ε)-approximation TOPT Special Topics on Graph Algorithms
Lower Bound of c(Fi) Slice i Special Topics on Graph Algorithms
Lower Bound of c(Fi) Slice i Special Topics on Graph Algorithms
Combining (1), (2) and (3) Special Topics on Graph Algorithms
Upper Bound of c(TOPT) • Consider 3×3 subgrid with nonempty center. • There are at least such subgrids. • It takes at least length 1 for the center to connect to its boundary. Special Topics on Graph Algorithms
Combining (4) and (5) Special Topics on Graph Algorithms
Open Questions, Further Research • PTAS for geometric GMST with non-intersecting square clusters of variable sizes. • Fast constant approximation algorithms for geometric GMST with grid clustering. • DP as a subroutine of PTAS is impractical. Special Topics on Graph Algorithms
Thanks THE END Special Topics on Graph Algorithms