Retracting Graphs to Cycles
Samuel Haney, Mehraneh Liaee, Bruce M. Maggs, Debmalya Panigrahi,, Rajmohan Rajaraman, and Ravi Sundaram

TL;DR
This paper studies algorithms for retracting graphs onto cycles, providing approximation algorithms for general and planar graphs, and establishing connections to topological and metric embedding problems.
Contribution
It introduces the first approximation algorithms for graph retraction to cycles, including an exact algorithm for planar graphs and a constant-factor approximation for Euclidean points.
Findings
O(min{k, sqrt{n}})-approximation for general graphs
Exact combinatorial algorithm for planar graphs
Constant-factor approximation for Euclidean plane retraction
Abstract
We initiate the algorithmic study of retracting a graph into a cycle in the graph, which seeks a mapping of the graph vertices to the cycle vertices, so as to minimize the maximum stretch of any edge, subject to the constraint that the restriction of the mapping to the cycle is the identity map. This problem has its roots in the rich theory of retraction of topological spaces, and has strong ties to well-studied metric embedding problems such as minimum bandwidth and 0-extension. Our first result is an O(min{k, sqrt{n}})-approximation for retracting any graph on n nodes to a cycle with k nodes. We also show a surprising connection to Sperner's Lemma that rules out the possibility of improving this result using natural convex relaxations of the problem. Nevertheless, if the problem is restricted to planar graphs, we show that we can overcome these integrality gaps using an exact…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Duke University [email protected][orcid]Northeastern University [email protected][orcid] Duke University & Akamai Technologies [email protected][orcid] Duke University [email protected][orcid] Northeastern University [email protected][orcid] Northeastern University [email protected][orcid] \CopyrightSamuel Haney, Mehraneh Liaee, Bruce M. Maggs, Debmalya Panigrahi, Rajmohan Rajaraman, Ravi Sundaram\ccsdesc[100]Theory of computation Design and analysis of algorithms \fundingSamuel Haney and Bruce M. Maggs were supported by NSF grant CCF 1535972, Debmalya Panigrahi was partially supported by NSF grants CCF 1527084 and CCF 1535972, an NSF CAREER Award CCF 1750140, and a Joint Indo-US Networked Center for "Algorithms under Uncertainty", Ravi Sundaram was supported by NSF grants CCF 1535929 and NSF CNS 1718286.
Acknowledgements.
We would like to thank Joseph Seffi Naor for helpful discussions on the problems considered in this paper.\hideLIPIcs
\EventEditorsChristel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi \EventNoEds4 \EventLongTitle46th International Colloquium on Automata, Languages, and Programming (ICALP 2019) \EventShortTitleICALP 2019 \EventAcronymICALP \EventYear2019 \EventDateJuly 9–12, 2019 \EventLocationPatras, Greece \EventLogoeatcs \SeriesVolume132 \ArticleNo65
Retracting Graphs to Cycles
Samuel Haney
Mehraneh Liaee
Bruce M. Maggs
Debmalya Panigrahi
Rajmohan Rajaraman
Ravi Sundaram
Abstract
We initiate the algorithmic study of retracting a graph into a cycle in the graph, which seeks a mapping of the graph vertices to the cycle vertices, so as to minimize the maximum stretch of any edge, subject to the constraint that the restriction of the mapping to the cycle is the identity map. This problem has its roots in the rich theory of retraction of topological spaces, and has strong ties to well-studied metric embedding problems such as minimum bandwidth and [math]-extension.
Our first result is an -approximation for retracting any graph on nodes to a cycle with nodes. We also show a surprising connection to Sperner’s Lemma that rules out the possibility of improving this result using certain natural convex relaxations of the problem. Nevertheless, if the problem is restricted to planar graphs, we show that we can overcome these integrality gaps using an optimal combinatorial algorithm, which is the technical centerpiece of the paper. Building on our planar graph algorithm, we also obtain a constant-factor approximation algorithm for retraction of points in the Euclidean plane to a uniform cycle.
keywords:
Graph algorithms, Graph embedding, Planar graphs, Approximation algorithms.
category:
Regular Paper Track A
1 Introduction
Originally introduced in 1930 by K. Borsuk in his PhD thesis [10], retraction is a fundamental concept in topology describing continuous mappings of a topological space into a subspace that leaves the position of all points in the subspace fixed. Over the years, this has developed into a rich theory with deep connections to fundamental results in topology such as Brouwer’s Fixed Point Theorem [30]. Inspired by this success, graph theorists have extensively studied a discrete version of the problem in graphs, where a retraction is a mapping from the vertices of a graph to a given subgraph that produces the identity map when restricted to the subgraph (i.e., it leaves the subgraph fixed). For a rich history of retraction in graph theory, we refer the reader to [28]. Define the stretch of a retraction to be the maximum distance between the images of the endpoints of any edge, as measured in the subgraph. We use stretch- retraction to mean a retraction whose stretch is ; in particular, a stretch- retraction is a mapping where every edge of the graph is mapped to either an edge of the subgraph, or both its ends are mapped to the same vertex of the subgraph111In the literature, a stretch-1 retraction is often simply referred to as a retraction or a retract [28]. Also, in many studies, a (stretch-1) retraction requires that the two end-points of an edge in the graph are mapped to two end-points of an edge in the subgraph. These studies differentiate between the case where the subgraph being retracted to is reflexive (has self-loops) or irreflexive (no self-loops). In this sense, our notion of graph retraction corresponds to their notion of retraction to a reflexive subgraph..
In this paper, we study the algorithmic problem of finding a minimum stretch retraction in a graph. This problem belongs to the rich area of metric embeddings, but somewhat surprisingly, has not received much attention in spite of the deep but non-constructive results in the graph theory literature. The graph retraction problem has a close resemblance to the well-studied [math]-extension problem [11, 32, 34] (and its generalizations such as metric labeling [37, 13]), which is also an embedding of a graph to a metric over a subset of terminals with the constraint that each vertex in maps to itself. The two problems differ in their objective: whereas [math]-extension seeks to minimize the average stretch of edges, graph retraction minimizes the maximum stretch. The different objectives lead to significant technical differences. For instance, a well-studied linear program called the earthmover LP has a nearly logarithmic integrality gap for [math]-extension. In contrast, we show that a corresponding earthmover LP for graph retraction has integrality gap . A well-studied problem in the metric embedding literature that considers the maximum stretch objective is the minimum bandwidth problem, where one seeks an isomorphic embedding of a graph into a line (or cycle) that minimizes maximum stretch. In contrast, in graph retraction, we allow homomorphic maps222A homomorphic map is one where an image can have multiple pre-images, while an isomorphic map requires that every image has at most one pre-image. but additionally require a subset of vertices (the anchors) to be mapped to themselves.
From an applications standpoint, our original motivation for studying minimum-stretch graph retraction comes from a distributed systems scenario where the aim is to map processes comprising a distributed computation to a network of servers where some processes are constrained to be mapped onto specific servers. The objective is to minimize the maximum communication latency between two communicating processes in the embedding. Such anchored embedding problems can be shown to be equivalent to graph retraction for general subgraphs, and arise in several other domains including VLSI layout, multi-processor placement, graph drawing, and visualization [27, 26, 41].
1.1 Problem definition, techniques, and results
We begin with a formal definition of the minimum stretch retraction problem.
Definition 1.1**.**
Given an unweighted guest graph and a host subgraph of , a mapping is a retraction of to if for all . For a given retraction of to , define the stretch of an edge to be , where is the distance metric induced by , and define the stretch of to be the maximum stretch over all edges of graph . The goal of the minimum-stretch graph retraction problem is to find a retraction of to with minimum stretch. We refer to the vertices of as anchors.
The graph retraction problem is easy if the subgraph is acyclic (see, e.g., [39]); therefore, the first non-trivial problem is to retract a graph into a cycle. Indeed, this problem is NP-hard even when is just a 4-cycle [20]. Given this intractability result, a natural goal is to obtain an algorithm for retracting graphs to cycles that approximately minimizes the stretch of the retraction. This problem is the focus of our work. While there has been considerable interest in identifying conditions under which retracting to a cycle with stretch 1 is tractable [25, 28, 48], there has been no work (to the best of our knowledge) on deriving approximations to the minimum stretch333One direct implication of the NP-hardness proof is that approximating the maximum stretch to a multiplicative factor better than two is also NP-hard..
We consider the following lower bound for the problem: if anchors and are distance in , and there exists a path of vertices in between and , then every retraction has stretch at least . This lower bound turns out to be tight when is acyclic, which is the reason retraction to acyclic graphs is an easy problem. However, this lower bound is no longer tight when is a cycle. For example, consider a grid graph where is the border of the grid. The lower bound given above says that any retraction has stretch at least . However, using the well-known Sperner’s lemma, we show that the optimal retraction has stretch at least .
Using just the simple distance based lower bound, we show that the gap on the grid is in fact the worst possible by giving a -approximation for the problem, where is the number of vertices of . Our algorithm works by first mapping vertices of the graph into a grid, then projecting vertices outward to the border from the largest hole in the grid, which is the largest region containing no vertices.
Theorem 1.2**.**
There is a deterministic, polynomial-time algorithm that computes a retraction of a graph to a cycle with stretch at most times the optimal stretch, where and are respectively number of vertices in the graph and cycle.
Our results for retracting a general graph to a cycle appear in Section 2. We also give evidence that the gap induced by Sperner’s lemma on a grid graph is fundamental, showing an integrality gap for natural linear and semi-definite programming relaxations of the problem. To overcome this gap, we focus on the special case of planar graphs, of which the grid is an example. Retraction in planar graphs has been considered in the past, most notably in a beautiful paper of Quilliot [40] who uses homotopy theory to characterize stretch-1 retractions of a planar graph to a cycle. Quillot’s proof, however, does not yield an efficient algorithm. In Section 3, we provide an exact algorithm for retraction in planar graphs by developing the gap induced by Sperner’s lemma on a grid into a general lower bound on the optimal stretch for planar graphs.
Theorem 1.3**.**
There is a deterministic, polynomial-time algorithm that computes a retraction of a planar graph to a cycle with optimal stretch.
Unfortunately, our techniques rely heavily on the planarity of the graph, and do not appear to generalize to arbitrary graphs. While we leave the question of obtaining a better approximation for general graphs open, we provide a more sophisticated linear programming formulation that captures the Sperner lower bound on general graphs as a possible route to attack the problem.
We also study natural special cases and generalizations of the problem, all of which are presented in the appendix due to space limitations. First, we consider a geometric setting, where a set of points in the Euclidean plane has to be retracted to a uniform cycle of anchors. By a uniform cycle of anchors we mean a set of anchors which are distributed uniformly on a circle in the plane. We obtain a constant approximation algorithm for this problem, by building on our planar graph algorithm, in Appendix C. We next consider retraction of a graph of bounded treewidth to an arbitrary subgraph, and obtain a polynomial-time exact algorithm in Appendix D. Finally, we apply the lower bound argument of [32] for [math]-extension to show in Appendix E that a general variant of the problem that seeks a retraction of an arbitrary weighted graph to a metric over a subset of the vertices of is hard to approximate to within a factor of for any .
1.2 Related work
List homomorphisms and constraint satisfaction. The graph retraction problem is a special case of the list homomorphism problem introduced by Feder and Hell [20], who established conditions under which the problem is NP-complete. Given graphs , and for each , a list homomorphism of to with respect to is a homomorphism with for each .
Several special cases of graph retraction and variants of list homomorphism have been subsequently studied (e.g., [19, 28, 47, 48]). These studies have established and exploited the rich connections between list homomorphism and Constraint Satisfaction Problems (CSPs). Though approximation algorithms for CSPs and related problems such as Label Cover have been extensively studied, the objective pursued there is that of maximizing the number of constraints that are satisfied. For our graph retraction problem, this would correspond to maximizing the number of edges that have stretch below a certain threshold. Our notion of approximation in graph retraction, however, is the least factor by which the stretch constraints need to be relaxed so that all edges are satisfied.
[math]-extension, minimum bandwidth, and low-distortion embeddings. From an approximation algorithms standpoint, the graph retraction problem is closely related to the [math]-extension and minimum bandwidth problems [21, 8, 23, 46, 15, 43]. In the [math]-extension problem, one seeks to minimize the average stretch, which can be solved to an approximation using a natural LP relaxation [11, 18]. In contrast, we give polynomial integrality gaps for the graph retraction problem. In the minimum bandwidth problem, the objective is to find an embedding to a line that minimizes maximum stretch, but the constraint is that the map must be isomorphic rather than that the anchor vertices must be fixed. In a seminal result [21], Feige designed the first polylogarithmic-approximation using a novel concept of volume-respecting embeddings. A slightly improved approximation was achieved in [16] by combining Feige’s approach with another bandwidth algorithm based on semidefinite-programming [8]. Interestingly, the minimum bandwidth problem is NP-hard even for (guest) trees, while graph retraction to (host) trees is solvable in polynomial time. Conversely, the bandwidth problem is solvable in time for bandwidth graphs [24], while graph retraction to a cycle is NP-complete even when the host cycle has only four vertices. Nevertheless, it is conceivable that volume-respecting embeddings, in combination with random projection, could lead to effective approximation algorithms for graph retraction to a cycle in a manner similar to what was achieved for VLSI layout on the plane [46].
Also related are the well-studied variants of linear and circular arrangements, but their objective functions are average stretch, as opposed to maximum stretch. Finally, another related area is that of low-distortion embeddings (e.g., [31]), where recent work has considered embedding one specific -point metric to another -point metric [36, 38, 5] similar to the graph retraction problem. But low-distortion embeddings typically require non-contracting isomorphic maps, which distinguishes them significantly from the graph retraction problem.
A related recent work studies low-distortion contractions of graphs [7]. Specifically, the goal is to determine a maximum number of edge contractions of a given graph such that for every pair of vertices, the distance between corresponding vertices in the contracted graph is at least a given affine function of the distance in . Several upper bounds and hardness of approximations are presented in [7] for many special cases and problem variants. While graph retraction and contraction problems share the notion of mapping to a subgraph, the problems are considerably different; for instance, in the graph retraction problem the subgraph is part of the input, and the objective is to minimize the maximum stretch.
2 Retracting an arbitrary graph to a cycle
In this section, we study the problem of retracting an arbitrary graph to a cycle over a subset of vertices of the graph. Let denote the guest graph over a set of vertices, with shortest path distance function . Let denote the host cycle with shortest path distance function over a subset of anchors.
Arguably, the simplest lower bound on the optimal stretch is the distance-based bound , since every retraction places a path of length in on a path of length at least in .
We now present our algorithm (Algorithm 1), which achieves a stretch of . Here, we give a high level overview of the algorithm. The first step of algorithm is to embed the input graph into a grid of size subject to some constraints. The second step is to find the largest empty sub-grid such that no point is mapped inside of and center of is within a desirable distance from center of grid . And final step is to project the points in grid to its boundary with respect to center of sub-grid .
We now show how to implement the first step of Algorithm 1. Our goal is to embed each vertex to some point in a grid such that for every , we have the following inequality, where denotes the distance between and . (That is, for two points and , .)
[TABLE]
Additionally, we require that is embedded to the boundary of the grid, such that adjacent anchors lie on adjacent grid points.
Lemma 2.1**.**
For every , we can find an embedding satisfying inequality 1.
Proof 2.2**.**
We incrementally construct the embedding . Initially, we place the anchors on the boundary of the grid so that the boundary is isometric to . (This can be done since is a cycle.) Since and , inequality 1 holds for all anchors and in .
We next inductively embed the remaining vertices of . Suppose we need to embed vertex , and vertices have already been embedded. Assume inductively that the embedding of the vertices of satisfies inequality 1 for the vertices in .
Let denote the ball around with radius (note that these balls are axis-aligned squares). Let be any point in . If we set , then inequality 1 holds for all points in . We now show that this intersection is nonempty (it is straightforward to find an element in the intersection). The set of axis aligned squares has Helly number 2444A family of sets has Helly number if any minimal subfamily with an empty intersection has or fewer sets in it.; therefore it is enough to show that for every , and intersect. Otherwise,
[TABLE]
This contradicts our induction hypothesis that the set of vertices in satisfies inequality 1, and completes the proof of the lemma.
In the following lemma, we analyze the projection embedding step of the algorithm.
Lemma 2.3**.**
Suppose is the side length of the largest empty square inside . Then for any vertices and in , is at most .
Proof 2.4**.**
For any point , let denote the intersection of the boundary of and the ray from the center of passing through . Note that for any vertex in , is the anchor in nearest in clockwise direction to . We show that for any , the distance between and along the boundary of is at most .
We first argue that it is sufficient to establish the preceding claim for points on the boundary of , at the loss of a factor of . Let and be two arbitrary points in but not in the interior of . Let (resp., ) denote the intersection of (resp., ) and the boundary of . From elementary geometry, it follows that , where is the Euclidean distance; since and , we obtain . Since and , establishing the above statement for and implies the same for and , up to a factor of .
Consider points and on the boundary of . We consider three cases. In the first two cases, and are on the same side of . In the first case (Figure 1(a)), and are on the same side of the boundary of and segment is parallel to segment ; then, by similarity of triangle formed by , , and and the one formed by , and , we obtain that the distance between and is at most . In the second case (Figure 1(b)), and are on same side of the boundary of , and segment is orthogonal to segment . In this case, w.l.o.g. assume that is closer to center than with respect to distance. Let point be a point on segment such that segments and are parallel. From center extend a line parallel to segment until it hits the side of on which and are. Let be the intersection. Using elementary geometry and similarity argument, we have the following:
[TABLE]
We thus obtain . For the third case (Figure 1(c)), we observe that is at least half the shortest path between and that lies within the boundary of . This latter shortest path consists of at most five segments, each residing completely on one side of the boundary of . We apply the argument of the first and second case to each of these segments to obtain that the distance between and is at most .
To complete the proof, we note that distance between anchor nearest (clockwise) to and anchor nearest (clockwise) to is at most one plus the distance between and . Therefore, the is at most .
Theorem 2.5**.**
Algorithm 1 computes a retraction of to the cycle with stretch at most the minimum of and times the optimal stretch.
Proof 2.6**.**
By Lemma 2.1, the embedding satisfies inequality 1 for every and in . By a straightforward averaging argument, there exists a square of side length whose center is at distance at most from the center of and which does not contain for any in . By Lemma 2.3, the projection embedding ensures that for any and in , is at most . Since the distance in cannot exceed , the claim of the theorem follows.
The Sperner bottleneck. Unfortunately, we cannot improve on the approximation ratio in Theorem 2.5 using only the distance-based lower bound. Consider the following instance: the guest graph is the grid, and the host is the cycle of formed by the vertices on the outer boundary of . It is easy to see that the distance-based lower bound has a value of on this instance. On the other hand, using Sperner’s Lemma from topology, we show that a stretch of is ruled out:
Lemma 2.7**.**
The optimal stretch achievable for an -vertex grid is at least .
Proof 2.8**.**
Suppose we triangulate the grid by adding northwest-to-southeast diagonals in each cell of the grid. Consider the following coloring of the boundary with 3 colors. Divide into three segments, each consisting of a contiguous sequence of at least vertices; all vertices in the first, second, and third segment are colored red, green, and blue, respectively. Let be any retraction from to . Let denote the following coloring for : the color of is the color of . By Sperner’s Lemma [45], there exists a tri-chromatic triangle. This implies that there are two vertices within distance at most two in that are at least apart in the retraction , resulting in a stretch of at least .
Note that in this instance, so the above lemma also rules out an approximation using the distance-based lower bound. A natural approach to improving the approximation factor is to use an LP or SDP relaxation for the problem. Indeed, the so-called earthmover LP used for the closely related [math]-extension problem [32, 12] can be easily adapted to our minimum stretch retraction problem. Similarly, SDP relaxations previously used for minimum bandwidth and related problems [8, 44] can also be adapted to our problem. However, these convex relaxations also have an integrality gap of for precisely the same reason: they capture the distance-based lower bound but not the one from Sperner’s lemma on the grid (see Appendix A for a detailed discussion of these LP/SDP relaxations and integrality gaps).
In spite of these gaps, we show that the grid is not a particularly challenging instance of the problem. In fact, in the next section, we give an exact algorithm for retraction in planar graphs, of which the grid is an example. Retraction of planar graphs to cycles has been considered in the past, and non-constructive characterizations of stretch- embeddings were known [40]. Our constructive result, while using planarity extensively, suggests that there might be a general technique for addressing the Sperner bottleneck described above. Indeed, we give a candidate LP relaxation in Appendix A that captures the Sperner bound on the grid. Rounding this LP to obtain a better approximation ratio, or showing an integrality gap for it, is an interesting open question.
3 Retracting a planar graph to a cycle
The main result of this section is the following theorem.
Theorem 3.1**.**
Let be a planar graph and a cycle of . Then there is a polynomial time algorithm that finds a retraction from to with optimal stretch.
We begin by presenting some useful definitions and elementary claims in Section 3.1. We then present an overview of our algorithm in Section 3.2. Finally, we present the algorithm and its analysis, leading to the proof of Theorem 3.1.
3.1 Preliminaries
We begin with a simple lemma that reduces the problem of finding a minimum-stretch retraction to the problem of finding a stretch-1 retraction, in polynomial time. Formally, suppose we have an algorithm that, given graphs and either finds a stretch-1 retraction from to , or proves that no such retraction exists. Then, we can use this algorithm to find the minimum stretch embedding of into , using Lemma 3.2 below, whose straightforward proof is deferred to Appendix B. Let be the graph where we replace each edge with a path of edges. Clearly, can be computed in polynomial time.
Lemma 3.2**.**
* can be retracted to with stretch if and only if can be retracted in with stretch-1.*
The following lemma, proved in Appendix B, implies that degree-1 vertices can be eliminated.
Lemma 3.3**.**
Without loss of generality, we can assume is 2-vertex connected.
Lemmas 3.2 and 3.3 apply to general graphs. In the rest of this subsection, we focus our attention on planar graphs. We note that all the transformations in Lemmas 3.2 and 3.3 preserve planarity of the graph. In 2-connected planar graph, every face of a plane embedding is bordered by a simple cycle. Finally, we can assume that there is a planar embedding of with bordering the outer face. If this is not the case, contains at least two connected components, which can each be retracted independently.
Next, we give some definitions related to planar graphs. We call triangulated if it is maximally planar, i.e., adding any edge results in a graph that is not planar. Equivalently, is triangulated if every face of a plane embedding (including the outer face) of has 3 edges. We will make use of the Jordan curve theorem, which says that any closed loop partitions the plane into an inner and outer region (see e.g. [2]). In particular, this implies that any curve crossing from the inner to the outer region intersects the loop. For some cycle in and a plane embedding of , we denote the subset of surrounded by as (including the intersection with itself). We say that is inside cycle of for a plane embedding if . If is inside , we also say that surrounds . In a slight abuse of notation, we say surrounds subgraph of for some fixed plane embedding, if surrounds the subset of on which is drawn in the plane embedding.
3.2 Overview of our algorithm
Consider some plane embedding of graph such that is the subgraph of bordering ’s outer face. We give a polynomial-time algorithm that finds a stretch-1 retraction from to or proves that none exists. Using Lemma 3.2, this immediately yields an algorithm that finds a minimum stretch retraction from to .
Fix a planar embedding of , let be defined as above, and let be a bounded face of . A key component of our algorithm is to find a suitable set of curves connecting to . Our aim is to find a set of curves in such that the following hold.
- •
Each curve begins at a distinct vertex of and ends at a distinct vertex of .
- •
The curves do not intersect each other.
- •
A curve that intersects an edge of either contains the edge, or intersects the edge only at its vertices.
- •
Each curve lies totally in .
We call curves with these properties valid with respect to . We argue that the curves partition (up to their boundaries being duplicated) into a set of regions. Each of these regions is defined by the subset of surrounded by the closed loop made up of two of the aforementioned curves, a single edge of , and a path on the boundary of .
Given a face and a set of curves valid with respect to , we can give a stretch-1 retraction from to . In essence, the curves partition the graph into regions such that all vertices in a particular region map to one of two end-points of a particular edge of . See Figure 2 for an illustration.
Of course, it is not obvious that a valid set of curves exists for a given face, and, if it does, how to compute it. We show that if the graph has a stretch-1 retraction, then there is some face with valid curves, and that we can efficiently compute them. Our algorithm (Algorithm 2) iterates over all faces in the graph, in each case finding the maximum number of valid curves it can with respect to that face. The number of valid curves we can find is the length of the shortest cycle surrounding . If the shortest cycle surrounding has length , then it is impossible to find more than valid curves with respect to : By the Jordan curve theorem, each curve must intersect , and by the definition, valid curves do not intersect each other and can intersect only at its vertices. Our construction of the valid curves shows that this is tight (i.e. we can always find curves). We show that if a stretch-1 retraction exists, then there is some face for which . Algorithm 2 gives an outline of the algorithm.
3.3 Algorithm and analysis
This section gives the details of various components of Algorithm 2, and provides a proof of correctness. The following is an outline of the rest of the section:
Lemma 3.6 shows how to compute a stretch-1 retraction using the valid curves in line 4 of Algorithm 2. 2. 2.
Next, Lemma 3.8 shows that if a stretch-1 retraction exists, there must be some face in the graph such that the smallest cycle surrounding has length . 3. 3.
Finally, Lemma 3.11 gives a construction of largest set of valid curves for a given face from line 2, and shows that the number of curves computed equals the length of the smallest cycle surrounding .
We begin by showing in Lemma 3.4 a somewhat obvious fact: A set of valid curves partition , and each region of the partition contains a single edge of . We then show in Lemma 3.6 that this partition can be used to produce a stretch-1 embedding. See Figure 2 for pictorial presentation of these two lemmas.
Lemma 3.4**.**
Let be a set of curves that are valid with respect to . Let denote the set of faces of excluding the outer face and . Then, each face is bordered by exactly 1 edge of , and every vertex of is in a unique face of .
Proof 3.5**.**
Consider the faces of . and still define faces since the paths fall in . Let be an edge of , and consider where is the path containing , is the path containing , and is the path on the boundary of between the vertices where and meet such that is not contained in . If and are both degenerate (i.e., each is empty), then . Otherwise is a simple cycle. We claim that defines a face. In particular, we show that the path contains no other vertex of path for all . Suppose it does and let be that vertex. Let be the vertex adjacent to on . Then , and so . The other end of path , call it vertex , is in , but . By the Jordan curve theorem, must cross . Since the graph is planar, must contain a vertex of , or . Any of these outcomes leads to a contradiction.
Lemma 3.6**.**
Given a non-outer face and a set of curves that are valid with respect to , we can construct a stretch-1 retraction from to in polynomial time.
Proof 3.7**.**
Let be as defined in Lemma 3.4. For each vertex on , map to the unique vertex . Otherwise, map to or , where is the unique edge of contained in the same face of as . Fix a face of . Let be the unique edge of contained in . Any edge contained in also has , and so and are each mapped to either or . Thus, this retraction to has stretch 1.
As mentioned earlier, we will show that our construction produces valid curves for face , where is the minimum length cycle surrounding . So we must show that if a stretch-1 retraction exists, there is some such that every cycle surrounding has length at least .
Lemma 3.8**.**
Fix a plane embedding of where defines the outer face of the embedding and suppose there is a stretch-1 retraction to . Then there exists a non-outer face such that every cycle surrounding has length at least .
Proof 3.9**.**
We prove a related claim that implies the statement in the lemma. Fix some stretch-1 retraction of to . Then there exists a non-outer face such that for every cycle in the set of cycles surrounding , and for each vertex , there is some vertex of mapped to . This implies that each of these cycles has length at least , since the statement says that vertices of are mapped to vertices of .
The claim is very similar to Sperner’s lemma, and the proof is similar as well. Let denote the retraction. We associate a score with each cycle of the graph: Order the vertices of the cycle in clockwise order, denoted . Consider the sequence . Let the score of be 0 to start. For each pair , we have: either , or and are adjacent in . If is clockwise of (i.e. if they are in the same order as on ), add 1 to the score of . If they are in counterclockwise order, subtract 1. If they are the same vertex, the score remains the same. If does not contain every vertex on the outer cycle, the score of must be 0, since each edge along the path is traversed exactly the same number of times in each direction. On the other hand, a cycle with a non-zero score must have a score that is divisible by .
Next, we claim that the score of cycle is the same as the sum of the scores of the cycles defining the faces contained in . To see this, consider the total contribution to the scores of these cycles from any fixed edge. If the edge is not in cycle , it is a member of exactly 2 faces contained in , and contributes either 0 to both faces, or to one and to the other. Edges in are each a member of just one face surrounded by . Therefore, the score of cycle is the same as the sum of scores of its surrounded faces. Since the score of cycle is , there must be some face that has non-zero score.
Finally, we show that there is some face with nonzero score such that every cycle surrounding the face also has nonzero score. Suppose this is not the case. Then, every face with a non-zero score is surrounded by a cycle with score 0, which implies that the sum of all scores of faces with non-zero scores is 0. This is a contradiction, since it implies that the sum of scores of all internal faces in the graph is 0.
We complete the section by giving a construction of the largest set of valid curves with respect to some face , and show that the number of curves equals the length of the shortest cycle surrounding . Our curves will be disjoint paths in a supergraph of . It is necessary to relate the maximum number of disjoint paths to the length of the shortest cycle surrounding . The following lemma, proved in Appendix B, establishes this connection. We believe this lemma should be known, but cannot find it in the relevant literature.
Lemma 3.10**.**
Let be a triangulated graph. The graph induced by any minimum - vertex cut is the shortest simple cycle separating and .
If was already triangulated, we could compute a set of vertex disjoint paths from to (note that a set of vertex disjoint paths yields a set of valid curves). By Menger’s theorem and Lemma 3.10, we would find paths, where is the shortest cycle surrounding . may not be triangulated, so instead we could first triangulate and then compute the paths. However, the number of paths we find in this case is the length of the shortest cycle surrounding in the triangulation of , which may be smaller than . We prevent this from happening by producing a triangulation that adds vertices as well as edges.
Lemma 3.11**.**
Fix a planar embedding of with as the outer face, and let be other face. Then we can compute valid curves in polynomial time, where is the length of the shortest cycle surrounding .
Proof 3.12**.**
We build a triangulated graph from the planar embedding of . First, add vertices and edges to every face of , excluding the outer face and . We do this such that (1) every face except and the outer face is a triangle, and (2) the distance between any is preserved. From each face with more than 3 edges, we create one new face that has one fewer edge. One step of this iterative construction is shown in Figure 3.
Note that distances are preserved inductively, and we make progress by reducing the size of some face. The graph we produce has 3 edges bordering each face, except for the outer face and . In all, the number of vertices and edges added to each face of is polynomial in the number of edges bordering the face.
Finally, we add vertices and , and edges from to each vertex of and from to each vertex of . The resulting graph is triangulated, and we call this graph .
At this point, we can find the maximum set of vertex disjoint paths between and in , by setting vertex capacities to 1 and computing a max flow between and . Because we have preserved distances between vertices of in our construction of , the length of the minimum cycle surrounding must be . Therefore, the number of disjoint paths we find must also be . Finally, we claim that this set of disjoint paths from to in is a set of valid curves for . This is because is a subgraph of , and therefore the criteria for valid curves are still met after removing the vertices and edges of .
We conclude by tying together the pieces of the section to show we proved Theorem 3.1.
Proof 3.13** (Proof of Theorem 3.1).**
Fix a face . By Lemma 3.10, we determine the set of disjoint paths from to where the surrounding minimum cycle is of length . By Lemma 3.8, there is a stretch-1 retraction only if there exists a face whose surrounding min-cycle is of length . So if there is no stretch-1 retraction, we find disjoint paths for all faces, and our algorithm returns “no”. Otherwise, there exists a face for which the surrounding min-cycle is of length , and this gives a set of valid paths. Then, by Lemma 3.6, the retraction that we construct has stretch 1.
4 Open problems
Our work leaves several interesting directions for further research. First, we would like to determine improved upper and/or lower bounds on the best approximation factor achievable for retracting a general graph to a cycle. Second, we would like to explore extending our approach for planar graphs (Section 3) and Euclidean metrics (Appendix C) to more general graphs and high-dimensional metrics. Another open problem is that of finding approximation algorithms for retracting a general guest graph to an arbitrary host graph over a subset of anchor vertices, for which we have presented a hardness result in Appendix E.
Appendix
Appendix A Proofs for Section 2
A.1 Approximation algorithm for general graphs
A.2 The Sperner bottleneck
In this section, we elaborate on the Sperner bottleneck and establish that natural LP and SDP relaxations for minimum-stretch retraction to cycles suffer from an integrality gap on this instance. Recall the definition of the Sperner bottleneck instance: the guest graph is the grid, and the host is the cycle of formed by the vertices on the outer boundary of . In Lemma 2.7, we used Sperner’s Lemma to show that the optimal stretch achievable for this instance is .
We now consider natural linear and semi-definite programming relaxations for the retraction problem, and show that each incurs an integrality gap of for the Sperner bottleneck.
Integrality gap of LP relaxation. A natural LP relaxation for graph retraction is the earthmover LP, which has the same constraints as the corresponding LP extensively studied for the [math]-extension problem, but with a different objective of taking the maximum stretch, as opposed to the sum or the average of the stretches [32, 12]. For any , we have a vector variable , which is a probability distribution over the set of anchors (in ). The stretch of an edge is given by the earthmover distance between and , which can be computed as the minimum cost incurred in sending a unit flow from to in the metric . Here is the earthmover LP relaxation for the minimum-stretch retraction from to .
[TABLE]
We now show that the above LP has objective function value for the given instance. We partition the vertices of the grid into groups: for , the group denotes the set of vertices in the th square at distance from the geometric center of the grid. For any in , we set to be distributed evenly across a segment in the boundary of length . Thus, for instance, every vertex in is mapped to a segment of length , and every vertex in the boundary (which is ) is mapped to a segment of length 1 (i.e., to itself). The segments that the vertices in a specific group are mapped to are spaced out evenly across the boundary.
We establish that the earthmover distance between and for any neighbors and of the grid is . First, suppose and are in the same group. In this case, the minimum-cost flow that defines the earthmover distance involves sending a flow from vertices in one segment across the length of the segment to the same number of vertices in the other segment; since the distribution of and across their respective segments is even, this yields a cost of . A similar argument holds for edges where and are in adjacent groups.
Integrality gap of SDP relaxation. We now introduce an SDP relaxation, partly inspired by similar relaxations for bandwidth and related problems [8, 44]. Number the vertices of from to so that the vertices of are numbered through . Let denote an -dimensional vector representing vertex . For , let . Our SDP places the points on a sphere of radius (second constraint) such that the stretch of every edge is bounded (third constraint) and the vertices of all reside on a cycle (fourth constraint). The vertices of are forced to lie on a cycle using distance constraints, owing to the following elementary geometry claim that captures the rigidity of the cycle. It is used to show that if we fix the location of 3 points in a cycle on the plane, then every point on the cycle is uniquely specified by the distances to these 3 points. This ensures that the SDP is a valid relaxation of the problem of retracting to a cycle.
Lemma A.1**.**
Suppose we are given reals for all such that there exist points in , satisfying the property that is the distance between and , . Then, if , , and are not collinear, any sequence , of points in , for any , which satisfy the same distance properties must all lie on the same plane as , , and . And this point set is congruent to ’s.
Proof A.2**.**
Since the distance of each point is defined relative to only three of the points , we can prove the uniqueness of existence of each for all with respect to independently. Thus, we only need to prove the following statement: Suppose we have three non-collinear points with -dimensional coordinates which lie on a 2-D plane and there is a point also in such that its distance from is . Then any point in -dimensional space with distance from is congruent to .
W.l.o.g, we assume that , , , and . The following equations hold:
[TABLE]
Then we have:
[TABLE]
Since we know coordinates of , are fixed. We thus obtain two lines.
[TABLE]
Note that and are two lines that have at least one common point . These equations have infinite solutions if the slopes of and are also the same; this would mean that , but then points would be collinear, contradicting our assumption in the lemma. This implies that for any point with distance from , and . Using equation 2, we obtain that , completeing the proof of the lemma.
Here is an SDP LP relaxation for minimum-stretch retraction from to .
[TABLE]
We now establish an integrality gap for the above SDP. The value of the SDP is since the grid can be embedded with constant distortion on the surface of a 3-dimensional hemisphere, with the boundary forming the great circle at the base of the hemisphere. The locations of the vertices in the 3-dimensional hemisphere yield the vectors that form a valid solution to the SDP, with stretch being the maximum distortion of the embedding, which is .
Lower bound on approximation ratio of Algorithm 1. We now show that for a variant of the grid instance, Algorithm 1 incurs stretch away from that of the optimal. Let denote the graph obtained after removing all interior column edges from a grid. We observe that there exists a retraction of to the cycle in the boundary with stretch 2. Each row of vertices of length can be mapped to the shorter of the two segments of the boundary connecting the end vertices of the row; this ensures no edge is stretched by more than a factor of 2. On the other hand, Algorithm 1 will find the largest empty square to be square of length 1, and any projection embedding from the center of such a square will map two neighbors in the square distance away from one another.
An alternative approach to overcoming the Sperner bottleneck. We now present a different linear programming based lower bound for minimum-stretch retraction that incorporates the topological aspects of retraction as captured by Sperner’s Lemma. The key idea behind the lower bound is that if there is a stretch- retraction from to a cycle of length , then no cycle in of length less than must “loop around” in . Formally, every -vertex cycle corresponds to a walk along . If , then since stretch of is at most , the length of this walk is less than , implying that the walk does not loop around .
We now formalize the above intuition in the following linear program. Let be an integer. Fix a direction for the undirected cycle , and refer to the directed cycle has . Fix one direction for each edge , such that edges in have all same direction as that of ; we use to refer to the directed edge. We also fix a direction for each cycle , and refer to the directed cycle as . Below, we use the notation to mean that is in the cycle and has the same direction as , and the notation to mean that the reverse of is in .
For any pair of the vertices and in , let denote the length of the unique path from to in . We define the directed distance from to to be , if ; and , otherwise. Note that the directed distance for any pair is in . Let denote the collection of all directed cycles with less than edges. Let represent the following linear program.
[TABLE]
Lemma A.3**.**
If there is a stretch- retraction from to a cycle in , then is feasible.
Proof A.4**.**
Let be a stretch- retraction from to . For any edge , we set to be the directed distance from to . Then, for any edge in along the same direction as , we have , as required by the linear program. Consider any cycle in . Since the stretch of is , the total distance in the walk on induced by and is strictly less than . Since the walk returns to its starting point, it must be the case that the total directed distance in the walk equals 0. Therefore,
[TABLE]
satisfying the remaining constraint of the linear program, and thus guaranteeing its feasibility.
By Lemma A.3, the largest such that is infeasible is a lower bound on the optimal stretch achievable. It is easy to see that for the Sperner bottleneck instance, the largest such that is infeasible is , hence asymptotically matching the Sperner’s Lemma lower bound.
We now show that for any , can be solved in polynomial time, by providing a suitable separation oracle. The oracle would simply be one of the cycles of length less than for which the corresponding constraint is violated. We construct graph , which has the same set of vertices as and, for each edge in , have an edge between and in each direction. We set the weight for each directed edge in to be . If is the reverse of , then we set .
Let be a solution to the LP. Fix an edge of . We compute a shortest path of less than hops from to by running a shortest path computation in a directed acyclic graph defined by the hop-expanded (also sometimes referred to as time-expanded) version of . If the shortest path contains a cycle of non-zero weight, then such a cycle serves as a separating linear constraint. Otherwise, if the length of the shortest path from to is not , then the cycle obtained by appending the edge to the shortest path from to yields a cycle of non-zero weight, serving as a separating linear constraint. We execute this procedure for all edges in ; if no separating linear constraints are found, then is a feasible solution to the LP.
Appendix B Proofs for section 3
Proof B.1** (Proof of Lemma 3.2).**
*Suppose can be embedded with stretch in , and let be this mapping. We define an embedding with stretch 1. For let be the vertices on the path in corresponding to edge in . We show how to embed this path into . We know that . Let be the shortest path between and in (note that ). Then, the retraction , defined by setting to be , has stretch 1.
Conversely, a mapping that produces a stretch-1 retraction of into , when restricted to the vertices in , gives a stretch- retraction of into .*
Lemma B.2**.**
If there is a stretch-1 retraction from to subgraph of , then there is a stretch-1 retraction from to subgraph of if and only if there is a stretch-1 retraction from to . Furthermore, can be computed from and in polynomial time.
Proof B.3**.**
One direction follows immediately: is a subgraph of , so a stretch-1 retraction of to implies the same for to . For the other direction, let be a stretch-1 retraction from to . Define as follows: if , then ; otherwise, . Then is a stretch-1 retraction from to . Clearly, can be computed in polynomial time from and .
Proof B.4** (Proof of Lemma 3.3).**
Suppose is not 2-vertex connected, and let vertex be a vertex cut. Let and be the disconnected components created after removing from . Since is a cycle, is contained completely in either or . Suppose WLOG that . Mapping every vertex in to yields a stretch-1 retraction to . By Lemma B.2, there is a stretch-1 retraction from to if and only if there is a stretch-1 retraction from to . We can repeat this procedure until we obtain a 2-connected graph.
Proof B.5** (Proof of Lemma 3.10).**
Consider the dual graph for some planar embedding of . This graph is constructed by placing a vertex in each face of , and adding an edge between and if the faces are adjacent in . Note that there is a correspondence between vertices of and faces of , as well as between faces of and vertices of . Additionally there is a one-to-one correspondence between edges. It is well known that contains an cut if and only if contains the edges of some simple cycle separating from . We will use this fact to prove our result.
We need to show that a set of vertices in separates from if and only if the subgraph induces by contains a cycle separating from . One direction is straightforward: if the induced graph on forms a cycle separating from , then applying the Jordan curve theorem tells us that any path from to must cross this cycle (and thus contain a vertex of ). To prove the converse, we use the fact given above. Let be an vertex cut in and let be the set of edges in the graph induced by . Then from the fact above, in the dual graph contains a cycle separating and . Because the graph is triangulated, we can show that also contains a separating cycle: edges and that are adjacent in correspond to edges and falling on the same face of . Because each face of has only 3 edges, and must therefore be adjacent. Therefore, (the edges corresponding to ) must also be a cycle.
Appendix C Retracting points on a -D plane to a uniform cycle
In this section, we consider an Euclidean metric variant of the problem of retracting a graph to a cycle. Formally, let be a set of points in two-dimensional Euclidean plane with a subset of anchors, which are evenly placed on a circle in the plane. For any two points and in the plane, let denote the Euclidean distance between and . For a retraction , we define the stretch of a pair of points in to be , and the stretch of to be the maximum stretch over all pair of points in .
A plausible approach to attacking this Euclidean metric retraction problem is to use techniques from Euclidean distance geometry and network localization problems, which involve similar distance-based embeddings. A popular approach for these problems is using SDP relaxations [44, 1, 6]. Though there is a large body of literature on distance geometry, graph rigidity, and network localization [29, 22, 4, 17, 42], the specific objectives being pursued in our graph retraction formulation is different than these problems, as a result of which none of their results seem to yield good results to our Euclidean metric retraction problem.
In this section, we build on our optimal retraction algorithm for planar graphs to develop a constant-factor approximation algorithm for minimum-stretch retraction of to . Let the anchors be labeled . Without loss of generality, we assume that the distance between and is 1.
We begin our analysis of Algorithm 3 with a straightforward upper bound on the maximum stretch achieved by an optimal retraction for any metric to the uniform cycle.
Lemma C.1**.**
For any metric, a stretch of is achievable for retracting to a uniform cycle.
Proof C.2**.**
Let denote the weighted complete graph over the set of points where the weight of each edge is the distance between the two points in the metric. We perform a series of contractions in that finally yield a new graph . Let be an intermediate graph. The vertices of form a partition of : each vertex in is a disjoint subset of . It is convenient to denote each vertex of by the singleton set , so that every vertex of every intermediate graph is a subset of . Consider the contraction of any edge with length less than . When an edge , where and are disjoint subsets of , is contracted, we replace and and the edge by a single vertex and replace edges as follows: for every edge with , has an edge of the same weight. Similarly, for every edge with , has an edge of the same weight. If there are multiple edges between two vertices, we remove all but the edge with the lowest weight.
We obtain when no more contractions are possible. Assuming that the distance between and is 1, we claim that any two anchors and are members of distinct vertices in . This is because any contraction can decrease distance between two vertices by at most , and the maximum number of possible contractions is at most since each contraction decreases the number of vertices by 1. Now, the distance between any two vertices in the contracted graph is at most the distance between the two vertices in the original metric.
The distance between any two vertices and in is at least . By our construction, it follows that the distance in between any and is at least . Now consider any retraction in that satisfies the following properties: for any , if contains an anchor , maps all vertices in to . The stretch of is at most since the only vertices that are mapped to distinct anchors are at distance at least and any two anchors are at distance at most .
One consequence of Lemma C.1 is that any optimal retraction has to map any two vertices at distance less than to the same anchor. Note that by a series of contractions (at most ), the distance of any pair of vertices will decrease by no more than .
In the following, we analyze the steps of the above algorithm. It is also easy to verify that any sequence of contractions in step 2 and the subsequent actions of the algorithm maintains the planarity of the graph.
Lemma C.3**.**
Any -stretch retraction from to the anchors is a -stretch retraction from to the anchors, and vice versa.
Proof C.4**.**
Using Delaunay triangulation as the planar Euclidean spanner, for any pair of points and , [35], where is the shortest path distance between over graph , and is the Euclidean distance between and .
* Let be the -stretch retraction for . Use the same function for retraction from to anchors. Now for any pair of verticies , we have:*
[TABLE]
This implies that gives a -stretch retraction from to anchors.
* Let be the -stretch retraction from to anchors. Using the same retraction function for retracting to anchors, for each , we get:*
[TABLE]
This implies that gives a -stretch retraction of to the anchors.
Lemma C.5**.**
Any -stretch retraction from to anchors is a -stretch retraction from , and vice versa.
Proof C.6**.**
Similar to construction in lemma C.1, the vertices of form a partition of .
() Let be a -stretch retraction from to the anchors. We define the retraction from to the anchors as follows; For each , which also , where . Note that by lemma C.1 all vertices which are contracted to a single vertex of have to be retracted to the same anchor. Now for each edge , where , we have the following:
[TABLE]
where is the minimum weight edge remaining between and .
() Now let be a -stretch retraction from to anchors. For each , we define , where . For each edge , if , then stretch of is zero. Otherwise, let and such that and .
[TABLE]
where is the minimum weight edge remained between and . Since the actual distance of any pair of anchor is at least one, and series of contraction will decrease distances in by at most , we obtain that .
Lemma C.7**.**
For each anchor , there is a vertex on such that . Also, for each vertex on , there is an anchor such that .
Proof C.8**.**
We need to show that path and do not intersect. Since the distance of anchor to and similarly anchor to anchor are , length of path and similarly are .
() W.l.o.g. assume that . First, we prove that among every five consecutive , at least one of them belongs to . Assume that there exists a pair such that and and and belongs to , but for any , does not belong to . From the definition, is no more than the distance of anchor to anchor . Thus . Also, is on the path from to , otherwise could not be on . Now, if we estimate the distance from anchor to anchor , we have the following:
[TABLE]
However, since , the distance from anchor to is at least , which yields a contradiction. The assumption that none of the five consecutive belongs to is wrong. Also it is easy to verify that distance of any consecutive is . Using these two arguments above, for any anchor , at least one of , for or , belongs to , and is . Vertex and vertex are vertices of which are at distance from anchors [math], , and respectively anchors , . The argument for second half of anchors is exactly the same. This completes the proof for the first part of the lemma.
() Any vertex on path , and similarly path are at distance of anchor and respectively anchor . W.l.o.g. assume an arbitrary vertex on . From the inductive way of constructing , there is some such that for , belongs to , and for , vertex is not on . Thus, is a vertex on path from anchor to vertex . The distance from to anchor is at most , since the distance from to anchor is at most . The argument for vertices of is exactly the same. This completes the proof for the second part of lemma.
Lemma C.9**.**
There exists a -stretch retraction from to anchors if and only if there is a -stretch retraction from to .
Proof C.10**.**
By graph ’s construction, unweighted planar graph has graph ’s vertices plus some extra auxiliary vertices (.
() Let be a -stretch retraction from to anchors. We define retraction from unweighted graph to in the following way: For , is the closest vertex on to . Using lemma C.7, the distance between and is . For each pair of vertices , retract auxiliary vertices of between and uniformly on shortest path on between and . Now consider an arbitrary edge , and let and be two vertices of that edge is on the path between and in graph . We bound the stretch of edge as follows.
[TABLE]
() Let be a -stretch retraction from to cycle . We define to be the retraction from to anchors in the following way: For , let to be the closest anchor to . Using lemma C.7, the euclidean distance between and is . Now consider an arbitrary edge . We bound the stretch of for edge as follows.
[TABLE]
where denote the distance of vertices over the cycle .
Theorem C.11**.**
The above algorithm yields a retraction from to the anchors with stretch within a constant factor of the optimal.
Proof C.12**.**
Applying lemmas C.3, C.5, C.9 immediately implies that retraction from set to anchors has stretch within a constant factor of the optimal.
Appendix D Retraction of bounded treewidth graphs
In this section, we show that minimum retraction of a bounded treewidth graph to any of its subgraph can be obtained optimally and in polynomial time with respect to size of graph and its subgraph. Let be a graph with bounded treewidth , and be a subgraph of . We call the vertices of anchors. Let .
In the following, we give a dynamic programming based algorithm which outputs a stretch- embedding of graph to if any exists.
Algorithm for -stretch retraction. Consider a nice tree decomposition of graph . Nice tree decomposition is a tree decomposition which is a rooted binary tree with four types of vertices called Leaf, Introduce, Forget, Join555There is an algorithm that converts a tree decomposition to a nice tree decomposition with at most bags and in time [9]. A decomposition of this type is used very often to solve a graph optimization problem with dynamic programming technique. .
Let be a binary function that takes a vertex (also called bag) of and a retraction function as inputs. If it outputs 1, it means the retraction function over vertices in gives a stretch at most 1. Take an arbitrary vertex of as a root and solve for vertices of in a bottom-up manner. Consider following cases:
- •
Leaf: Vertex is a leaf of . Then , if for some anchor vertex , or for some pair of adjacent vertices of graph which , , otherwise .
- •
Introduce: Vertex has only one child , and and . Let . In this case, , where is restriction of function to domain , and is [math] if either is an anchor which or if for some neighbor of in that , , otherwise it is 1.
- •
Forget: Vertex has only one child , which and . Then , is any function with domain such that for all , .
- •
Join: Vertex has two children , which and are identical to . Then .
Since a nice tree decomposition has at most nodes, there are at most subproblems, and each subproblem can be computed in time using dynamic programming. So the total running time to find (if any exists) a retraction function that is . Since the graph has a bounded treewidth, the retraction function can be extracted in polynomial time with respect to size of graph and its subgraph.
Algorithm for the general case. To find the optimal retraction of a bounded treewidth graph to its subgraph , we use the algorithm for -stretch retraction as a subroutine in the following way; Let be the graph which is obtained by replacing any edge , by a path of size . In lemma D.1, we show that has the same treewidth as . Size of is at most , where is the number of edges of , and is no more than . Thus the size of is . It is easy to verify that if retraction of to has stretch-, then retraction of to has stretch of at most . Thus, the optimal retraction of a bounded treewidth graph to its subgraph , can be obtained by finding smallest such that retraction of to has stretch using algorithm for -stretch retraction. The running time of algorithm is .
Lemma D.1**.**
Let be the graph obtained by replacing each edge of with a path of length . Treewidth of is the same as .
Proof D.2**.**
In order to prove the lemma, it is enough to show that replacing a single edge with a path of length does not change the treewidth. Let denote treewidth of graph , and let be the graph obtained by replacing an arbitrary edge of with a path of length .
We show that . Consider an arbitrary tree decomposition of , in any bag that has , , replace it with . In this way, the size of no bag has increased. Also, it is easy to verify that the new decomposition is a valid tree decomposition for . It implies that .
To show that , we use another equivalent definition of treewidth: The minimum of maximum clique size among all chordal graphs obtained from graph minus one is the treewidth of the graph . Take any chordal graph obtained from , replace edge by path . Add edges from to for . Call this new graph . It is easy to verify that is a valid chordal graph obtained from , and the size of maximum clique in is the same as . This implies that .
Appendix E Hardness of retracting a weighted graph to an arbitrary metric
In this section, we show that the problem of retracting a weighted graph to an arbitrary metric over a given subset of the vertices so as to minimize the maximum stretch is hard to approximate within a factor of for any , unless where is the total number of vertices in the graph and the metric. Our argument follows the hardness proof for the [math]-extension problem due to [33]. In fact, the construction of the hard instance is almost identical, and the analysis differs primarily to ensure the argument extends to the maximum stretch objective. For completeness, we present all the essential details.
Our proof is by a reduction from Max-3SAT(5) problem. An instance of MAX-3SAT(5) is a CNF formula with variables and clauses; each clause has variables and each variable participates in clauses, appearing in each clause at most once.
We briefly recall Max-3SAT(5) based on the -prover protocol of [14]. Let be a Max-3SAT(5) formula. In the protocol, there are provers , and a verifier. The verifier, for each pair of provers, picks randomly and independently a clause and a distinguished variable from clause . is sent to , is sent to , and both and are sent to all other provers. The query sent to each prover has coordinates. Every prover is expected to return an assignment of the variable or all variables. Then, the verifier checks for each pair that the answers of all provers are consistent.
We introduce some notations first. Given formula , let denote the set of random strings used by verifier. For a given and , let denote the query sent to prover ; Let , and for each let denote set of all possible answers of prover to that satisfy all the clauses in the query.
Let be a fixed arbitrary real number such that . Formula is a Yes-instance if there is an assignment that satisfies all clauses, and it is a No-instance with respect to if for any assignment at most fraction of clauses are satisfiable.
Theorem E.1**.**
(Proved by [3]) There is a constant , , such that it is NP-hard to distinguish between a Yes-instance and a No-instance of the Max-3SAT(5) problem.
E.1 Graph construction
Our construction closely follows that of [32]. Given formula , we construct an edge weighted guest graph over union of two sets of vertices and . We first build graphs and , then obtain graph by combining them. We call vertex set nonterminals, and vertex set terminals (or labels). The host graph will defined by the set and an associated metric . In the following we describe each of these vertex sets and graphs.
Graph : Set consists of two types of nonterminal vertices.
- •
For each , there is a constraint nonterminal vertex
- •
For each and , there is a query nonterminal .
For each and , there is an edge between and with length and weight .
Graph : Set consists of two types of terminal vertices.
- •
For each , and for every k-tuple of pairwise strongly consistent answers that , for , there is a constraint terminal vertex .
- •
For each , and and each answer to , there is a query terminal vertex .
Each vertex is adjacent to vertex and the length of the edge is and weight .
Graph (or simply ): In addition to edges of and , there are also edges between a nonterminal and a terminal vertex with weight 1 in the following way; There is an edge between and , if are strongly consistent answers which for each . Also, there is an edge between and , if .
Now we define three metrics in the following way:
- •
Metric on : for any :
- •
Metric on : for any :
- •
Metric on Vertex set : for any ,
where and respectively denote shortest path distance over graph and .
Given an instance of MAX-3SAT(5) with -provers, we have thus constructed an instance seeking the retraction of guest graph to the host defined by the set with metric . Our analysis distinguishes between the two cases depending on whether is a Yes instance.
E.2 Yes instance
If is a Yes instance, then there is a strategy of the provers that verifier accepts the SAT formula with probability 1. In this case, provers initially agree on a same satisfactory assignment. For each random string and , let be the answers of prover to query regarding their strategy. Note that it is the case that s are pairwise strongly consistent. Now we define the assignment of nonterminals to terminals in the following way. For every random string , assign nonterminal to terminal , for every random string and each , assign the nonterminal to terminal .
Now we show an upper bound of for the maximum weighted stretch of an edge in the Yes instance.
We look at three cases:
- •
An edge between two nonterminal vertices, a constraint nonterminal and a query nonterminal ; Let be mapped vertices of and respectively. Then . Also weight of such an edge is , thus the cost in this case would be .
- •
An edge between a constraint nonterminal and a constraint terminal ; Then from the assignment is assigned to . Then stretch of such edge is . Since the weight of such an edge is , the cost in this case would be O(k).
- •
An edge between a query nonterminal and a query terminal; This case is identical to the second case.
E.3 No instance
In this case we show a lower bound of for cost of any arbitrary assignment. Let be an arbitrary assignment of nonterminals to terminals. For , define and by . Let for some small constant . We consider two cases:
- •
has at least one member.
Let vertex be any nonterminal vertex in . Vertex is either a constraint nonterminal of form or a query nonterminal of form . Let be of form . Then, there is an edge between and terminal vertex . is the stretch of edge (u,x) by assignment function .
[TABLE]
The case where vertex is of form is identical to this case.
- •
is an empty set.
In this case, we initially change the assignment from to such that for all , , and also is closest to , according to distance on .
We show that for some nonterminal-nonterminal edge, the unweighted stretch is at least . We know that:
[TABLE]
By Proposition 4.4 and Lemma 4.5 in [14], we have that the right-hand side of (6) is at least . Since the total number of nonterminal-nonterminal edges is , there exists a nonterminal-nonterminal edge that .
Using triangle inequality over metric , we have the following:
[TABLE]
In the following, we show that for all , . Note that the structure of graph implies that if two nonterminals are adjacent, and is terminal vertex, then there is a terminal vertex that is adjacent to terminal in graph . This implies that if there is a path between two nonterminals of length , then there is a corresponding path with length at most between two terminals and . Thus we get the following for any vertex :
[TABLE]
Thus for edge we have that:
[TABLE]
Choosing small enough, is a positive constant. Then the weighted stretch of edge is . This completes the proof.
The main result now follows using the same calculations of the parameters as in [14, 32].
Theorem E.2**.**
For any constant , there is no -approximation algorithm for minimizing the maximum weighted stretch problem unless .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A.Y. Alfakih, A. Khandani, and H. Wolkowicz. Solving euclidean distance matrix completion problems via semidefinite programming. Comput. Opt. Appl. , 12:13–30, 1999.
- 2[2] Mark Anthony Armstrong. Basic Topology . Springer Science & Business Media, 2013.
- 3[3] Sanjeev Arora, Carsten Lund, Rajeev Motwani, Madhu Sudan, and Mario Szegedy. Proof verification and the hardness of approximation problems. Journal of ACM , 45(3):501–555, 1998.
- 4[4] James Aspnes, David Kiyoshi Goldenberg, and Yang Richard Yang. On the computational complexity of sensor network localization. In Algorithmic Aspects of Wireless Sensor Networks: ALGOSENSORS , pages 32–44, 2004.
- 5[5] Mihai Badoiu, Kedar Dhamdhere, Anupam Gupta, Yuri Rabinovich, Harald Räcke, R. Ravi, and Anastasios Sidiropoulos. Approximation algorithms for low-distortion embeddings into low-dimensional spaces. In SODA , pages 119–128, 2005.
- 6[6] A. Barvinok. Problems of distance geometry and convex properties of quadratic maps. Discrete Computational Geometry , 13:189–202, 1995.
- 7[7] Aaron Bernstein, Karl Däubel, Yann Disser, Torsten Mütze Max Klimm, and Frieder Smolny. Distance-preserving graph contractions. In ITCS , 2018.
- 8[8] A. Blum, G. Konjevod, R. Ravi, and S. Vempala. Semi-definite relaxations for minimum bandwidth and other vertex-ordering problems. Theoretical Computer Science , 235(1):25 – 42, 2000.
