AI Disclosure. The construction of the stochastic balanced cut, a central technical idea of this paper, is due to GPT-6 Astra. The author attempted to solve this problem several times with different ChatGPT models, starting with GPT-5.5, without success. Until very recently, GPT-6 Astra made a breakthrough after 26 prompts when the author directed it to examine the column model idea in the solution to the L1 embedding conjecture by OpenAI [30 ] . Curiously, the column model idea ultimately did not make it into the final proof, which is surprisingly elementary and only uses known tools. The author introduced other ideas, namely algorithmic minimax and the extension to minor-free graphs. The author also completely rewrote the paper, contextualized the results and new techniques, and attributed existing ideas to prior work (to the best of the author’s knowledge). ChatGPT was also used to proofread the paper; otherwise, it is written by a human and for human readers.
Introduction
Over the last few decades, research on designing polynomial-time approximation schemes (PTASes) for optimization problems on planar graphs has produced several powerful algorithmic frameworks that apply broadly to many problems. A notable milestone is Baker’s layering technique [4 ] , which yields PTASes for many local problems on planar graphs, such as independent set, vertex cover, and dominating set, to name a few. These problems are local in the sense that feasibility can be checked by looking at each vertex’s neighborhood. Baker’s technique was then abstracted into a so-called deletion decomposition [20 ] and generalized to minor-free graphs [DHK05]. In a nutshell, the deletion decomposition says that for any integer parameter k ≥ 1 k \ge1 k ≥ 1 one can partition the edges of the input (planar/minor-free) graphs into k + 1 k + 1 k + 1 sets such that deleting any one of the sets gives a graph of treewidth O ( k ) O(k) O ( k ) .
As powerful as they are, Baker’s technique and the deletion decomposition cannot handle (non-local) connectivity problems such as TSP, Steiner tree, and k k k -MST. This motivates the contraction decomposition technique [27 , 20 ] : given any k ≥ 1 k \ge1 k ≥ 1 , one can partition the edges into ( k + 1 ) (k + 1) ( k + 1 ) -sets such that contracting any one set yields a graph of treewidth O ( k ) O(k) O ( k ) . However, contraction decomposition alone does not imply a PTAS: it needs a spanner step , where, given a connectivity problem Π \Pi Π (e.g., TSP), construct a subgraph S S S of G G G , called a ( 1 + ϵ ) (1 + \epsilon) ( 1 + ϵ ) -spanner , such that:
The (value of the) optimal solution for Π \Pi Π in S S S is within ( 1 + ϵ ) (1 + \epsilon) ( 1 + ϵ ) -approximation of the (value of the) optimal solution for Π \Pi Π in G G G , denoted by Opt G \operatorname{Opt}_G Opt G .
The total length of S S S , denoted by ℓ ( S ) \ell(S) ℓ ( S ) , must be at most a constant times Opt G \operatorname{Opt}_G Opt G : ℓ ( S ) = f ( ϵ ) Opt G \ell(S) = f(\epsilon)\operatorname{Opt}_G ℓ ( S ) = f ( ϵ ) Opt G , for some function f f f that depends on ϵ \epsilon ϵ only.
Klein [27 ] (implicitly) showed that, under a very mild condition2 , if Π \Pi Π admits a ( 1 + ϵ ) (1 + \epsilon) ( 1 + ϵ ) -spanner on planar graphs, then one can design a PTAS for Π \Pi Π by (1) constructing the spanner in polynomial time and (2) applying the contraction decomposition to the spanner. This framework also extends to minor-free graphs [DHK11]. Unfortunately, the spanner step is very ad hoc and problem-specific.
Constructing good spanners for even very basic problems on planar graphs required substantial research effort, including subset TSP [28 ] , Steiner tree [9 ] , prize-collecting Steiner tree [5 ] , and Steiner forest [8 ] . Each problem requires significantly new ideas to construct the spanner. Furthermore, among these problems, only spanners for TSP [10 ] and Subset TSP [29 CAFKI20] have been generalized to minor-free graphs, also with completely different techniques. Designing a PTAS for Steiner tree in minor-free graphs remains an outstanding open problem; only a QPTAS is known [12 ] . Given the ad hoc nature of the spanner construction, a central goal has become searching for a general-purpose technique.
Goal 1. Develop an algorithmic technique that gives PTASes for a broad range of connectivity problems in planar and minor-free graphs.
One guiding problem toward Goal 1 is the k k k -minimum spanning tree (k k k -MST) problem: given a graph G G G with edge lengths and an integer parameter k ≥ 1 k \ge1 k ≥ 1 , find a tree of minimum length that spans at least k k k vertices. This problem has been studied extensively in network design [31 , 1 , 11 , 25 , 3 , 2 ] and admits a polynomial-time 2-approximation in general graphs [26 ] . In planar graphs, the difficulty lies in locating the near-optimal solution. For example, when k = n k = \sqrt{n} k = n , the optimal solution might use only a small fraction of the vertices, while it is hard to know which vertices to retain, so the spanner step in the contraction decomposition framework does not seem to work. Thus, research on this problem has avoided the spanner step and, in doing so, has opened two different paths to the solution, which are stepping stones toward Goal 1.
The first technique, introduced by Cohen-Addad [12 ] , constructs a nondeterministic split tree (NDST) for planar and minor-free graphs. Basically, it is a randomized decomposition of the input graph into a hierarchy of clusters such that a near-optimal solution of a problem Π \Pi Π only crosses each cluster O ( polylog ( n ) ) O(\operatorname{polylog}(n)) O ( polylog ( n )) times. Thus, in quasi-polynomial time, one can enumerate all these crossing points and design a dynamic programming algorithm to find a ( 1 + ϵ ) (1 + \epsilon) ( 1 + ϵ ) -approximate solution. This technique is applicable to k k k -MST as well as all other connectivity problems mentioned above, yielding a QPTAS in minor-free graphs with running time n O ( polylog ( n ) ) n^{O(\operatorname{polylog}(n))} n O ( polylog ( n )) . Conceptually, the NDST technique is significant progress toward Goal 1. Yet, it is unclear if this technique could give a PTAS due to several technical obstacles, the most serious being the number of crossings, for which Ω ( log n ) \Omega(\log n) Ω ( log n ) seems necessary.
A second technique, pioneered by Cohen-Addad, Le, Ma. Pilipczuk, and Mi. Pilipczuk (CLPP), is stochastic embeddings into low-treewidth graphs [17 ] with expected distortion of 1 + ϵ 1+\epsilon 1 + ϵ for any ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) . They showed that for planar graphs with polynomial aspect ratio, Φ : = max u , v d G ( u , v ) min u ≠ v d G ( u , v ) = n O ( 1 ) \Phi:= \frac{\max_{u,v} d_G(u,v)}{\min_{u\ne v} d_G(u,v)} = n^{O(1)} Φ := m i n u = v d G ( u , v ) m a x u , v d G ( u , v ) = n O ( 1 ) , the treewidth of their embedding is O ( log 13 n / ϵ ) O(\log^{13} n/\epsilon) O ( log 13 n / ϵ ) . Their construction extends to minor-free graph with another factor of log ( n ) \log(n) log ( n ) in the treewidth. This result again yields QPTASes for all the aforementioned connectivity problems in minor-free graphs and more [17 ] . Most importantly, their work provides a concrete path toward realizing Goal 1 by further reducing treewidth. Specifically, [14 ] refined the construction and reduced the treewidth to O ( log 3 / ϵ ) O(\log^3/\epsilon) O ( log 3 / ϵ ) for planar graphs. They also conjectured that:
Conjecture 1 (Conjecture 1.1 [14 ] ). Any n n n -vertex planar graph with edge lengths can be embedded with expected distortion 1 + ϵ 1+\epsilon 1 + ϵ into a distribution of graphs with treewidth O ( log n / ϵ ) O(\log n/\epsilon) O ( log n / ϵ ) for any ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) .
The authors of [14 ] remarked that a (polynomial-time) resolution of Conjecture 1 yields a PTAS for the k k k -MST problem. More generally, such an embedding gives PTASes for a very broad class of problems that admit an algorithm (exact or PTASes) in treewidth-τ \tau τ graphs in time 2 O ( τ ) n O ( 1 ) 2^{O(\tau)}n^{O(1)} 2 O ( τ ) n O ( 1 ) , since when τ = O ( log n / ϵ ) \tau= O(\log n/\epsilon) τ = O ( log n / ϵ ) , the running time is polynomial for any fixed ϵ \epsilon ϵ . This class includes TSP, Steiner tree, its prize-collecting versions, the k k k -MST problem, k k k -stroll, and many other problems for which no PTAS is known on planar graphs. Thus, a polynomial-time embedding satisfying Conjecture 1 would achieve Goal 1.
Finally, we remark that there is not much wiggle room for achieving PTASes through low-treewidth embeddings. Any slightly larger treewidth bound, say O ( log ( n ) log ∗ ( n ) / ϵ ) O(\log(n)\log^*(n)/\epsilon) O ( log ( n ) log ∗ ( n ) / ϵ ) , would not be enough to give PTASes, while there is a lower bound of Ω ( log n ) \Omega(\log n) Ω ( log n ) [15 ] for even a constant distortion. One really needs an asymptotically optimal treewidth embedding to achieve Goal 1. On a technical level, the authors of [14 ] have exhausted all possible improvements in the CLPP framework [17 ] : every step in the framework is already tight. They remarked [14 ] “to further improve any logarithmic factor, one has to significantly deviate from the framework of [17 ] ”.
Our Results
Our main result is a polynomial-time resolution of Conjecture 1.
Theorem 1. Given an n n n -vertex planar graph G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) and any parameter ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) , there is a stochastic embedding of G G G into a distribution D \mathcal{D} D of graphs with treewidth O ( log n / ϵ ) O(\log n/\epsilon) O ( log n / ϵ ) and expected distortion ( 1 + ϵ ) (1+\epsilon) ( 1 + ϵ ) . Furthermore, the embedding can be sampled in polynomial time, and every graph H H H in the support of D \mathcal{D} D has V ( H ) = V ( G ) V(H)=V(G) V ( H ) = V ( G ) .
Not only does Theorem 1 achieve an asymptotically optimal treewidth bound, but it also does not depend on the aspect ratio Φ \Phi Φ : previous embeddings [14 , 17 ] have polylog ( Φ ) \operatorname{polylog}(\Phi) polylog ( Φ ) in the treewidth. Curiously, our embedding in Theorem 1 does not require Steiner points. That is, the vertex set of the host graph H H H is the same as that of G G G . This is technically more convenient than previous embeddings which use Steiner points, as each edge of H H H can be mapped exactly to the shortest path between its endpoints in G G G .
A key new technical idea in the proof of Theorem 1 is a new construction of a stochastic balanced cut . Stochastic balanced cuts were introduced in CLPP embedding [17 ] and further refined in [14 ] . However, the cuts constructed in these papers are based on a clustering hierarchy, which is not only complicated but also yields suboptimal guarantees. The construction in this paper is much simpler, has optimal guarantees, and does not rely on such a clustering hierarchy. We provide more detail on the new construction in Section 1.2.
The new balanced cut construction for planar graphs extends to minor-free graphs using Robertson–Seymour type decomposition. Previous balanced cuts [17 ] also extend to minor-free graphs, also via the Robertson–Seymour decomposition, but lose another factor of log ( n ) \log(n) log ( n ) in the treewidth. Our balanced cut does not have such a loss, and therefore, we obtain an optimal treewidth bound in minor-free graphs as well.
Theorem 2. Fix an integer h ≥ 1 h \ge1 h ≥ 1 . Given an n n n -vertex K h K_h K h -minor-free graph G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) and any parameter ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , there is a stochastic embedding of G G G into a distribution D \mathcal{D} D of graphs with treewidth O h ( log n / ε ) O_h(\log n/\varepsilon) O h ( log n / ε ) and expected distortion ( 1 + ε ) (1+\varepsilon) ( 1 + ε ) , where the O h O_h O h notation hides a dependency on the minor. The embedding can be sampled in polynomial time, and every graph H H H in the support of D \mathcal{D} D has V ( H ) = V ( G ) V(H)=V(G) V ( H ) = V ( G ) .
As we discussed above, the embeddings in Theorem 1 and Theorem 2 give (randomized) PTASes for a broad range of connectivity problems. Notably, we obtain the first randomized PTAS for k k k -MST in planar and minor-free graphs, and the first randomized PTAS for Steiner tree in minor-free graphs. For other problems, readers are referred to § 6 for precise definitions.
Theorem 3. Steiner tree, prize-collecting Steiner tree, k k k -MST, k k k -TSP, and k k k -Stroll admit randomized PTASes on planar and minor-free graphs.
Key Technical Ideas
Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be the input graph with non-negative edge length function ℓ \ell ℓ . A key technical concept in our embedding algorithm is a new construction of a stochastic balanced cut with low routing cost. This notion was introduced in the CLPP paper [17 ] , though the precise definition differs slightly from ours due to the technical nature of their work. In this overview, we will give a simplified definition of the balanced cuts. In the actual proof, we need to account for the recursion in the embedding, so the precise definition must include boundary vertices (passed down from earlier recursive steps), which makes it slightly more complicated.
A subset of vertices C C C is called a cluster if the induced subgraph G [ C ] G[C] G [ C ] is connected. For each cluster C C C in this section, there is a single special vertex z C ∈ C z_C \in C z C ∈ C called the center of $C . Let C \mathcal{C} C be a collection of vertex-disjoint clusters of G G G , and Z C Z_{\mathcal{C}} Z C be the set of centers. We denote by V ( C ) = ⋃ C ∈ C C V(\mathcal{C})=\bigcup_{C\in\mathcal{C}}C V ( C ) = ⋃ C ∈ C C . For every edge e = ( u , v ) e=(u,v) e = ( u , v ) such that exactly one of its endpoints belongs to V ( C ) V(\mathcal{C}) V ( C ) , we say that e e e is *cut by C \mathcal{C} C . See Figure 1 (a).
Figure 1. Hollow squares mark the cluster centers z C z_C z C and z D z_D z D . In (a), a balanced cut C \mathcal{C} C consisting of two clusters C C C and D D D . In (b), the dashed cut edge e = ( u , v ) e=(u,v) e = ( u , v ) is rerouted along the blue path u → x → z C u \to x \to z_C u → x → z C in G [ V ( C ) ] G[V(C)] G [ V ( C )] , followed by the orange path z C → y → v z_C \to y \to v z C → y → v in G G G .
Definition 1 (Balanced Cut, Simplified). Let G = ( V , E ) G=(V,E) G = ( V , E ) be an n n n -vertex planar graph. Let C \mathcal{C} C be a set of vertex-disjoint clusters. We say that C \mathcal{C} C is a balanced cut of G G G if ∣ V ( C ) ∖ Z C ∣ ≤ n / 4 |V(\mathcal{C})\setminus Z_{\mathcal{C}}|\le n/4 ∣ V ( C ) ∖ Z C ∣ ≤ n /4 , and every connected component O O O of G ∖ C G\setminus\mathcal{C} G ∖ C has ∣ V ( O ) ∣ ≤ n / 4 |V(O)|\le n/4 ∣ V ( O ) ∣ ≤ n /4 .
We will be using balanced cuts in the treewidth embedding in a standard way [CCAG⁺25]: construct a balanced cut C \mathcal{C} C of G G G , make a bag out of the centers of clusters in C \mathcal{C} C , add edges from the centers to the endpoints of the edges cut by C \mathcal{C} C , and recursively embed G [ V ( C ) ] G[V(\mathcal{C})] G [ V ( C )] as well as connected components of G ∖ C G\setminus\mathcal{C} G ∖ C . The balanced property of the cut ensures that the number of vertices decreases by a constant fraction at each step, so the recursion depth is O ( log n ) O(\log n) O ( log n ) .
For every edge e = ( u , v ) e=(u,v) e = ( u , v ) cut by C \mathcal{C} C , w.l.o.g., we assume that u ∈ C u \in C u ∈ C for some cluster C ∈ C C \in\mathcal{C} C ∈ C and v ∉ V ( C ) v \notin V(C) v ∈ / V ( C ) . We must reroute e e e through the center z C z_C z C , inducing a routing scheme , denoted by ρ C \rho_C ρ C :
ρ C ( e ) : = { π G [ V ( C ) ] ( u , z C ) ∘ π G ( z C , v ) , e = ( u , v ) is cut by C and u ∈ C for some cluster C ∈ C , e , otherwise . (1) \rho_C(e):=
\begin{cases}
\pi_{G[V(C)]}(u,z_C)\circ\pi_G(z_C,v), & e=(u,v)\text{ is cut by }C\text{ and }u\in C\text{ for some cluster }C\in\mathcal{C},\\
e, & \text{otherwise}.
\end{cases} \tag*{(1)} ρ C ( e ) := { π G [ V ( C )] ( u , z C ) ∘ π G ( z C , v ) , e , e = ( u , v ) is cut by C and u ∈ C for some cluster C ∈ C , otherwise . (1)
where π G ( x , y ) \pi_G(x,y) π G ( x , y ) denotes the shortest path from x x x to y y y in G G G . See Figure 1 (b). The key technical contribution of this paper is the following lemma, which constructs a stochastic balanced cut with low expected routing cost.
Lemma 1 (Stochastic Balanced Cuts, Simplified). Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be any n n n -vertex planar graph with edge length function ℓ \ell ℓ . For any parameter ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) , there is a distribution C \mathcal{C} C of balanced cuts of G G G such that (i) every cut C C C in the support of C \mathcal{C} C has ∣ C ∣ = O ( log n / ϵ ) |\mathcal{C}|=O(\log n/\epsilon) ∣ C ∣ = O ( log n / ϵ ) clusters and (ii) for every edge e ∈ G e\in G e ∈ G :
E C ∼ C [ ℓ ( ρ C ( e ) ) ] ≤ ( 1 + ϵ log n ) ℓ ( e ) (2) \mathbb{E}_{C\sim\mathcal{C}}[\ell(\rho_C(e))]\leq\left(1+\frac{\epsilon}{\log n}\right)\ell(e) \tag*{(2)} E C ∼ C [ ℓ ( ρ C ( e ))] ≤ ( 1 + log n ϵ ) ℓ ( e ) (2) Furthermore, we can sample a cut from C \mathcal{C} C in polynomial time.
Essentially, Lemma 1 says we can sample a balanced cut C \mathcal{C} C and route all edges cut by C \mathcal{C} C through its centers, paying only ( 1 + ϵ log n ) \left(1+\frac{\epsilon}{\log n}\right) ( 1 + l o g n ϵ ) . As we noted earlier, the embedding is recursive, and the recursion depth is O ( log n ) O(\log n) O ( log n ) . Thus, the accumulated total expected distortion for every edge e ∈ G e\in G e ∈ G is:
( 1 + ϵ log n ) O ( log n ) ℓ ( e ) = ( 1 + O ( ϵ ) ) ℓ ( e ) , (3) \left(1+\frac{\epsilon}{\log n}\right)^{O(\log n)}\ell(e)=(1+O(\epsilon))\ell(e), \tag*{(3)} ( 1 + log n ϵ ) O ( l o g n ) ℓ ( e ) = ( 1 + O ( ϵ )) ℓ ( e ) , (3)
as desired. The final treewidth bound is O ( log n / ϵ ) O(\log n/\epsilon) O ( log n / ϵ ) since ∣ C ∣ = O ( log n / ϵ ) |\mathcal{C}|=O(\log n/\epsilon) ∣ C ∣ = O ( log n / ϵ ) . (In the actual construction, we have to be more careful in the recursion to avoid the treewidth accumulating over many levels.)
Previous balanced cuts. The stochastic balanced cut constructed in prior works [17 , 14 ] has the same distortion guarantee but only gives ∣ C ∣ = O ( log 3 n / ϵ ) |\mathcal{C}|=O(\log^3 n/\epsilon) ∣ C ∣ = O ( log 3 n / ϵ ) . (For simplicity, we assume that the aspect ratio Φ = n O ( 1 ) \Phi=n^{O(1)} Φ = n O ( 1 ) .) This is due to the technique they used to construct such a cut. First, they construct a hierarchy H \mathcal{H} H of clusters where clusters at level i i i have diameter roughly 2 i 2^i 2 i . The hierarchy is stochastic so that every edge ( u , v ) (u,v) ( u , v ) is cut by a level-i i i cluster with probability O ( d G ( u , v ) / 2 i ) O(d_G(u,v)/2^i) O ( d G ( u , v ) / 2 i ) . Then they constructed a distribution C ~ \widetilde{\mathcal{C}} C of cuts such that every cluster in H \mathcal{H} H belongs to C ~ \widetilde{\mathcal{C}} C with probability at most 1 / ψ : = ϵ / ( log 2 n ) 1/\psi:=\epsilon/(\log^2 n) 1/ ψ := ϵ / ( log 2 n ) . The log 2 ( n ) \log^2(n) log 2 ( n ) factor is because now an edge could be cut in O ( log 2 n ) O(\log^2 n) O ( log 2 n ) events: it was potentially cut by log ( n ) \log(n) log ( n ) (inner) levels of H \mathcal{H} H , and another log ( n ) \log(n) log ( n ) (outer) levels of the recursion in the embedding. Taking all of these events into account, the expected detour cost is O ( log 2 n ) ( 1 / ψ ) 2 i ⋅ O ( d G ( u , v ) / 2 i ) = O ( ϵ ) d G ( u , v ) O(\log^2 n)(1/\psi)2^i\cdot O(d_G(u,v)/2^i)=O(\epsilon)d_G(u,v) O ( log 2 n ) ( 1/ ψ ) 2 i ⋅ O ( d G ( u , v ) / 2 i ) = O ( ϵ ) d G ( u , v ) , implying expected distortion ( 1 + O ( ϵ ) ) d G ( u , v ) (1+O(\epsilon))d_G(u,v) ( 1 + O ( ϵ )) d G ( u , v ) . Then they show that the size of the balanced cut C \mathcal{C} C is at most τ = O ( log n ⋅ ψ ) = O ( log 3 n / ϵ ) \tau=O(\log n\cdot\psi)=O(\log^3 n/\epsilon) τ = O ( log n ⋅ ψ ) = O ( log 3 n / ϵ ) . (We use parameters τ \tau τ and ψ \psi ψ as exactly defined in [14 ] .) Thus, compared to the optimal bound log ( n ) / ϵ \log(n)/\epsilon log ( n ) / ϵ , one extra log factor comes from the fact that the clusters are constructed from the hierarchy H \mathcal{H} H with depth log ( n ) \log(n) log ( n ) , and another factor comes from the relationship between τ \tau τ and ψ \psi ψ ; both are tight [14 ] . Furthermore, since the construction uses a clustering hierarchy of depth O ( log ( Φ ) ) O(\log(\Phi)) O ( log ( Φ )) , the dependency on the aspect ratio naturally kicks in the final treewidth bound.
Our balanced cuts: the overview of the proof. Our construction in Lemma 1 abandons the clustering hierarchy H \mathcal{H} H entirely. We no longer construct clusters with diameter 2 i 2^i 2 i such that an edge ( u , v ) (u,v) ( u , v ) is cut by one of the clusters with probability O ( d G ( u , v ) / 2 i ) O(d_G(u,v)/2^i) O ( d G ( u , v ) / 2 i ) . Instead, we use Yao’s minimax principle: for any non-negative weight function w w w on the edges of G G G , we construct a balanced cut with small total weighted detour. This construction significantly deviates from what is currently used in all known embeddings of graphs and metric spaces into low-treewidth graphs [Tal04, FFK18, CLPP23, CCAC+25].
Lemma 2. Let G = ( V , E , ℓ ) G = (V, E, \ell) G = ( V , E , ℓ ) be an n n n -vertex planar graph and ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) be a parameter. For any edge weight function w : E → R ≥ 0 w : E \to\mathbb{R}_{\ge0} w : E → R ≥ 0 , one can construct in polynomial time a balanced cut C C C such that:
∑ e ∈ E w ( e ) ( ℓ ( ρ C ( e ) ) − ℓ ( e ) ) ≤ ϵ log n ∑ e ∈ E w ( e ) ℓ ( e ) \sum_{e\in E} w(e)\bigl(\ell(\rho_C(e))-\ell(e)\bigr) \le\frac{\epsilon}{\log n}\sum_{e\in E}w(e)\ell(e) e ∈ E ∑ w ( e ) ( ℓ ( ρ C ( e )) − ℓ ( e ) ) ≤ log n ϵ e ∈ E ∑ w ( e ) ℓ ( e ) and ∣ C ∣ = O ( log ( n ) / ϵ ) |C| = O(\log(n)/\epsilon) ∣ C ∣ = O ( log ( n ) / ϵ ) .
By Yao’s minimax principle, Lemma 2 implies the existence of a stochastic balanced cut in Lemma 1. The only catch is that this principle does not give a sampling algorithm. For this, we apply the technique of Filtser and Le [23 ] to develop an algorithmic minimax (§ 4.2 ) and get a polynomial-time sampling scheme.
Now we sketch the proof of Lemma 2. Let k = Θ ( log n / ϵ ) k = \Theta(\log n/\epsilon) k = Θ ( log n / ϵ ) , and μ ( E ) = ∑ e ∈ E w ( e ) ℓ ( e ) \mu(E) = \sum_{e\in E} w(e)\ell(e) μ ( E ) = ∑ e ∈ E w ( e ) ℓ ( e ) . For every subset X X X of edges of E E E , we define μ ( X ) = ∑ e ∈ X w ( e ) ℓ ( e ) \mu(X) = \sum_{e\in X} w(e)\ell(e) μ ( X ) = ∑ e ∈ X w ( e ) ℓ ( e ) . A key idea in the proof is to define for every vertex v v v a radius ρ ( v ) \rho(v) ρ ( v ) such that the total μ \mu μ -measure of the edges inside the ball B ( v , ρ ( v ) ) B(v,\rho(v)) B ( v , ρ ( v )) is
μ ( B ( v , ρ ( v ) ) ) ≈ μ ( E ) / k 2 = O ( ( ϵ / log n ) 2 ) μ ( E ) (4) \mu(B(v,\rho(v))) \approx\mu(E)/k^2 = O((\epsilon/\log n)^2)\mu(E) \tag*{(4)} μ ( B ( v , ρ ( v ))) ≈ μ ( E ) / k 2 = O (( ϵ / log n ) 2 ) μ ( E ) (4)
On a more technical note, the definition of edges inside the ball is somewhat delicate3 , but any edge inside the ball has both endpoints in the ball.
By definition, there are only O ( k 2 ) O(k^2) O ( k 2 ) disjoint balls in { B ( v , ρ ( v ) ) } v ∈ V \{B(v,\rho(v))\}_{v\in V} { B ( v , ρ ( v )) } v ∈ V since their total μ \mu μ -measure adds up to at most μ ( E ) \mu(E) μ ( E ) . By a result of Bousquet, Cames van Batenburg, Esperet, Joret, Lochet, Muller, and Pirot [BCvBE+21], we can find a set Z + ⊆ V Z^+ \subseteq V Z + ⊆ V of size O ( k 2 ) O(k^2) O ( k 2 ) such that:
Z + ∩ B ( v , ρ ( v ) ) ≠ ∅ ∀ v ∈ V (5) Z^+ \cap B(v,\rho(v)) \ne\varnothing\qquad\forall v\in V \tag*{(5)} Z + ∩ B ( v , ρ ( v )) = ∅ ∀ v ∈ V (5)
Let F Z + F_{Z^+} F Z + be the shortest-path spanning forest rooted at Z + Z^+ Z + , where ties are broken consistently. By a variant of the planar separator theorem (Lemma 7), we can construct a balanced separator P \mathcal{P} P of O ( ∣ Z + ∣ ) = O ( k ) O(\sqrt{|Z^+|}) = O(k) O ( ∣ Z + ∣ ) = O ( k ) paths rooted at O ( k ) O(k) O ( k ) vertices in Z + Z^+ Z + . Let Z Z Z be the roots of these paths, which would then be the centers of the clusters in our final balanced cut. The key point here is that, the total μ \mu μ -measure all of the union of the k k k paths in P \mathcal{P} P is at most:
O ( k ⋅ μ ( E ) / k 2 ) = O ( μ ( E ) / k ) = O ( ϵ / log n ) ∑ e ∈ E w ( e ) ℓ ( e ) (6) O(k\cdot\mu(E)/k^2) = O(\mu(E)/k) = O(\epsilon/\log n)\sum_{e\in E}w(e)\ell(e) \tag*{(6)} O ( k ⋅ μ ( E ) / k 2 ) = O ( μ ( E ) / k ) = O ( ϵ / log n ) e ∈ E ∑ w ( e ) ℓ ( e ) (6)
This is an important starting point: if we reroute cut edges along paths in P \mathcal{P} P , and each path is used only a few times, then the total routing cost is already within check. (Of course, there is no reason to expect that each path is only used a few times.)
The next key idea is to define a function ϕ ( v ) \phi(v) ϕ ( v ) , which is a normalized distance function from v v v to paths in P \mathcal{P} P . Specifically, let P ∪ = ⋃ Q ∈ P Q \mathcal{P}^{\cup} = \bigcup_{Q\in\mathcal{P}}Q P ∪ = ⋃ Q ∈ P Q , and:
ϕ ( v ) = { d G ( v , P ∪ ) / d G ( v , Z + ) d G ( v , Z + ) ≠ 0 + ∞ otherwise (7) \phi(v) =
\begin{cases}
d_G(v,\mathcal{P}^{\cup})/d_G(v,Z^+) & d_G(v,Z^+) \ne0 \\
+\infty& \text{otherwise}
\end{cases} \tag*{(7)} ϕ ( v ) = { d G ( v , P ∪ ) / d G ( v , Z + ) + ∞ d G ( v , Z + ) = 0 otherwise (7)
Basically, ϕ ( x ) \phi(x) ϕ ( x ) is the distance from v v v to P ∪ \mathcal{P}^{\cup} P ∪ , normalized by the distance from v v v to Z + Z^+ Z + . This function behaves like a distance function (in an important regime): for any vertex u u u on the shortest path from v v v to P ∪ \mathcal{P}^{\cup} P ∪ , ϕ ( u ) < ϕ ( v ) \phi(u) < \phi(v) ϕ ( u ) < ϕ ( v ) . The two most important properties of this function that we will use in our proof are:
Let B ϕ ( P , 1 / 4 ) B_\phi(\mathcal{P},1/4) B ϕ ( P , 1/4 ) be ball of radius 1 / 4 1/4 1/4 from the rooted path separator P \mathcal{P} P w.r.t distance function ϕ \phi ϕ . Then μ ( B ϕ ( P , 1 / 4 ) ) = O ( 1 k μ ( E ) ) \mu(B_\phi(\mathcal{P},1/4)) = O(\frac{1}{k}\mu(E)) μ ( B ϕ ( P , 1/4 )) = O ( k 1 μ ( E )) . (Lemma 10 in the proof.) That is, in the worst case, the total measure of B ϕ ( P , 1 / 4 ) B_\phi(\mathcal{P},1/4) B ϕ ( P , 1/4 ) is within a constant factor of the total measure of the paths in P \mathcal{P} P in Equation (4) .
For any radius threshold τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] , vertices in B ϕ ( P , 1 / 4 ) B_\phi(\mathcal{P},1/4) B ϕ ( P , 1/4 ) induce a balanced cut C τ C_\tau C τ with O ( k ) = O ( log n / ϵ ) O(k) = O(\log n/\epsilon) O ( k ) = O ( log n / ϵ ) clusters, one cluster for each path in P \mathcal{P} P . (Lemma 11 in the proof.)
Using the two properties, we can show (via elementary calculation) that by choosing a random τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] , the expected total routing cost along ρ τ \rho_\tau ρ τ , the routing scheme induced by C τ C_\tau C τ , is:
E τ [ ∑ e w ( e ) ( ρ τ ( e ) − ℓ ( e ) ) ] ≤ O ( 1 ) k ∑ e w ( e ) ℓ ( e ) = ε log n ∑ e w ( e ) ℓ ( e ) . (8) \mathbb{E}_{\tau}\left[\sum_e w(e)(\rho_\tau(e)-\ell(e))\right] \le\frac{O(1)}{k}\sum_e w(e)\ell(e) = \frac{\varepsilon}{\log n}\sum_e w(e)\ell(e). \tag*{(8)} E τ [ e ∑ w ( e ) ( ρ τ ( e ) − ℓ ( e )) ] ≤ k O ( 1 ) e ∑ w ( e ) ℓ ( e ) = log n ε e ∑ w ( e ) ℓ ( e ) . (8)
This means we can find a threshold τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] where the total weighted detour cost is at most ε log n ∑ e w ( e ) ℓ ( e ) \frac{\varepsilon}{\log n}\sum_e w(e)\ell(e) l o g n ε ∑ e w ( e ) ℓ ( e ) , giving a cut C τ C_\tau C τ satisfying Lemma 2.
Finally, we remark that there are two subtleties that we sweep under the rug in this overview: (1) the construction of the balanced cuts has to take into account the boundary vertices passed down from ancestral recursive calls and (2) we incorporate vertex measure, not just edge measure μ \mu μ , in the definition of ρ ( v ) \rho(v) ρ ( v ) , to guarantee that the cut is balanced. These technical details do not change the overall idea of the proof.
Extension to minor-free graphs. For minor-free graphs, we extend Lemma 2 using a variant of the Robertson–Seymour decomposition [17 ] . By algorithmic minimax, we obtain a stochastic balanced cut as in Lemma 1 for minor-free graphs. Given the cut, our algorithm only uses the minor-closed property and hence extends without changes to minor-free graphs.
Preliminaries
Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be a connected undirected graph with vertex set V V V , edge set E E E , and non-negative edge length function ℓ : E → R ≥ 0 \ell:E\to\mathbb{R}_{\ge0} ℓ : E → R ≥ 0 . Let d G d_G d G be the shortest path distance function. Graphs in this paper are connected, unless explicitly stated otherwise. If the vertex set, edge set, and length function are not explicitly defined, we denote them by V ( G ) V(G) V ( G ) , E ( G ) E(G) E ( G ) , and ℓ G \ell_G ℓ G , respectively. Sometimes we also assign weights to vertices and edges of G G G , and in this case, we use ω \omega ω to denote vertex weights and w w w to denote edge weights. The shortest distances are distances w.r.t. edge length ℓ \ell ℓ .
A stochastic embedding of a weighted graph G G G is a distribution D \mathcal{D} D over weighted graphs H H H and maps f : V ( G ) → V ( H ) f:V(G)\to V(H) f : V ( G ) → V ( H ) . The embedding is dominating if for every graph H H H in the support of D \mathcal{D} D and every two vertices u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) , d G ( u , v ) ≤ d H ( u , v ) d_G(u,v)\le d_H(u,v) d G ( u , v ) ≤ d H ( u , v ) . Embeddings in this paper are dominating. We say that D \mathcal{D} D has expected distortion t t t if:
E [ d H ( f ( u ) , f ( v ) ) ] ≤ t ⋅ d G ( u , v ) . (9) \mathbb{E}[d_H(f(u),f(v))]\le t\cdot d_G(u,v). \tag*{(9)} E [ d H ( f ( u ) , f ( v ))] ≤ t ⋅ d G ( u , v ) . (9)
For a vertex x ∈ V x\in V x ∈ V , let N G ( x ) N_G(x) N G ( x ) be the set of neighbors of x x x in G G G , and N G [ x ] = N G ( x ) ∪ { x } N_G[x]=N_G(x)\cup\{x\} N G [ x ] = N G ( x ) ∪ { x } . For a subset of vertices X ⊆ V X\subseteq V X ⊆ V , we define the closed neighborhood to be N G [ X ] = ⋃ x ∈ X N G [ x ] N_G[X]=\bigcup_{x\in X}N_G[x] N G [ X ] = ⋃ x ∈ X N G [ x ] and the open neighborhood to be N G ( X ) = N G [ X ] ∖ X N_G(X)=N_G[X]\setminus X N G ( X ) = N G [ X ] ∖ X . If the graph is clear from context, we drop the subscript G G G from the neighborhood notation.
Fix a shortest path π G ( u , v ) \pi_G(u,v) π G ( u , v ) for every two vertices u , v u,v u , v in G G G . For a path P P P and two vertices u , v ∈ P u,v\in P u , v ∈ P , we denote by P [ u , v ] P[u,v] P [ u , v ] the subpath from u u u to v v v . For any two paths P [ u , v ] P[u,v] P [ u , v ] and Q [ v , z ] Q[v,z] Q [ v , z ] , we denote by P [ u , v ] ∘ Q [ v , z ] P[u,v]\circ Q[v,z] P [ u , v ] ∘ Q [ v , z ] the walk from u u u to z z z obtained by concatenating P [ u , v ] P[u,v] P [ u , v ] and Q [ v , z ] Q[v,z] Q [ v , z ] at v v v .
Tree decomposition. We say that a tree T \mathcal{T} T is a tree decomposition of G = ( V , E ) G=(V,E) G = ( V , E ) if nodes of T \mathcal{T} T are associated with subsets of V V V , called bags , such that:
Every vertex v ∈ V v\in V v ∈ V belongs to some bag of T \mathcal{T} T .
Every edge ( u , v ) ∈ E (u,v)\in E ( u , v ) ∈ E , some bag contains both u u u and v v v .
For every vertex v ∈ V v\in V v ∈ V , all the bags containing v v v induce a connected subtree of T \mathcal{T} T .
The width of T = max x ∈ V ( T ) ∣ X ∣ − 1 \mathcal{T}=\max_{x\in V(\mathcal{T})}|X|-1 T = max x ∈ V ( T ) ∣ X ∣ − 1 , where V ( T ) \mathcal{V}(\mathcal{T}) V ( T ) is the set of bags in T \mathcal{T} T . The treewidth of G G G is the minimum width over all tree decompositions of $G.
We will use two elementary known results to construct stochastic balanced cuts in planar and minor-free graphs: rooted path separators of planar graphs and small ball hitting sets.
Rooted path separators in planar graphs. This new variant of the separator theorem basically says that given a spanning forest F F F rooted at s s s vertices, we can construct a balanced separator containing O ( s ) O(\sqrt{s}) O ( s ) leaf-to-root paths from F F F .
Lemma 3. Let G = ( V , E ) G=(V,E) G = ( V , E ) be a planar graph with a non-negative vertex weight function ω \omega ω , and F F F be a rooted spanning forest that has s s s connected components. Then there exists a balanced separator P \mathcal{P} P of G G G w.r.t. ω \omega ω consisting of O ( s ) O(\sqrt{s}) O ( s ) rooted paths of F F F such that for every connected component C ∈ G ∖ P C \in G \setminus\mathcal{P} C ∈ G ∖ P ,
∑ v ∈ C ω ( v ) ≤ ω ( V ) / 2 , \sum_{v\in C}\omega(v) \leq\omega(V)/2, v ∈ C ∑ ω ( v ) ≤ ω ( V ) /2 , where ω ( V ) = ∑ v ∈ V ω ( v ) \omega(V)=\sum_{v\in V}\omega(v) ω ( V ) = ∑ v ∈ V ω ( v ) .
Though we are not aware of the exact form of Lemma 7 in published papers, we can easily derive it from known results in the literature, for example, the separator theorem by Cai, Har-Peled, and Ye [16 ] ; we give the details of the proof in § 6 .
Small hitting sets for balls in minor-free graphs. Bousquet, Cames van Batenburg, Esperet, Joret, Lochet, Muller, and Pirot showed that balls in minor-free graphs have small hitting sets: the size of the hitting set is proportional to the number of vertex-disjoint balls. Their theorem is stated only for unweighted graphs, but it holds for graphs with edge lengths as well.
Theorem 4 (Theorem 2 in [BCvBE+21], adapted). Let B \mathcal{B} B be a finite collection of balls in a K h K_h K h -minor-free graph G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) with edge lengths. Let I ⊆ B \mathcal{I}\subseteq\mathcal{B} I ⊆ B be a maximum cardinality set of vertex-disjoint balls in B \mathcal{B} B . There exists a B \mathcal{B} B -hitting set Z ⊆ V Z\subseteq V Z ⊆ V such that ∣ Z ∣ = O h ( ∣ I ∣ ) |Z|=O_h(|\mathcal{I}|) ∣ Z ∣ = O h ( ∣ I ∣ ) and for every ball B ∈ B B\in\mathcal{B} B ∈ B , Z ∩ B ≠ ∅ Z\cap B\ne\varnothing Z ∩ B = ∅ .
We note that Z Z Z depends on h h h exponentially.
The Embedding Algorithm
A key technical concept in the embedding algorithm is the stochastic balanced cut with a small routing cost. Let C \mathcal{C} C be a collection of vertex-disjoint clusters of G G G , and Z C = { z C : C ∈ C } Z_{\mathcal{C}}=\{z_C:C\in\mathcal{C}\} Z C = { z C : C ∈ C } be the set of centers, one center for each cluster. We denote by V ( C ) = ⋃ C ∈ C C V(\mathcal{C})=\bigcup_{C\in\mathcal{C}}C V ( C ) = ⋃ C ∈ C C . We now define a B B B -balanced cut where B B B is a subset of vertices called boundary vertices. This definition is slightly more general than the definition of a balanced cut in § 1.2 .
Definition 2 (Balanced Cut). Let G = ( V , E ) G=(V,E) G = ( V , E ) be an n n n -vertex graph. Let B ⊆ V B\subseteq V B ⊆ V be a designated subset of vertices, called the boundary vertices of G G G . Let C \mathcal{C} C be a set of vertex-disjoint clusters, each cluster C ∈ C C\in\mathcal{C} C ∈ C with a center vertex z C z_C z C , and Z = { z C } z ∈ C Z=\{z_C\}_{z\in C} Z = { z C } z ∈ C be the set of centers. We say that C \mathcal{C} C is a balanced B B B -cut of G G G if:
(B B B -nearly-disjoint ) For every cluster C ∈ C C\in\mathcal{C} C ∈ C , the only vertex of C C C that can belong to B B B is its center.
(B B B -balanced and V V V -balanced ) ∣ V ( C ) ∖ Z ∣ ≤ n / 4 |V(\mathcal{C})\setminus Z|\leq n/4 ∣ V ( C ) ∖ Z ∣ ≤ n /4 , and every connected component O O O of G ∖ C G\setminus\mathcal{C} G ∖ C has
∣ V ( O ) ∣ ≤ n / 4 , and ∣ B ∩ V ( O ) ∣ ≤ ∣ B ∣ / 4 (10) |V(O)|\leq n/4,\qquad\text{and}\qquad|B\cap V(O)|\leq|B|/4 \tag*{(10)} ∣ V ( O ) ∣ ≤ n /4 , and ∣ B ∩ V ( O ) ∣ ≤ ∣ B ∣/4 (10)
We will be using balanced cuts in the treewidth embedding in a standard way [17 , 14 ] : construct a balanced cut C \mathcal{C} C of G G G , make a bag out of the center set R C R_{\mathcal{C}} R C of clusters in C \mathcal{C} C , and recursively embed G [ V ( C ) ] G[V(\mathcal{C})] G [ V ( C )] as well as (graphs constructed from) connected components of G ∖ C G\setminus\mathcal{C} G ∖ C . The balanced property of the cut ensures that the number of vertices decreases by a constant fraction at each step, so the recursion depth is O ( log n ) O(\log n) O ( log n ) . However, for every edge e = ( u , v ) e=(u,v) e = ( u , v ) such that one of its endpoints, say u u u , belongs to a cluster C ∈ C C\in\mathcal{C} C ∈ C , while the other endpoint v ∉ V ( C ) v\notin V(C) v ∈ / V ( C ) , we must reroute it through the center z C z_C z C . We say that such an edge e e e is cut by C \mathcal{C} C . The rerouting of the edges cut by C \mathcal{C} C gives rise to a routing scheme induced by C \mathcal{C} C , denoted by ρ C \rho_{\mathcal{C}} ρ C , defined as follows:
ρ C ( e ) : = { π G [ V ( C ) ] ( u , z C ) ∘ π G ( z C , v ) , e = ( u , v ) is cut by C and u ∈ C for some cluster C ∈ C , e , otherwise . (11) \rho_{\mathcal{C}}(e):=
\begin{cases}
\pi_{G[V(\mathcal{C})]}(u,z_C)\circ\pi_G(z_C,v), & e=(u,v)\text{ is cut by }\mathcal{C}\text{ and }u\in C\text{ for some cluster }C\in\mathcal{C},\\
e, & \text{otherwise}.
\end{cases} \tag*{(11)} ρ C ( e ) := { π G [ V ( C )] ( u , z C ) ∘ π G ( z C , v ) , e , e = ( u , v ) is cut by C and u ∈ C for some cluster C ∈ C , otherwise . (11)
Note that π G ( z C , v ) \pi_G(z_C,v) π G ( z C , v ) in the definition of ρ C ( e ) \rho_C(e) ρ C ( e ) could contain a vertex in V ( C ) V(C) V ( C ) , while intuitively we would want this path to be contained entirely in G [ Z C ∪ O ] G[Z_C \cup O] G [ Z C ∪ O ] for the recursion to handle it, where O O O is the connected component of G ∖ C G \setminus C G ∖ C containing v v v . (Indeed, the prefix π G [ V ( C ) ] ( u , z C ) \pi_{G[V(C)]}(u,z_C) π G [ V ( C )] ( u , z C ) is handled by the recursion on G [ V ( C ) ] G[V(C)] G [ V ( C )] .) In our embedding algorithm, we resolve this issue by adding a direct edge from z C z_C z C to v v v in the host graph H H H with length exactly d G ( z C , v ) d_G(z_C,v) d G ( z C , v ) . Thus, the fact that π G ( z C , v ) \pi_G(z_C,v) π G ( z C , v ) is not contained entirely in G [ Z C ∪ B ] G[Z_C \cup B] G [ Z C ∪ B ] is not a problem.
For a low-distortion embedding, we want ρ C ( e ) \rho_C(e) ρ C ( e ) to be not much larger than ℓ ( e ) \ell(e) ℓ ( e ) in expectation. A key technical contribution of this paper is to design such a distribution of balanced cuts, formalized in the following lemma.
Lemma 4 (Stochastic Balanced Cuts with Low Distortion). Let k k k be any given parameter sufficiently larger than 1. Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be any n n n -vertex planar graph with edge length function ℓ \ell ℓ . B ⊆ V B \subseteq V B ⊆ V be a designated set of boundary vertices such that ∣ B ∣ ≤ k 2 |B| \le k^2 ∣ B ∣ ≤ k 2 . Then there is a distribution C \mathcal{C} C of balanced B B B -cuts of G G G such that (i) every cut C C C in the support of C \mathcal{C} C has ∣ C ∣ = O ( k ) |C|=O(k) ∣ C ∣ = O ( k ) clusters and (ii) for every edge e ∈ G e \in G e ∈ G :
E C ∼ C [ ℓ ( ρ C ( e ) ) ] ≤ ( 1 + O ( 1 ) k ) ℓ ( e ) (12) \mathbb{E}_{C \sim\mathcal{C}}[\ell(\rho_C(e))] \le\left(1+\frac{O(1)}{k}\right)\ell(e) \tag*{(12)} E C ∼ C [ ℓ ( ρ C ( e ))] ≤ ( 1 + k O ( 1 ) ) ℓ ( e ) (12) Furthermore, the support of C \mathcal{C} C has only O ( n log n ) O(n\log n) O ( n log n ) balanced cuts, which can be constructed in polynomial time, and sampling is uniform at random in O ( 1 ) O(1) O ( 1 ) time.
The condition ∣ B ∣ ≤ k 2 |B| \le k^2 ∣ B ∣ ≤ k 2 mainly arises because we want clusters in a balanced cut to avoid B B B (except for their centers). In our embedding, B = O ( k ) B=O(k) B = O ( k ) , so ∣ B ∣ ≤ k 2 |B| \le k^2 ∣ B ∣ ≤ k 2 holds automatically as long as k k k is sufficiently large.
Specifically, we set k = η log n ϵ k=\frac{\eta\log n}{\epsilon} k = ϵ η l o g n in Lemma 4 for a sufficiently large constant η \eta η , so the expected distortion (at one level of the recursion) is about ( 1 + ϵ 4 log n ) \left(1+\frac{\epsilon}{4\log n}\right) ( 1 + 4 l o g n ϵ ) . Over ⌈ log ( n ) ⌉ \lceil\log(n)\rceil ⌈ log ( n )⌉ levels, the expected distortion is ( 1 + ϵ 4 log n ) ⌈ log ( n ) ⌉ ≤ 1 + ϵ \left(1+\frac{\epsilon}{4\log n}\right)^{\lceil\log(n)\rceil} \le1+\epsilon ( 1 + 4 l o g n ϵ ) ⌈ l o g ( n )⌉ ≤ 1 + ϵ . The cut C C C sampled from C \mathcal{C} C will have ∣ Z C ∣ ≤ O ( k ) = O ( log n / ϵ ) |Z_C| \le O(k)=O(\log n/\epsilon) ∣ Z C ∣ ≤ O ( k ) = O ( log n / ϵ ) centers. Thus, the bag from Z C Z_C Z C has size O ( log n / ϵ ) O(\log n/\epsilon) O ( log n / ϵ ) , which is also our final treewidth bound. The fact that C C C is B B B -balanced (item 2 of Definition 2) allows us to control the size of B B B to be always of size O ( k ) = O ( log n / ϵ ) O(k)=O(\log n/\epsilon) O ( k ) = O ( log n / ϵ ) so that ∣ B ∣ ≤ k 2 |B| \le k^2 ∣ B ∣ ≤ k 2 holds when η \eta η is sufficiently large.
Next, we describe the embedding algorithm, given the stochastic balanced cuts in Lemma 4. The algorithm is similar to those in prior work, using their own version of stochastic balanced cuts [17 , 14 ] . Readers who are already familiar with previous work are encouraged to skip to § 4 where we prove Lemma 4.
The embedding algorithm. We assume that the length of every edge of G G G is the shortest distance between its endpoints; this can be done by reassigning the edge length to be the endpoints’ distance. The pseudo-code of the recursive embedding algorithm is in Algorithm 1. Procedure Emb ( G , B ) \operatorname{Emb}(G,B) Emb ( G , B ) takes a planar graph G = ( V , E ) G=(V,E) G = ( V , E ) and its boundary vertex set B B B as input, and produces a graph H H H with V ( H ) = V V(H)=V V ( H ) = V and a tree decomposition T \mathcal{T} T of H H H . The root bag of T \mathcal{T} T will contain B B B . Initially, for the input graph, B = ∅ B=\varnothing B = ∅ . We choose a sufficiently large constant η \eta η to be used in all recursive calls. The target treewidth bound is O ( log n / ϵ ) O(\log n/\epsilon) O ( log n / ϵ ) . The base case is when the number of vertices is small, namely, n ≤ 8 η 2 log ( n ) / ϵ n \le8\eta^2\log(n)/\epsilon n ≤ 8 η 2 log ( n ) / ϵ : we simply make H H H a complete graph with all pairwise edges and set T \mathcal{T} T to be a single-bag tree decomposition.
For the non-base case, we sample a B B B -balanced cut C C C by applying Lemma 4 with k = η log ( n ) / ϵ k=\eta\log(n)/\epsilon k = η log ( n ) / ϵ . We initialize the tree decomposition T \mathcal{T} T with a single bag B ∪ Z C B \cup Z_C B ∪ Z C , where Z C Z_C Z C is the set of centers of C C C . Then we recursively embed connected components of G [ V ( C ) ] G[V(C)] G [ V ( C )] and G ∖ C G \setminus C G ∖ C . Specifically:
Type-I recursion. For each connected component A ∈ G [ V ( C ) ] A \in G[V(C)] A ∈ G [ V ( C )] in the balanced cut, A A A is a union of clusters since each cluster is connected. The boundary vertices of A A A are the centers of the clusters in A A A . We note that only the boundary vertices of A A A could contain vertices in B B B by item 1 of Definition 2. We recursively call Emb ( A , Z C ∩ A ) \operatorname{Emb}(A,Z_C \cap A) Emb ( A , Z C ∩ A ) to get an embedding of A A A into a graph H A H_A H A and its tree decomposition T A \mathcal{T}_A T A . Then we attach T A \mathcal{T}_A T A to T \mathcal{T} T by making the root of T A \mathcal{T}_A T A a child bag of B ∪ Z C B \cup Z_C B ∪ Z C , the root bag of T \mathcal{T} T , and add H A H_A H A to H H H . Observe that:
( r o o t - b a g - o f - T A ) ∩ ( r o o t - b a g - o f - T ) = Z C ∩ A (13) (\operatorname{root\text{-}bag\text{-}of\text{-}\mathcal{T}_A) \cap(\operatorname{root\text{-}bag\text{-}of\text{-}\mathcal{T}) = Z_C \cap A}} \tag*{(13)} ( root - bag - of - T A )∩( root - bag - of - T )= Z C ∩A (13)
Type-II recursion. For each connected component O ∈ G ∖ C O \in G \setminus C O ∈ G ∖ C , we want to recursively embed not just edges in O O O . To see this, consider an edge e = ( u , v ) e=(u,v) e = ( u , v ) cut by C C C , i.e., u ∈ C u \in C u ∈ C for some cluster C ∈ C C \in\mathcal{C} C ∈ C and v ∈ O v \in O v ∈ O . The rerouted path ρ C ( e ) \rho_C(e) ρ C ( e ) goes through the center z C ∈ C z_C \in C z C ∈ C . The prefix subpath from u u u to z C z_C z C will be approximately
preserved (in expectation) by the recursive calls on connected components of G [ V ( C ) ] G[V(\mathcal{C})] G [ V ( C )] above. However, the suffix path from z C z_C z C to v v v cannot be preserved simply by recursing on O O O , since O O O does not contain z C z_C z C .
First, we contract every cluster into its center to obtain a graph G − G^{-} G − , and remove parallel edges and loops. Note that G − G^{-} G − is a planar graph. Then for every edge ( z C , v ) ∈ G − (z_C,v) \in G^{-} ( z C , v ) ∈ G − that is not in G G G , we set the length ℓ ( z C , v ) = d G − ( z C , v ) \ell(z_C,v)=d_{G^{-}}(z_C,v) ℓ ( z C , v ) = d G − ( z C , v ) in G − G^{-} G − . Next, for each connected component O ∈ G ∖ C O \in G \setminus\mathcal{C} O ∈ G ∖ C , let Z O Z_O Z O be the set of centers in G − G^{-} G − that have neighbors in O O O . We recursively call EMBED ( G − [ V ( O ) ∪ B O ] , B O ) \operatorname{EMBED}(G^{-}[V(O)\cup B_O],B_O) EMBED ( G − [ V ( O ) ∪ B O ] , B O ) to embed G − [ V ( O ) ∪ B O ] G^{-}[V(O)\cup B_O] G − [ V ( O ) ∪ B O ] with the boundary vertex set B O = Z O ∪ ( V ( O ) ∩ B ) B_O=Z_O\cup(V(O)\cap B) B O = Z O ∪ ( V ( O ) ∩ B ) . Here, B O B_O B O contains all boundary vertices of G G G in O O O and vertices in Z O Z_O Z O . Let H O H_O H O be the output host graph and T O \mathcal{T}_O T O be the tree decomposition of H O H_O H O from the recursion. We simply add H O H_O H O to H H H and attach T O \mathcal{T}_O T O to T \mathcal{T} T by making the root bag of T O \mathcal{T}_O T O a child bag of the root bag of T \mathcal{T} T . We have:
( root-bag-of- T O ) ∩ ( root-bag-of- T ) = B O (14) (\text{root-bag-of-}\mathcal{T}_O)\cap(\text{root-bag-of-}\mathcal{T})=B_O \tag*{(14)} ( root-bag-of- T O ) ∩ ( root-bag-of- T ) = B O (14)
Back to the discussion on the cut edge e = ( u , v ) e=(u,v) e = ( u , v ) , the suffix path π G ( z C , v ) \pi_G(z_C,v) π G ( z C , v ) now becomes an edge ( z C , v ) (z_C,v) ( z C , v ) in V ( O ) ∪ B O V(O)\cup B_O V ( O ) ∪ B O with length ℓ ( π G ( z C , v ) ) = d G − ( z C , v ) \ell(\pi_G(z_C,v))=d_{G^{-}}(z_C,v) ℓ ( π G ( z C , v )) = d G − ( z C , v ) . The edge will be approximately preserved by the recursion. As both subpaths of ρ C ( e ) \rho_C(e) ρ C ( e ) have low distortion, by Lemma 4, we can show that e e e has a small expected distortion.
We note that every edge ( u , v ) ∈ H (u,v)\in H ( u , v ) ∈ H is assigned a length to be d G ( u , v ) d_G(u,v) d G ( u , v ) .
Algorithm 1 EMBED ( G , B ) \operatorname{EMBED}(G,B) EMBED ( G , B )
Input: A planar graph G = ( V , E ) G=(V,E) G = ( V , E ) , and B ⊆ V B\subseteq V B ⊆ V the set of boundary vertices. The constant η \eta η is sufficiently large, and n n n is the number of vertices of G G G .
Output: A tree decomposition T \mathcal{T} T of G G G whose root bag contains B B B .
if n ≤ 8 η 2 log ( n ) / ϵ n\leq8\eta^2\log(n)/\epsilon n ≤ 8 η 2 log ( n ) / ϵ then ▷ the base case
H ← ( V , ( V 2 ) ) \mathcal{H}\leftarrow(V,\binom{V}{2}) H ← ( V , ( 2 V ) )
T ← { V } \mathcal{T}\leftarrow\{V\} T ← { V } , a single-bag tree decomposition.
return ( H , T ) (H,\mathcal{T}) ( H , T )
C s a m p l e ← C \mathcal{C}^{\mathrm{sample}}\leftarrow\mathcal{C} C sample ← C where C \mathcal{C} C is a distribution of ( B , η log ( n ) / ϵ ) (B,\eta\log(n)/\epsilon) ( B , η log ( n ) / ϵ ) -balanced cuts in Lemma 4.
Z C ← Z_{\mathcal{C}}\leftarrow Z C ← centers of clusters in C \mathcal{C} C
H ← ( V , ( B ∪ Z C 2 ) ) H\leftarrow(V,\binom{B\cup Z_{\mathcal{C}}}{2}) H ← ( V , ( 2 B ∪ Z C ) ) ▷ H H H contains edges between B ∪ Z C B\cup Z_{\mathcal{C}} B ∪ Z C
T ← { B ∪ Z C } \mathcal{T}\leftarrow\{B\cup Z_{\mathcal{C}}\} T ← { B ∪ Z C }
for each connected component A ∈ G [ V ( C ) ] A\in G[V(\mathcal{C})] A ∈ G [ V ( C )] do
( T A , H A ) ← EMBED ( A , Z C ∩ A ) (\mathcal{T}_A,H_A)\leftarrow\operatorname{EMBED}(A,Z_{\mathcal{C}}\cap A) ( T A , H A ) ← EMBED ( A , Z C ∩ A ) ▷ The root of T A \mathcal{T}_A T A is a bag Z C ∩ A Z_{\mathcal{C}}\cap A Z C ∩ A
make the root of T A \mathcal{T}_A T A a child of B ∪ Z C B\cup Z_{\mathcal{C}} B ∪ Z C , effectively attaching T A \mathcal{T}_A T A to T \mathcal{T} T
H ← H ∪ H A H\leftarrow H\cup H_A H ← H ∪ H A
G − ← G^{-}\leftarrow G − ← graph obtained from G G G by contracting each cluster C C C in C \mathcal{C} C into z C z_C z C ▷ z C z_C z C is the center of C C C
for each connected component O ∈ G ∖ C O\in G\setminus\mathcal{C} O ∈ G ∖ C do
Z O ← N G − [ O ] ∩ Z C Z_O\leftarrow N_{G^{-}}[O]\cap Z_{\mathcal{C}} Z O ← N G − [ O ] ∩ Z C ▷ Z O Z_O Z O contains all centers adjacent to O O O in G − G^{-} G −
B O ← Z O ∪ ( V ( O ) ∩ B ) B_O\leftarrow Z_O\cup(V(O)\cap B) B O ← Z O ∪ ( V ( O ) ∩ B )
( T O , H O ) ← EMBED ( G − [ V ( O ) ∪ B O ] , B O ) (\mathcal{T}_O,H_O)\leftarrow\operatorname{EMBED}(G^{-}[V(O)\cup B_O],B_O) ( T O , H O ) ← EMBED ( G − [ V ( O ) ∪ B O ] , B O )
make the root bag of T O \mathcal{T}_O T O a child of the bag B ∪ Z C B\cup Z_{\mathcal{C}} B ∪ Z C , effectively attaching T O \mathcal{T}_O T O to T \mathcal{T} T
H ← H ∪ H O H\leftarrow H\cup H_O H ← H ∪ H O
return ( H , T ) (H,\mathcal{T}) ( H , T )
First we show that the boundary set B B B will never get too large.
Lemma 5. Suppose that we call Algorithm 1 on the input graph with B = ∅ B=\varnothing B = ∅ . Then in any recursive call:
∣ B ∣ ≤ 2 η 2 log ( n ) / ϵ (15) |B|\leq2\eta^2\log(n)/\epsilon \tag*{(15)} ∣ B ∣ ≤ 2 η 2 log ( n ) / ϵ (15)
for a sufficiently large constant η \eta η .
Proof: We prove by induction. The base case is at the top level of the recursion, where B = ∅ B = \emptyset B = ∅ . Since C C C is a balanced ( B , η log ( n ) / ϵ ) (B,\eta\log(n)/\epsilon) ( B , η log ( n ) / ϵ ) -cut, by Definition 2, we have:
∣ Z C ∣ = ∣ C ∣ = O ( k ) = O ( η log ( n ) / ϵ ) ≤ η 2 log ( n ) / ϵ (16) |Z_C| = |C| = O(k) = O(\eta\log(n)/\epsilon) \le\eta^2\log(n)/\epsilon \tag*{(16)} ∣ Z C ∣ = ∣ C ∣ = O ( k ) = O ( η log ( n ) / ϵ ) ≤ η 2 log ( n ) / ϵ (16)
for a sufficiently large constant η \eta η . For Type-I recursion, the set of boundary vertices is a subset of Z C Z_C Z C and hence has size at most η 2 log ( n ) / ϵ < 2 η 2 log ( n ) / ϵ \eta^2\log(n)/\epsilon< 2\eta^2\log(n)/\epsilon η 2 log ( n ) / ϵ < 2 η 2 log ( n ) / ϵ . For Type-II recursion, we have ∣ Z O ∣ ≤ ∣ Z C ∣ |Z_O| \le|Z_C| ∣ Z O ∣ ≤ ∣ Z C ∣ while by Definition 2, ∣ V ( O ) ∩ B ∣ ≤ B / 4 |V(O) \cap B| \le B/4 ∣ V ( O ) ∩ B ∣ ≤ B /4 , which gives:
∣ B O ∣ ≤ ∣ Z O ∣ + ∣ V ( O ) ∩ B ∣ ≤ η 2 log ( n ) / ϵ + ∣ B ∣ / 4 ≤ 2 η 2 log ( n ) / ϵ , |B_O| \le|Z_O| + |V(O) \cap B| \le\eta^2\log(n)/\epsilon+ |B|/4 \le2\eta^2\log(n)/\epsilon, ∣ B O ∣ ≤ ∣ Z O ∣ + ∣ V ( O ) ∩ B ∣ ≤ η 2 log ( n ) / ϵ + ∣ B ∣/4 ≤ 2 η 2 log ( n ) / ϵ ,
which completes the proof.
Theorem 1. Given an n n n -vertex planar graph G = ( V , E , ℓ ) G = (V,E,\ell) G = ( V , E , ℓ ) and any parameter ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) , there is a stochastic embedding of G G G into a distribution D \mathcal{D} D of graphs with treewidth O ( log n / ϵ ) O(\log n/\epsilon) O ( log n / ϵ ) and expected distortion ( 1 + ϵ ) (1+\epsilon) ( 1 + ϵ ) . Furthermore, the embedding can be sampled in polynomial time, and every graph H H H in the support of D \mathcal{D} D has V ( H ) = V ( G ) V(H)=V(G) V ( H ) = V ( G ) .
Proof: The embedding is ( H , T ) = Embed ( G , ∅ ) (H,\mathcal{T}) = \operatorname{Embed}(G,\emptyset) ( H , T ) = Embed ( G , ∅ ) . For the analysis, we first bound the number of recursion levels, denoted by L L L . Then we bound the expected distortion and the treewidth by induction on the number of levels.
If we are in a non-base case of the recursion, n ≥ 8 η 2 log ( n ) / ϵ n \ge8\eta^2\log(n)/\epsilon n ≥ 8 η 2 log ( n ) / ϵ . Observe that every time we recurse, the size of the graph is at most:
n / 4 + (number of boundary vertices) ≤ n + 2 η 2 log ( n ) / ϵ ≤ n / 4 + n / 4 = n / 2 (17) n/4 + \text{(number of boundary vertices)} \le n + 2\eta^2\log(n)/\epsilon\le n/4 + n/4 = n/2 \tag*{(17)} n /4 + (number of boundary vertices) ≤ n + 2 η 2 log ( n ) / ϵ ≤ n /4 + n /4 = n /2 (17)
For Type-I, we count the noncenters in the union and then the centers. For Type-II, we count V ( O ) V(O) V ( O ) and then Z O Z_O Z O . Thus, L ≤ ⌈ log 2 n ⌉ L \le\lceil\log_2 n\rceil L ≤ ⌈ log 2 n ⌉ .
We observe that V ( H ) = V ( G ) V(H)=V(G) V ( H ) = V ( G ) , and every time we add an edge ( u , v ) (u,v) ( u , v ) to H H H , its length in H H H is the shortest distance between its endpoints in G G G . Thus, by the triangle inequality, the embedding is dominating.
Now we bound the expected distortion by induction. We note that the embedding is dominating since V ( H ) = V ( G ) V(H)=V(G) V ( H ) = V ( G ) , and every time we add an edge ( u , v ) (u,v) ( u , v ) to H H H , its length in H H H is the shortest distance between its endpoints in G G G .
We say that a recursive call is at level i i i if its distance to the root of the recursion tree is exactly i i i . We prove that if the call Embed ( G , B ) \operatorname{Embed}(G,B) Embed ( G , B ) is at level i i i , then for every two vertices u , v ∈ G u,v \in G u , v ∈ G :
E [ d H ( u , v ) ] ≤ ( 1 + ϵ 4 log n ) L − i d G ( u , v ) (18) \mathbb{E}[d_H(u,v)] \le\left(1+\frac{\epsilon}{4\log n}\right)^{L-i}d_G(u,v) \tag*{(18)} E [ d H ( u , v )] ≤ ( 1 + 4 log n ϵ ) L − i d G ( u , v ) (18)
The base case is i = L i=L i = L ; in this case, H H H is a complete graph, so d H ( u , v ) = d G ( u , v ) d_H(u,v)=d_G(u,v) d H ( u , v ) = d G ( u , v ) , and Equation (18) holds.
For the non-base case, by the triangle inequality, it suffices to show Equation (18) when e = ( u , v ) e=(u,v) e = ( u , v ) is an edge of G G G , and in this case, d G ( u , v ) = ℓ ( u , v ) d_G(u,v)=\ell(u,v) d G ( u , v ) = ℓ ( u , v ) . Observe that if e e e is not cut by C C C , then e e e is passed down to one of the recursive calls and hence Equation (18) follows from the induction hypothesis. Otherwise, e e e is cut by C C C . By the definition of being cut, e = ( u , v ) e=(u,v) e = ( u , v ) where u ∈ C u \in C u ∈ C for some cluster C ∈ C C \in\mathcal{C} C ∈ C and v ∈ O v \in O v ∈ O for some connected component O ∈ G ∖ C O \in G\setminus C O ∈ G ∖ C . Observe that the prefix of ρ C ( e ) \rho_C(e) ρ C ( e ) , namely π G [ V ( C ) ] ( u , z C ) \pi_{G[V(C)]}(u,z_C) π G [ V ( C )] ( u , z C ) is passed down to a connected component A ∈ G [ V ( C ) ] A \in G[V(C)] A ∈ G [ V ( C )] in the Type-I recursion. By the induction hypothesis, we have:
E [ d H A ( u , z C ) ∣ C ] ≤ ( 1 + ϵ 4 log n ) L − ( i + 1 ) d A ( u , z C ) (19) \mathbb{E}[d_{H_A}(u,z_C)\mid C] \le\left(1+\frac{\epsilon}{4\log n}\right)^{L-(i+1)}d_A(u,z_C) \tag*{(19)} E [ d H A ( u , z C ) ∣ C ] ≤ ( 1 + 4 log n ϵ ) L − ( i + 1 ) d A ( u , z C ) (19)
The suffix of ρ C ( e ) \rho_C(e) ρ C ( e ) , namely π G ( z C , v ) \pi_G(z_C,v) π G ( z C , v ) is replaced by an edge ( z C , v ) (z_C,v) ( z C , v ) in G − G^{-} G − and hence is passed down to a Type-II recursive call on some connected component O O O of G ∖ C G\setminus C G ∖ C , giving:
E [ d H O ( z C , v ) ∣ C ] ≤ ( 1 + ϵ 4 log n ) L − ( i + 1 ) d H O ( z C , v ) (20) \mathbb{E}[d_{H_O}(z_C,v)\mid C] \le\left(1+\frac{\epsilon}{4\log n}\right)^{L-(i+1)}d_{H_O}(z_C,v) \tag*{(20)} E [ d H O ( z C , v ) ∣ C ] ≤ ( 1 + 4 log n ϵ ) L − ( i + 1 ) d H O ( z C , v ) (20)
Combining Equation (19) and Equation (20) , we obtain:
E [ ℓ ( ρ C ( e ) ) ∣ C ] ≤ ( 1 + ε 4 log n ) L − ( i + 1 ) ρ C ( e ) (21) \mathbb{E}[\ell(\rho_{\mathcal{C}}(e))\mid\mathcal{C}] \leq\left(1+\frac{\varepsilon}{4\log n}\right)^{L-(i+1)}\rho_{\mathcal{C}}(e) \tag*{(21)} E [ ℓ ( ρ C ( e )) ∣ C ] ≤ ( 1 + 4 log n ε ) L − ( i + 1 ) ρ C ( e ) (21)
and hence:
E [ ℓ ( ρ C ( e ) ) ] = E [ E [ ℓ ( ρ C ( e ) ) ∣ C ] ] ≤ ( 1 + ε 4 log n ) L − ( i + 1 ) E [ ρ C ( e ) ] ≤ ( 1 + ε 4 log n ) L − ( i + 1 ) ( 1 + ε 4 log ( n ) ) ℓ ( e ) (by Lemma 4 and choosing η sufficiently large) = ( 1 + ε 4 log n ) L − i ℓ ( e ) , (22) \begin{aligned}
\mathbb{E}[\ell(\rho_{\mathcal{C}}(e))] &= \mathbb{E}[\mathbb{E}[\ell(\rho_{\mathcal{C}}(e))\mid\mathcal{C}]]\\
&\leq\left(1+\frac{\varepsilon}{4\log n}\right)^{L-(i+1)}\mathbb{E}[\rho_{\mathcal{C}}(e)]\\
&\leq\left(1+\frac{\varepsilon}{4\log n}\right)^{L-(i+1)}\left(1+\frac{\varepsilon}{4\log(n)}\right)\ell(e)\qquad\text{(by Lemma 4 and choosing $\eta$ sufficiently large)}\\
&= \left(1+\frac{\varepsilon}{4\log n}\right)^{L-i}\ell(e), \tag*{(22)}
\end{aligned} E [ ℓ ( ρ C ( e ))] = E [ E [ ℓ ( ρ C ( e )) ∣ C ]] ≤ ( 1 + 4 log n ε ) L − ( i + 1 ) E [ ρ C ( e )] ≤ ( 1 + 4 log n ε ) L − ( i + 1 ) ( 1 + 4 log ( n ) ε ) ℓ ( e ) (by Lemma 4 and choosing η sufficiently large) = ( 1 + 4 log n ε ) L − i ℓ ( e ) , (22)
giving Equation (18) .
At the top level of the recursion i = 0 i=0 i = 0 , and hence the expected distortion is:
( 1 + ε 4 log n ) L ≤ e ε L / 4 log n ≤ e ε / 2 ≤ ( 1 + ε ) (23) \left(1+\frac{\varepsilon}{4\log n}\right)^L \leq e^{\varepsilon L/4\log n} \leq e^{\varepsilon/2} \leq(1+\varepsilon) \tag*{(23)} ( 1 + 4 log n ε ) L ≤ e ε L /4 l o g n ≤ e ε /2 ≤ ( 1 + ε ) (23)
since ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) .
Finally, we show that T \mathcal{T} T is a valid tree decomposition of H H H and bound its treewidth. Note that every time we add an edge to H H H , both of its endpoints are in the same bag of T \mathcal{T} T . Thus, it remains to show that for every vertex v ∈ V ( H ) v\in V(H) v ∈ V ( H ) , the bags containing v v v induce a connected subtree of T \mathcal{T} T , and we do so by induction. If v ∉ Z C ∪ B v\notin Z_{\mathcal{C}}\cup B v ∈ / Z C ∪ B , then v v v is contained in exactly one graph among the graphs in the recursive calls and hence, by induction, the bags containing v v v induce a connected subtree of the tree decomposition returned from the recursive call. Otherwise, v ∈ Z C ∪ B v\in Z_{\mathcal{C}}\cup B v ∈ Z C ∪ B . Then v v v is also a boundary vertex of the graphs in the recursive calls. By Equation (13) and Equation (14) , the returned tree decompositions have root bags that contain v v v if v v v is passed down to the recursive calls. Thus, by making the root of the returned tree decomposition a child bag of B ∪ Z C B\cup Z_{\mathcal{C}} B ∪ Z C in line 11 and line 18, the bags containing v v v of T \mathcal{T} T also induce a connected subtree.
Now we show by induction that the treewidth of T \mathcal{T} T is at most 8 η 2 log ( n ) / ε = O ( log n / ε ) 8\eta^2\log(n)/\varepsilon=O(\log n/\varepsilon) 8 η 2 log ( n ) / ε = O ( log n / ε ) . This holds trivially for the base case when n ≤ 8 η 2 log ( n ) / ε n\leq8\eta^2\log(n)/\varepsilon n ≤ 8 η 2 log ( n ) / ε . For the non-base case, observe that T \mathcal{T} T is initialized in line 8 as a single bag of size at most:
∣ B ∣ + ∣ Z C ∣ ≤ 2 η 2 log n ε + η 2 log ( n ) ε = 3 η 2 log ( n ) ε (24) |B|+|Z_{\mathcal{C}}|\leq\frac{2\eta^2\log n}{\varepsilon}+\frac{\eta^2\log(n)}{\varepsilon}=\frac{3\eta^2\log(n)}{\varepsilon} \tag*{(24)} ∣ B ∣ + ∣ Z C ∣ ≤ ε 2 η 2 log n + ε η 2 log ( n ) = ε 3 η 2 log ( n ) (24)
by Equation (15) and Equation (16) . By induction, T A \mathcal{T}_A T A and T O \mathcal{T}_O T O in line 10 and line 17, respectively, both have treewidth at most 8 η 2 log ( n ) / ε 8\eta^2\log(n)/\varepsilon 8 η 2 log ( n ) / ε . Attaching them to T \mathcal{T} T does not increase their widths, and hence the final treewidth bound remains 8 η 2 log ( n ) / ε = O ( log n / ε ) 8\eta^2\log(n)/\varepsilon=O(\log n/\varepsilon) 8 η 2 log ( n ) / ε = O ( log n / ε ) , as claimed. □
Remark 1. There are two places where we need planarity in the embedding theorem: (1) the existence of stochastic balanced cuts (Lemma 4) and (2) the contracted graph G − G^{-} G − remains planar so that we can invoke recursion. Since a minor-closed graph class is closed under edge contraction and vertex deletion, extending the embedding to minor-free graphs requires only showing that stochastic balanced cuts exist for minor-free graphs.
Stochastic Balanced Cuts
This section constructs stochastic balanced cuts with low distortion in Lemma 4. If we assign every edge e ∈ G e\in G e ∈ G a non-negative weight w ( e ) ≥ 0 w(e)\geq0 w ( e ) ≥ 0 , then Lemma 4 implies that there exists a cut C \mathcal{C} C such that:
∑ e w ( e ) E [ ℓ ( ρ C ( e ) ) ] ≤ ( 1 + O ( 1 ) k ) ∑ e w ( e ) ℓ ( e ) (25) \sum_e w(e)\mathbb{E}[\ell(\rho_{\mathcal{C}}(e))]\leq\left(1+\frac{O(1)}{k}\right)\sum_e w(e)\ell(e) \tag*{(25)} e ∑ w ( e ) E [ ℓ ( ρ C ( e ))] ≤ ( 1 + k O ( 1 ) ) e ∑ w ( e ) ℓ ( e ) (25)
By Yao’s minimax principle [Yao77], the converse is true: if for any non-negative weight function w : E → R ≥ 0 w:E\to\mathbb{R}_{\geq0} w : E → R ≥ 0 on the edges, there exists a cut C \mathcal{C} C satisfying Equation (25) , then Lemma 4 holds. Thus, for showing the existence of stochastic balanced cuts, it suffices to prove the following lemma.
Lemma 6. Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be a planar graph and B B B be a set of boundary vertices. Let k k k be a parameter sufficiently larger than 1 such that ∣ B ∣ ≤ k 2 |B|\le k^2 ∣ B ∣ ≤ k 2 . For any edge weight function w : E → R ≥ 0 w:E\to\mathbb{R}_{\ge0} w : E → R ≥ 0 , one can construct in polynomial time a balanced B B B -cut C \mathcal{C} C such that:
∑ e w ( e ) ( ℓ ( ρ C ( e ) ) − ℓ ( e ) ) ≤ O ( 1 ) k ∑ e w ( e ) ℓ ( e ) \sum_{e} w(e)(\ell(\rho_{\mathcal{C}}(e))-\ell(e)) \le\frac{O(1)}{k}\sum_{e} w(e)\ell(e) e ∑ w ( e ) ( ℓ ( ρ C ( e )) − ℓ ( e )) ≤ k O ( 1 ) e ∑ w ( e ) ℓ ( e ) and ∣ C ∣ = O ( k ) |\mathcal{C}|=O(k) ∣ C ∣ = O ( k ) .
If we think of ℓ ( ρ C ( e ) ) − ℓ ( e ) \ell(\rho_{\mathcal{C}}(e))-\ell(e) ℓ ( ρ C ( e )) − ℓ ( e ) as the detour cost for an edge e e e cut by C \mathcal{C} C , then Lemma 6 seeks a balanced B B B -cut C \mathcal{C} C such that the total weighted detour cost is small.
In § 4.1 , we show how to construct a balanced cut in Lemma 6 in polynomial time. However, such a polynomial-time algorithm does not immediately imply a polynomial-time algorithm for sampling a stochastic balanced cut: the minimax principle only implies the existence of a distribution of such cuts. In § 4.2 , we give a polynomial-time sampling algorithm, based on the multiplicative weight update method. Our algorithm is inspired by the algorithmic minimax for clan embeddings by Filtser and Le [23 ] (Lemma 4 in the arXiv version of their paper).
A Cut with Small Total Weighted Detour
This section proves Lemma 6. The proof closely follows the ideas outlined in § 1.2 ; the main difference is how we set up the measure to capture both vertex and edge measures. We will use two known tools: the rooted path separator (Lemma 3) and small hitting sets for balls in planar graphs (Theorem 4). For rooted path separators, we need a smaller balanced constant, 1 / 8 1/8 1/8 instead of 1 / 2 1/2 1/2 as stated in Lemma 3; we can achieve this by applying Lemma 3 a few times.
Lemma 7. Let G = ( V , E ) G=(V,E) G = ( V , E ) be a planar graph with a vertex weight function ω \omega ω , and F F F be a rooted spanning forest that has s s s connected components. Then there exists a balanced separator P P P of G G G w.r.t ω \omega ω consisting of O ( s ) O(\sqrt{s}) O ( s ) rooted paths of F F F such that for every connected component C ∈ G ∖ P C\in G\setminus P C ∈ G ∖ P , ∑ v ∈ C ω ( v ) ≤ ω ( V ) / 8 \sum_{v\in C}\omega(v)\le\omega(V)/8 ∑ v ∈ C ω ( v ) ≤ ω ( V ) /8 where ω ( V ) = ∑ v ∈ V ω ( v ) \omega(V)=\sum_{v\in V}\omega(v) ω ( V ) = ∑ v ∈ V ω ( v ) .
Setting up the proof: the measures. Herein, we focus on proving Lemma 6. For every vertex v ∈ V v\in V v ∈ V , we assign a weight:
ω V ( v ) = 1 n + { 1 ∣ B ∣ if v ∈ B 0 otherwise (26) \omega_V(v)=\frac{1}{n}+
\begin{cases}
\frac{1}{|B|} & \text{if }v\in B\\
0 & \text{otherwise}
\end{cases} \tag*{(26)} ω V ( v ) = n 1 + { ∣ B ∣ 1 0 if v ∈ B otherwise (26)
Let ω V ( V ) = ∑ v ω V ( v ) \omega_V(V)=\sum_v\omega_V(v) ω V ( V ) = ∑ v ω V ( v ) . Then ω V ( V ) ∈ { 1 , 2 } \omega_V(V)\in\{1,2\} ω V ( V ) ∈ { 1 , 2 } where ω V ( V ) = 1 \omega_V(V)=1 ω V ( V ) = 1 if and only if B = ∅ B=\varnothing B = ∅ .
We think of G G G as a continuous graph, where every edge is a continuous segment, joined together via the incident vertices. Let E : = ⋃ e ∈ E e \mathcal{E}:=\bigcup_{e\in E}e E := ⋃ e ∈ E e , which is the union of these continuous edges. (Some papers, e.g., [24 ] , refer to E \mathcal{E} E as a length space.) We still refer to the points joining edges of E \mathcal{E} E as the vertices. The distance function d E d_{\mathcal{E}} d E for any pair of points in E \mathcal{E} E is defined as the length of the shortest path between them. At vertices of G G G , d G ( u , v ) = d E ( u , v ) d_G(u,v)=d_{\mathcal{E}}(u,v) d G ( u , v ) = d E ( u , v ) for any u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) .
Viewing the edges of G G G as continuous makes it easy to define measures and ultimately support a region-growing type of argument for the final proof. We define a non-negative measure μ \mu μ where each segment of length δ ⊆ e ⊆ E \delta\subseteq e\subseteq\mathcal{E} δ ⊆ e ⊆ E is assigned μ ( δ ) : = w e ⋅ δ \mu(\delta):=w_e\cdot\delta μ ( δ ) := w e ⋅ δ . Intuitively, μ ( δ ) \mu(\delta) μ ( δ ) is the weight of the δ \delta δ -length segment of w e w_e w e . If δ \delta δ is a connected subset of E \mathcal{E} E , which could span multiple edges, we define μ ( δ ) : = ∑ e ∈ E μ ( δ e ) \mu(\delta):=\sum_{e\in E}\mu(\delta_e) μ ( δ ) := ∑ e ∈ E μ ( δ e ) where δ e : = δ ∩ e ⊆ e \delta_e:=\delta\cap e\subseteq e δ e := δ ∩ e ⊆ e . Let μ ( E ) = ∑ e ∈ E μ ( e ) = ∑ e ∈ E w ( e ) ℓ ( e ) \mu(\mathcal{E})=\sum_{e\in E}\mu(e)=\sum_{e\in E}w(e)\ell(e) μ ( E ) = ∑ e ∈ E μ ( e ) = ∑ e ∈ E w ( e ) ℓ ( e ) .
For each point p ∈ E p\in\mathcal{E} p ∈ E , let B E ( p , r ) = { q : d E ( p , q ) ≤ r } B_{\mathcal{E}}(p,r)=\{q:d_{\mathcal{E}}(p,q)\le r\} B E ( p , r ) = { q : d E ( p , q ) ≤ r } to be the closed ball of radius r r r centered at p p p , and B E ∘ ( p , r ) = B E ( p , r ) ∖ { q : d E ( p , q ) = r } B^\circ_{\mathcal{E}}(p,r)=B_{\mathcal{E}}(p,r)\setminus\{q:d_{\mathcal{E}}(p,q)=r\} B E ∘ ( p , r ) = B E ( p , r ) ∖ { q : d E ( p , q ) = r } , which is an open ball of radius r r r .
We extend the vertex-weight function ω V \omega_V ω V to every point of E \mathcal{E} E by simply assigning ω V ( p ) = 0 \omega_V(p)=0 ω V ( p ) = 0 for p ∉ E ∖ V p\notin\mathcal{E}\setminus V p ∈ / E ∖ V . Thus, for any connected subset δ ⊆ E \delta\subseteq\mathcal{E} δ ⊆ E , ω V ( δ ) = ∑ v ∈ V ( G ) ω V ( v ) 1 ( V ( G ) ∩ δ ) \omega_V(\delta)=\sum_{v\in V(G)}\omega_V(v)\mathbb{1}(V(G)\cap\delta) ω V ( δ ) = ∑ v ∈ V ( G ) ω V ( v ) 1 ( V ( G ) ∩ δ ) . Finally, we define the unified measure ζ \zeta ζ :
ζ ( δ ) = μ ( δ ) μ ( E ) + ω V ( δ ) ω V ( E ) ∀ connected subset δ ⊆ E (27) \zeta(\delta)=\frac{\mu(\delta)}{\mu(\mathcal{E})}+\frac{\omega_V(\delta)}{\omega_V(\mathcal{E})}
\qquad\forall\ \text{connected subset }\delta\subseteq\mathcal{E} \tag*{(27)} ζ ( δ ) = μ ( E ) μ ( δ ) + ω V ( E ) ω V ( δ ) ∀ connected subset δ ⊆ E (27)
Observation 1. ζ ( E ) = 2 \zeta(\mathcal{E}) = 2 ζ ( E ) = 2 .
The proof outline. The rest of the proof goes roughly as follows. First, we construct a set Z + Z^{+} Z + of size O ( k 2 ) O(k^{2}) O ( k 2 ) that hits a certain set of balls B \mathcal{B} B using Theorem 4; we clarify the role of B \mathcal{B} B shortly. Then we construct a shortest path F Z + F_{Z^{+}} F Z + forest rooted at Z + Z^{+} Z + , where ties are broken consistently. Applying Lemma 7, we obtain a set P \mathcal{P} P of O ( Z + ) = O ( k ) O(\sqrt{Z^{+}})=O(k) O ( Z + ) = O ( k ) of paths rooted at O ( k ) O(k) O ( k ) vertices in Z + Z^{+} Z + . Let Z Z Z be the roots of these paths; they will be the centers of the clusters in our final cut C \mathcal{C} C . The balanced property of the rooted path separator implies that C \mathcal{C} C is also balanced. However, we need to ensure that the set of edges cut by C \mathcal{C} C has low total weighted detour. This is where we need to design a set of balls B \mathcal{B} B such that the total μ \mu μ -measure of paths in the separator P \mathcal{P} P is only O ( 1 / k ) μ ( E ) O(1/k)\mu(\mathcal{E}) O ( 1/ k ) μ ( E ) . Each cluster C C C in our final cut C \mathcal{C} C is actually formed by taking each path P i ∈ P P_i\in\mathcal{P} P i ∈ P and some vertices near P i P_i P i . The design of B \mathcal{B} B and the construction of a cluster from each path in P \mathcal{P} P are the key technical ideas in constructing C \mathcal{C} C .
Following the outline above, we now construct the set Z + Z^{+} Z + . For every vertex v ∈ V ( G ) v\in V(G) v ∈ V ( G ) , let:
ρ ( v ) = min { r ≥ 0 : ζ ( B E ( v , r ) ) ≥ 1 / k 2 } (28) \rho(v)=\min\{r\ge0:\zeta(B_{\mathcal{E}}(v,r))\ge1/k^{2}\} \tag*{(28)} ρ ( v ) = min { r ≥ 0 : ζ ( B E ( v , r )) ≥ 1/ k 2 } (28)
to be the minimum radius such that the closed ball B E ( v , r ) B_{\mathcal{E}}(v,r) B E ( v , r ) centered at v v v has ζ \zeta ζ -measure at least 1 / k 2 1/k^{2} 1/ k 2 . Then for every v ∈ V ( G ) v\in V(G) v ∈ V ( G ) :
ζ ( B E ( v , ρ ( v ) ) ) ≥ 1 / k 2 while ζ ( B E ∘ ( v , ρ ( v ) ) ) ≤ 1 / k 2 (29) \zeta(B_{\mathcal{E}}(v,\rho(v)))\ge1/k^{2}\qquad\text{while}\qquad\zeta(B_{\mathcal{E}}^{\circ}(v,\rho(v)))\le1/k^{2} \tag*{(29)} ζ ( B E ( v , ρ ( v ))) ≥ 1/ k 2 while ζ ( B E ∘ ( v , ρ ( v ))) ≤ 1/ k 2 (29)
Lemma 8. One can construct a set Z + ⊆ V Z^{+}\subseteq V Z + ⊆ V of O ( k 2 ) O(k^{2}) O ( k 2 ) vertices in polynomial time such that
d G ( v , Z + ) ≤ ρ ( v ) ∀ v ∈ V (30) d_G(v,Z^{+})\le\rho(v)\qquad\forall v\in V \tag*{(30)} d G ( v , Z + ) ≤ ρ ( v ) ∀ v ∈ V (30) Furthermore, B ⊆ Z + \mathcal{B}\subseteq Z^{+} B ⊆ Z + .
Proof. Let B = { B E ( v , ρ ( v ) ) ∩ V ( G ) : v ∈ V ( G ) } \mathcal{B}=\{B_{\mathcal{E}}(v,\rho(v))\cap V(G):v\in V(G)\} B = { B E ( v , ρ ( v )) ∩ V ( G ) : v ∈ V ( G )} . Note that B E ( v , ρ ( v ) ) ∩ V ( G ) = B G ( v , r v ) B_{\mathcal{E}}(v,\rho(v))\cap V(G)=B_G(v,r_v) B E ( v , ρ ( v )) ∩ V ( G ) = B G ( v , r v ) for some radius r v ≤ ρ ( v ) r_v\le\rho(v) r v ≤ ρ ( v ) . Next we argue that any set of vertex-disjoint balls of B \mathcal{B} B has size at most 6 k 2 6k^{2} 6 k 2 . Let I \mathcal{I} I be such a set and I I I be the set of centers of balls in I \mathcal{I} I . We note that for two vertices u ≠ v ∈ I u\ne v\in I u = v ∈ I , it is possible that B E ( v , ρ ( v ) ) ∩ B E ( u , ρ ( u ) ) ≠ ∅ B_{\mathcal{E}}(v,\rho(v))\cap B_{\mathcal{E}}(u,\rho(u))\ne\varnothing B E ( v , ρ ( v )) ∩ B E ( u , ρ ( u )) = ∅ , while B G ( v , r v ) ∩ B G ( u , r u ) = ∅ B_G(v,r_v)\cap B_G(u,r_u)=\varnothing B G ( v , r v ) ∩ B G ( u , r u ) = ∅ . However, this case only happens when there exists an edge ( x , y ) (x,y) ( x , y ) such that two of its endpoints are in B E ( v , ρ ( v ) ) B_{\mathcal{E}}(v,\rho(v)) B E ( v , ρ ( v )) and B E ( v , ρ ( v ) ) B_{\mathcal{E}}(v,\rho(v)) B E ( v , ρ ( v )) , respectively, while the points internal to ( x , y ) (x,y) ( x , y ) are shared by both balls. Since balls in I \mathcal{I} I are vertex-disjoint, we have:
∑ v ∈ I ζ ( B E ( v , ρ ( v ) ) ) ≤ 2 ζ ( E ) ≤ 4 (31) \sum_{v\in I}\zeta(B_{\mathcal{E}}(v,\rho(v)))\le2\zeta(\mathcal{E})\le4 \tag*{(31)} v ∈ I ∑ ζ ( B E ( v , ρ ( v ))) ≤ 2 ζ ( E ) ≤ 4 (31)
by Observation 1. However, since ζ ( B E ( v , ρ ( v ) ) ) ≥ 1 / k 2 \zeta(B_{\mathcal{E}}(v,\rho(v)))\ge1/k^{2} ζ ( B E ( v , ρ ( v ))) ≥ 1/ k 2 by Equation (29) , it must be that ∣ I ∣ ≤ 4 k 2 |I|\le4k^{2} ∣ I ∣ ≤ 4 k 2 .
By Theorem 4, we can construct in polynomial time a set Z + ⊆ V ( G ) Z^{+}\subseteq V(G) Z + ⊆ V ( G ) of size O ( k 2 ) O(k^{2}) O ( k 2 ) such that Z + ∩ B E ( v , ρ ( v ) ) ≠ ∅ Z^{+}\cap B_{\mathcal{E}}(v,\rho(v))\ne\varnothing Z + ∩ B E ( v , ρ ( v )) = ∅ for every v ∈ V v\in V v ∈ V . This means d G ( v , Z + ) ≤ ρ ( v ) d_G(v,Z^{+})\le\rho(v) d G ( v , Z + ) ≤ ρ ( v ) as claimed.
Since ∣ B ∣ ≤ k 2 |\mathcal{B}|\le k^{2} ∣ B ∣ ≤ k 2 , we can simply add B \mathcal{B} B to Z + Z^{+} Z + ; the size of Z + Z^{+} Z + remains O ( k 2 ) O(k^{2}) O ( k 2 ) .
Next we construct a balanced rooted-path separator. Let Z + Z^{+} Z + be the set of vertices in Lemma 8. Let F Z + F_{Z^{+}} F Z + be the shortest path forest rooted at Z + Z^{+} Z + where each vertex v v v is in the shortest path tree of the nearest vertex in Z + Z^{+} Z + ; ties are broken consistently. By Lemma 7, we can construct a balanced rooted-path separator P = { P 1 , P 2 , … , P O ( k ) } \mathcal{P}=\{P_1,P_2,\ldots,P_{O(k)}\} P = { P 1 , P 2 , … , P O ( k ) } containing O ( ∣ Z + ∣ ) = O ( k ) O(\sqrt{|Z^{+}|})=O(k) O ( ∣ Z + ∣ ) = O ( k ) shortest paths such that each connected component K ∈ G ∖ P K\in G\setminus\mathcal{P} K ∈ G ∖ P has total vertex weight ω V ( V ( K ) ) ≤ ω V ( V ) / 8 ≤ 1 / 4 \omega_V(V(K))\le\omega_V(V)/8\le1/4 ω V ( V ( K )) ≤ ω V ( V ) /8 ≤ 1/4 . Let Z Z Z be the set of roots of the paths in P \mathcal{P} P .
Next, we construct a balanced cut C \mathcal{C} C containing clusters centered at Z Z Z . Indeed, for each path P i ∈ P P_i\in\mathcal{P} P i ∈ P , let z i z_i z i be its root; the corresponding cluster C i ∈ C C_i\in\mathcal{C} C i ∈ C contains P i P_i P i and vertices close to P i P_i P i with respect to a normalized distance function ϕ \phi ϕ defined as follows.
Let P ∪ = ⋃ P i ∈ P P i P^{\cup}=\bigcup_{P_i\in\mathcal{P}}P_i P ∪ = ⋃ P i ∈ P P i , viewed as a subset of E \mathcal{E} E . For every point x ∈ E x\in\mathcal{E} x ∈ E , we define three functions:
r ( x ) = d E ( x , Z + ) s ( x ) = d E ( x , P ∪ ) ϕ ( x ) = { s ( x ) / r ( x ) if r ( x ) ≠ 0 + ∞ otherwise (32) \begin{aligned}
r(x)&=d_{\mathcal{E}}(x,Z^{+}) & s(x)&=d_{\mathcal{E}}(x,P^{\cup}) & \phi(x)&=
\begin{cases}
s(x)/r(x) & \text{if }r(x)\ne0\\
+\infty& \text{otherwise}
\end{cases} \tag*{(32)}
\end{aligned} r ( x ) = d E ( x , Z + ) s ( x ) = d E ( x , P ∪ ) ϕ ( x ) = { s ( x ) / r ( x ) + ∞ if r ( x ) = 0 otherwise (32)
Basically, ϕ ( x ) \phi(x) ϕ ( x ) is the distance from x x x to the nearest path in P \mathcal{P} P , normalized by its distance to the nearest center in Z + Z^+ Z + . A key property of ϕ ( x ) \phi(x) ϕ ( x ) is that it behaves like a distance function (from x x x to the closest path) whenever r ( x ) > s ( x ) r(x)>s(x) r ( x ) > s ( x ) , as shown in the following lemma.
Lemma 9. Let x x x be a point in E \mathcal{E} E such that r ( x ) > s ( x ) r(x)>s(x) r ( x ) > s ( x ) . Let Q Q Q be the shortest path (w.r.t distance d E d_{\mathcal{E}} d E ) in E \mathcal{E} E from x x x to its nearest point in P \mathcal{P} P . For any y ∈ Q ∖ x y\in Q\setminus x y ∈ Q ∖ x :
ϕ ( y ) < ϕ ( x ) (33) \phi(y)<\phi(x) \tag*{(33)} ϕ ( y ) < ϕ ( x ) (33)
Proof: Observe that s ( y ) = s ( x ) − d E ( x , y ) s(y)=s(x)-d_{\mathcal{E}}(x,y) s ( y ) = s ( x ) − d E ( x , y ) and by the triangle inequality, r ( y ) ≥ r ( x ) − d E ( x , y ) r(y)\ge r(x)-d_{\mathcal{E}}(x,y) r ( y ) ≥ r ( x ) − d E ( x , y ) . Thus:
ϕ ( y ) = s ( y ) r ( y ) ≤ s ( x ) − d E ( x , y ) r ( x ) − d E ( x , y ) ≤ s ( x ) < r ( x ) s ( x ) r ( x ) = ϕ ( x ) \phi(y)=\frac{s(y)}{r(y)}\le\frac{s(x)-d_{\mathcal{E}}(x,y)}{r(x)-d_{\mathcal{E}}(x,y)}
\underset{s(x)<r(x)}{\le}\frac{s(x)}{r(x)}=\phi(x) ϕ ( y ) = r ( y ) s ( y ) ≤ r ( x ) − d E ( x , y ) s ( x ) − d E ( x , y ) s ( x ) < r ( x ) ≤ r ( x ) s ( x ) = ϕ ( x )
as claimed. □
Recall that every point x ∈ P ∖ Z x\in\mathcal{P}\setminus Z x ∈ P ∖ Z has ϕ ( x ) = 0 \phi(x)=0 ϕ ( x ) = 0 . Now we show that a small neighborhood w.r.t ϕ \phi ϕ has small total edge measure. We need this property for our final goal, which shows that cutting out a small neighborhood only incurs a low weighted total detour. The proof uses the fact that d G ( v , Z + ) ≤ ρ ( v ) d_G(v,Z^+)\le\rho(v) d G ( v , Z + ) ≤ ρ ( v ) in Lemma 8.
Lemma 10. Let U = { x ∈ E : ϕ ( x ) ≤ 1 / 4 } U=\{x\in\mathcal{E}:\phi(x)\le1/4\} U = { x ∈ E : ϕ ( x ) ≤ 1/4 } . Then ζ ( U ) = O ( 1 k ) \zeta(U)=O\left(\frac{1}{k}\right) ζ ( U ) = O ( k 1 ) and μ ( U ) = O ( 1 k ) μ ( E ) \mu(U)=O\left(\frac{1}{k}\right)\mu(\mathcal{E}) μ ( U ) = O ( k 1 ) μ ( E ) .
Proof: For every path P i ∈ P P_i\in\mathcal{P} P i ∈ P where i ∈ [ ∣ P ∣ ] i\in[|\mathcal{P}|] i ∈ [ ∣ P ∣ ] , let v i v_i v i be the non-root endpoint of P i P_i P i . Recall that P i P_i P i is a shortest path rooted at z i z_i z i , and z i z_i z i is closest to v i v_i v i among all vertices in Z + Z^+ Z + . Thus, by Lemma 8, we have:
ℓ ( P i ) = d G ( v i , Z + ) ≤ ρ ( v i ) (34) \ell(P_i)=d_G(v_i,Z^+)\le\rho(v_i) \tag*{(34)} ℓ ( P i ) = d G ( v i , Z + ) ≤ ρ ( v i ) (34) For every x ∈ U x\in U x ∈ U , let P i P_i P i be the path in P \mathcal{P} P closest to x x x ; that is, s ( x ) = d E ( x , P i ) s(x)=d_{\mathcal{E}}(x,P_i) s ( x ) = d E ( x , P i ) . We claim that:
d E ( v i , x ) < ρ ( v i ) . (35) d_{\mathcal{E}}(v_i,x)<\rho(v_i). \tag*{(35)} d E ( v i , x ) < ρ ( v i ) . (35) To see this, let y ∈ P i y\in P_i y ∈ P i be the closest point to x x x , and t = ℓ ( P i [ v i , y ] ) t=\ell(P_i[v_i,y]) t = ℓ ( P i [ v i , y ]) . Then by the triangle inequality, we have:
d E ( v i , x ) ≤ d E ( x , y ) + ℓ ( P i [ v i , y ] ) = s ( x ) + t ≤ r ( x ) / 4 + t (36) d_{\mathcal{E}}(v_i,x)\le d_{\mathcal{E}}(x,y)+\ell(P_i[v_i,y])=s(x)+t\le r(x)/4+t \tag*{(36)} d E ( v i , x ) ≤ d E ( x , y ) + ℓ ( P i [ v i , y ]) = s ( x ) + t ≤ r ( x ) /4 + t (36) where the last inequality is because x ∈ U x\in U x ∈ U and hence ϕ ( x ) = s ( x ) / r ( x ) ≤ 1 / 4 \phi(x)=s(x)/r(x)\le1/4 ϕ ( x ) = s ( x ) / r ( x ) ≤ 1/4 . On the other hand, by the definition of r ( x ) r(x) r ( x ) and the triangle inequality:
r ( x ) ≤ d E ( x , z i ) ≤ d E ( x , y ) + ℓ ( P i [ z i , y ] ) = s ( x ) + ℓ ( P i ) − t ≤ r ( x ) / 4 + ρ ( v i ) − t \begin{aligned}
r(x)&\le d_{\mathcal{E}}(x,z_i)\le d_{\mathcal{E}}(x,y)+\ell(P_i[z_i,y])\\
&=s(x)+\ell(P_i)-t\\
&\le r(x)/4+\rho(v_i)-t
\end{aligned} r ( x ) ≤ d E ( x , z i ) ≤ d E ( x , y ) + ℓ ( P i [ z i , y ]) = s ( x ) + ℓ ( P i ) − t ≤ r ( x ) /4 + ρ ( v i ) − t (by Equation (34) and x ∈ U x\in U x ∈ U ) giving 3 r ( x ) / 4 + t ≤ ρ ( v i ) 3r(x)/4+t\le\rho(v_i) 3 r ( x ) /4 + t ≤ ρ ( v i ) . By Equation (36) , we have:
d E ( v i , x ) < 3 r ( x ) / 4 + t ≤ ρ ( v i ) d_{\mathcal{E}}(v_i,x)<3r(x)/4+t\le\rho(v_i) d E ( v i , x ) < 3 r ( x ) /4 + t ≤ ρ ( v i ) giving Equation (35) , as claimed.
Equation (35) implies that U U U is completely covered by open balls { B ∘ ( p i , ρ ( p i ) ) } i ∈ [ ∣ P ∣ ] \{B^{\circ}(p_i,\rho(p_i))\}_{i\in[|\mathcal{P}|]} { B ∘ ( p i , ρ ( p i )) } i ∈ [ ∣ P ∣ ] . It follows that:
ζ ( U ) ≤ ∑ i ∈ [ ∣ P ∣ ] ζ ( B ∘ ( p i , ρ ( p i ) ) ) < ∣ P ∣ / k 2 (by xref‘Equation (29) ) = O ( k ) / k 2 = O ( 1 k ) (37) \begin{aligned}
\zeta(U)&\le\sum_{i\in[|\mathcal{P}|]}\zeta(B^{\circ}(p_i,\rho(p_i)))\\
&<|\mathcal{P}|/k^2\qquad\text{(by {xref}`Equation (29)})\\
&=O(k)/k^2=O\left(\frac{1}{k}\right) \tag*{(37)}
\end{aligned} ζ ( U ) ≤ i ∈ [ ∣ P ∣ ] ∑ ζ ( B ∘ ( p i , ρ ( p i ))) < ∣ P ∣/ k 2 (by xref ‘Equation (29) ) = O ( k ) / k 2 = O ( k 1 ) (37) By the definition of ζ \zeta ζ in Equation (27) , we have:
μ ( U ) μ ( E ) ≤ ζ ( U ) = O ( 1 k ) \frac{\mu(U)}{\mu(\mathcal{E})}\le\zeta(U)=O\left(\frac{1}{k}\right) μ ( E ) μ ( U ) ≤ ζ ( U ) = O ( k 1 ) giving μ ( U ) = O ( 1 k ) μ ( E ) \mu(U)=O\left(\frac{1}{k}\right)\mu(\mathcal{E}) μ ( U ) = O ( k 1 ) μ ( E ) . □
For every τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] , we denote A τ : = { v ∈ V : ϕ ( v ) ≤ τ } A_\tau:= \{v \in V : \phi(v) \le\tau\} A τ := { v ∈ V : ϕ ( v ) ≤ τ } . For each path P i ∈ P P_i \in\mathcal{P} P i ∈ P , let:
C i τ = { v ∈ A τ : P i is closest to v among paths in P } ∪ { z i } (38) C_i^\tau= \{v \in A_\tau: P_i \text{ is closest to } v \text{ among paths in } \mathcal{P}\} \cup\{z_i\} \tag*{(38)} C i τ = { v ∈ A τ : P i is closest to v among paths in P } ∪ { z i } (38)
where ties are broken consistently. The root z i z_i z i of P i P_i P i is designated as the center of C i τ C_i^\tau C i τ . It is possible that some paths in P \mathcal{P} P share the same root, and in this case, we merge all of the corresponding clusters into a single one. Let C τ = { C i τ } \mathcal{C}_\tau= \{C_i^\tau\} C τ = { C i τ } be the resulting set of clusters. In the following lemma, we show that C τ \mathcal{C}_\tau C τ is a B B B -lanced cut for every τ \tau τ . Then, to complete the proof of Lemma 6, we show that a threshold τ \tau τ chosen uniformly at random in [ 1 / 8 , 1 / 4 ] [1/8,1/4] [ 1/8 , 1/4 ] has low weighted total detour.
Lemma 11. For every τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] , if k k k is sufficiently larger than 1, then C τ \mathcal{C}_\tau C τ is B B B -balanced and ∣ C τ ∣ = O ( k ) |\mathcal{C}_\tau| = O(k) ∣ C τ ∣ = O ( k ) .
Proof: Recall that Z Z Z is the set of roots of paths in P \mathcal{P} P , which are also centers of clusters in C i \mathcal{C}_i C i . Observe that V ( C τ ) = A τ ∪ Z V(\mathcal{C}_\tau) = A_\tau\cup Z V ( C τ ) = A τ ∪ Z . Furthermore, A τ ∩ Z + = ∅ A_\tau\cap Z^+ = \varnothing A τ ∩ Z + = ∅ since every vertex z ∈ Z + z \in Z^+ z ∈ Z + has ϕ ( z ) = + ∞ \phi(z) = +\infty ϕ ( z ) = + ∞ by definition. Since B ⊆ Z + B \subseteq Z^+ B ⊆ Z + by Lemma 8, A τ ∩ B = ∅ A_\tau\cap B = \varnothing A τ ∩ B = ∅ , so C τ \mathcal{C}_\tau C τ is B B B -nearly disjoint.
For every connected component O O O of G ∖ C τ G \setminus\mathcal{C}_\tau G ∖ C τ , since P \mathcal{P} P is balanced w.r.t ω V \omega_V ω V , by Lemma 7:
∑ v ∈ O ω V ( v ) ≤ ω V ( V ) / 8 ≤ 1 / 4 (39) \sum_{v \in O} \omega_V(v) \le\omega_V(V)/8 \le1/4 \tag*{(39)} v ∈ O ∑ ω V ( v ) ≤ ω V ( V ) /8 ≤ 1/4 (39)
since ω V ( V ) ∈ { 1 , 2 } \omega_V(V) \in\{1,2\} ω V ( V ) ∈ { 1 , 2 } . Thus, it follows that:
∣ V ( O ) ∣ ≤ n ( ∑ v ∈ O ω V ( v ) ) ≤ n / 4 |V(O)| \le n\left(\sum_{v \in O}\omega_V(v)\right) \le n/4 ∣ V ( O ) ∣ ≤ n ( v ∈ O ∑ ω V ( v ) ) ≤ n /4
∣ V ( O ) ∩ B ∣ ≤ ∣ B ∣ ( ∑ v ∈ O ω V ( v ) ) ≤ ∣ B ∣ / 4 |V(O) \cap B| \le|B|\left(\sum_{v \in O}\omega_V(v)\right) \le|B|/4 ∣ V ( O ) ∩ B ∣ ≤ ∣ B ∣ ( v ∈ O ∑ ω V ( v ) ) ≤ ∣ B ∣/4
Finally, we show that ∣ V ( C τ ) ∖ Z ∣ = ∣ A τ ∣ ≤ n / 2 |V(\mathcal{C}_\tau) \setminus Z| = |A_\tau| \le n/2 ∣ V ( C τ ) ∖ Z ∣ = ∣ A τ ∣ ≤ n /2 . Observe that ζ ( A τ ) ≤ ζ ( U ) \zeta(A_\tau) \le\zeta(U) ζ ( A τ ) ≤ ζ ( U ) and by Lemma 10 , ζ ( A τ ) = O ( 1 / k ) \zeta(A_\tau) = O(1/k) ζ ( A τ ) = O ( 1/ k ) , giving:
∣ A τ ∣ ≤ n ( ω V ( A τ ) ) ≤ n ζ ( A τ ) ω V ( V ) ≤ 2 n ⋅ O ( 1 k ) ≤ n / 4 (40) |A_\tau| \le n(\omega_V(A_\tau)) \le n\zeta(A_\tau)\omega_V(V) \le2n \cdot O\left(\frac{1}{k}\right) \le n/4 \tag*{(40)} ∣ A τ ∣ ≤ n ( ω V ( A τ )) ≤ n ζ ( A τ ) ω V ( V ) ≤ 2 n ⋅ O ( k 1 ) ≤ n /4 (40)
as long as k k k is sufficiently larger than 1. Thus, C τ \mathcal{C}_\tau C τ is a balanced B B B -cut. The size ∣ C τ ∣ = ∣ Z ∣ ≤ ∣ P ∣ = O ( k ) |\mathcal{C}_\tau| = |Z| \le|\mathcal{P}| = O(k) ∣ C τ ∣ = ∣ Z ∣ ≤ ∣ P ∣ = O ( k ) , as claimed. □
Finally, for the proof of Lemma 6, we only need to show that choosing τ \tau τ uniformly at random in [ 1 / 8 , 1 / 4 ] [1/8,1/4] [ 1/8 , 1/4 ] gives C τ \mathcal{C}_\tau C τ that has low weighted total detour.
Proof (Proof of Lemma 6): For every τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] , let ρ τ : = ρ C τ \rho_\tau:= \rho_{\mathcal{C}_\tau} ρ τ := ρ C τ be the routing scheme induced by C τ \mathcal{C}_\tau C τ . For every edge e = ( u , v ) e = (u,v) e = ( u , v ) cut by C τ \mathcal{C}_\tau C τ , if one of its endpoints, say u ∈ Z u \in Z u ∈ Z , then the detour is ℓ ( ρ τ ( e ) ) − ℓ ( e ) = 0 \ell(\rho_\tau(e))-\ell(e)=0 ℓ ( ρ τ ( e )) − ℓ ( e ) = 0 . Thus, we only need to consider the case u ∈ A τ u \in A_\tau u ∈ A τ . In this case, let x τ x_\tau x τ be the point in e e e where ϕ ( x τ ) = τ \phi(x_\tau)=\tau ϕ ( x τ ) = τ .
Let C i τ ∈ C τ C_i^\tau\in\mathcal{C}_\tau C i τ ∈ C τ be the cluster containing u u u for some i ∈ [ ∣ P ∣ ] i \in[|\mathcal{P}|] i ∈ [ ∣ P ∣ ] , and a u a_u a u be the vertex closest to u u u in P i P_i P i . Note that ρ τ \rho_\tau ρ τ routes u u u to z i z_i z i , the root of P i P_i P i (via a shortest path in G [ V ( C i τ ) ] G[V(C_i^\tau)] G [ V ( C i τ )] ), and then z i z_i z i to v v v (via a shortest path in G G G ). By the triangle inequality:
ℓ ( ρ τ ( e ) ) − ℓ ( e ) ≤ d G [ V ( C i τ ) ] ( u , z i ) + d G ( z i , v ) − ℓ ( e ) ≤ d G [ V ( C i τ ) ] ( u , z i ) + ( ℓ ( e ) + d G ( u , z i ) ) − ℓ ( e ) (triangle inequality) ≤ 2 d G [ V ( C i τ ) ] ( u , z i ) ≤ 2 ( d G [ V ( C i τ ) ] [ u , a u ] + ℓ ( P i [ a u , z i ] ) ) = 2 ( s ( u ) + ℓ ( P i [ a u , z i ] ) ) ≤ 2 s ( x τ ) + 2 d G ( a u , z i ) (since P i is a shortest path) (41) \begin{aligned}
\ell(\rho_\tau(e))-\ell(e)
&\le d_{G[V(C_i^\tau)]}(u,z_i)+d_G(z_i,v)-\ell(e)\\
&\le d_{G[V(C_i^\tau)]}(u,z_i)+(\ell(e)+d_G(u,z_i))-\ell(e) \qquad\text{(triangle inequality)}\\
&\le2d_{G[V(C_i^\tau)]}(u,z_i)\\
&\le2\left(d_{G[V(C_i^\tau)]}[u,a_u]+\ell(P_i[a_u,z_i])\right)\\
&=2\left(s(u)+\ell(P_i[a_u,z_i])\right)\\
&\le2s(x_\tau)+2d_G(a_u,z_i) \qquad\text{(since }P_i\text{ is a shortest path)} \tag*{(41)}
\end{aligned} ℓ ( ρ τ ( e )) − ℓ ( e ) ≤ d G [ V ( C i τ )] ( u , z i ) + d G ( z i , v ) − ℓ ( e ) ≤ d G [ V ( C i τ )] ( u , z i ) + ( ℓ ( e ) + d G ( u , z i )) − ℓ ( e ) (triangle inequality) ≤ 2 d G [ V ( C i τ )] ( u , z i ) ≤ 2 ( d G [ V ( C i τ )] [ u , a u ] + ℓ ( P i [ a u , z i ]) ) = 2 ( s ( u ) + ℓ ( P i [ a u , z i ]) ) ≤ 2 s ( x τ ) + 2 d G ( a u , z i ) (since P i is a shortest path) (41)
Next, we observe by the triangle inequality that d G ( a u , z i ) ≤ s ( x τ ) + r ( x τ ) d_G(a_u,z_i) \le s(x_\tau) + r(x_\tau) d G ( a u , z i ) ≤ s ( x τ ) + r ( x τ ) . This is because s ( x τ ) + r ( x τ ) s(x_\tau) + r(x_\tau) s ( x τ ) + r ( x τ ) is the length of the path from a u a_u a u to x τ x_\tau x τ and then from x τ x_\tau x τ to the nearest center in Z + Z^+ Z + by definition of the function r ( x ) r(x) r ( x ) in Equation (32) . Plugging this bound to Equation (41) , we get:
ℓ ( ρ τ ( e ) ) − ℓ ( e ) ≤ 2 s ( x τ ) + 2 ( r ( x τ ) + s ( x τ ) ) ≤ 3 r ( x τ ) (42) \ell(\rho_\tau(e))-\ell(e) \le2s(x_\tau)+2(r(x_\tau)+s(x_\tau)) \le3r(x_\tau) \tag*{(42)} ℓ ( ρ τ ( e )) − ℓ ( e ) ≤ 2 s ( x τ ) + 2 ( r ( x τ ) + s ( x τ )) ≤ 3 r ( x τ ) (42)
since s ( x τ ) ≤ r ( x τ ) / 4 s(x_\tau) \le r(x_\tau)/4 s ( x τ ) ≤ r ( x τ ) /4 as ϕ ( x τ ) ≤ τ ≤ 1 / 4 \phi(x_\tau) \le\tau\le1/4 ϕ ( x τ ) ≤ τ ≤ 1/4 .
The expected error induced by e e e by choosing random τ \tau τ is then:
E τ [ ρ τ ( e ) − e ] ≤ 1 1 / 4 − 1 / 8 ∫ 1 / 8 1 / 4 3 r ( x τ ) d τ = 24 ∫ x τ ∈ e ∩ { y : 1 / 8 ≤ ϕ ( y ) ≤ 1 / 4 } r ( x τ ) d ϕ ( x τ ) (change of variable τ = ϕ ( x τ ) ) = 24 ∫ x ∈ e ∩ { y : 1 / 8 ≤ ϕ ( y ) ≤ 1 / 4 } r ( x ) ϕ ′ ( x ) d x (another change of variable x = x τ ) (43) \begin{aligned}
\mathbb{E}_\tau[\rho_\tau(e)-e] \le\frac{1}{1/4-1/8}\int_{1/8}^{1/4}3r(x_\tau)d\tau\\
&=24\int_{x_\tau\in e\cap\{y:1/8\le\phi(y)\le1/4\}}r(x_\tau)d\phi(x_\tau)\qquad\text{(change of variable }\tau=\phi(x_\tau)\text{)} \\
&=24\int_{x\in e\cap\{y:1/8\le\phi(y)\le1/4\}}r(x)\phi'(x)dx\qquad\text{(another change of variable }x=x_\tau\text{)} \tag*{(43)}
\end{aligned} E τ [ ρ τ ( e ) − e ] ≤ 1/4 − 1/8 1 ∫ 1/8 1/4 3 r ( x τ ) d τ = 24 ∫ x τ ∈ e ∩ { y : 1/8 ≤ ϕ ( y ) ≤ 1/4 } r ( x τ ) d ϕ ( x τ ) (change of variable τ = ϕ ( x τ ) ) = 24 ∫ x ∈ e ∩ { y : 1/8 ≤ ϕ ( y ) ≤ 1/4 } r ( x ) ϕ ′ ( x ) d x (another change of variable x = x τ ) (43)
Observe that r r r and s s s are piecewise linear on the edges of G G G with Lipschitz constant 1, due to the triangle inequality. Specifically, for any two points x , y x,y x , y on the same edge e e e , if we denote ∥ x − y ∥ e \lVert x-y\rVert_e ∥ x − y ∥ e to be the distance between x x x and y y y along the edge e e e then:
∣ s ( x ) − s ( y ) ∣ ≤ d e ( x , y ) ≤ ∥ x − y ∥ e ∣ r ( x ) − r ( y ) ∣ ≤ d e ( x , y ) ≤ ∥ x − y ∥ e \begin{aligned}
|s(x)-s(y)| &\le d_e(x,y)\le\lVert x-y\rVert_e\\
|r(x)-r(y)| &\le d_e(x,y)\le\lVert x-y\rVert_e
\end{aligned} ∣ s ( x ) − s ( y ) ∣ ∣ r ( x ) − r ( y ) ∣ ≤ d e ( x , y ) ≤ ∥ x − y ∥ e ≤ d e ( x , y ) ≤ ∥ x − y ∥ e
Thus, it follows that, almost everywhere on the edge e e e :
∣ ϕ ′ ( x ) ∣ = ∣ ( s ( x ) r ( x ) ) ′ ∣ = ∣ s ′ ( x ) r ( x ) − r ′ ( x ) s ( x ) ( r ( x ) ) 2 ∣ ≤ r ( x ) + s ( x ) ( r ( x ) ) 2 (since r and s have Lipschitz constant 1) ≤ 1 + ϕ ( x ) r ( x ) (44) \begin{aligned}
|\phi'(x)|&=\left|\left(\frac{s(x)}{r(x)}\right)'\right|
=\left|\frac{s'(x)r(x)-r'(x)s(x)}{(r(x))^2}\right|\\
&\le\frac{r(x)+s(x)}{(r(x))^2}
\qquad\text{(since }r\text{ and }s\text{ have Lipschitz constant 1)}\\
&\le\frac{1+\phi(x)}{r(x)} \tag*{(44)}
\end{aligned} ∣ ϕ ′ ( x ) ∣ = ( r ( x ) s ( x ) ) ′ = ( r ( x ) ) 2 s ′ ( x ) r ( x ) − r ′ ( x ) s ( x ) ≤ ( r ( x ) ) 2 r ( x ) + s ( x ) (since r and s have Lipschitz constant 1) ≤ r ( x ) 1 + ϕ ( x ) (44)
Plugging this bound to Equation (43) , we get:
E τ [ ρ τ ( e ) − e ] ≤ 24 ∫ x τ ∈ e ∩ { y : 1 / 8 ≤ ϕ ( y ) ≤ 1 / 4 } ( 1 + ϕ ( x ) ) d x = 30 ℓ ( e ∩ U ) \mathbb{E}_\tau[\rho_\tau(e)-e]\le24\int_{x_\tau\in e\cap\{y:1/8\le\phi(y)\le1/4\}}(1+\phi(x))dx=30\ell(e\cap U) E τ [ ρ τ ( e ) − e ] ≤ 24 ∫ x τ ∈ e ∩ { y : 1/8 ≤ ϕ ( y ) ≤ 1/4 } ( 1 + ϕ ( x )) d x = 30 ℓ ( e ∩ U )
Summing over all the edges, weighted by w ( e ) w(e) w ( e ) , we get:
E τ [ ∑ e w ( e ) ( ρ τ ( e ) − e ) ] = 30 ∑ e ∈ E w ( e ) ℓ ( e ∩ U ) ≤ 30 μ ( U ) = O ( 1 ) k μ ( E ) = O ( 1 ) k ∑ e w ( e ) ℓ ( e ) (by xref‘Lemma 10‘) \begin{aligned}
\mathbb{E}_\tau\left[\sum_e w(e)(\rho_\tau(e)-e)\right]
=30\sum_{e\in E}w(e)\ell(e\cap U)
\le30\mu(U)=\frac{O(1)}{k}\mu(E) \\
&=\frac{O(1)}{k}\sum_e w(e)\ell(e)
\qquad\text{(by {xref}`Lemma 10`)}
\end{aligned} E τ [ e ∑ w ( e ) ( ρ τ ( e ) − e ) ] = 30 e ∈ E ∑ w ( e ) ℓ ( e ∩ U ) ≤ 30 μ ( U ) = k O ( 1 ) μ ( E ) = k O ( 1 ) e ∑ w ( e ) ℓ ( e ) (by xref ‘Lemma 10‘)
This means there exists a threshold τ ∈ [ 1 / 8 , 1 / 4 ] \tau\in[1/8,1/4] τ ∈ [ 1/8 , 1/4 ] such that the total detour cost is 1 k ∑ e w ( e ) ℓ ( e ) \frac{1}{k}\sum_e w(e)\ell(e) k 1 ∑ e w ( e ) ℓ ( e ) . Such a threshold can be found in polynomial time since we only need to examine τ \tau τ such that A τ A_\tau A τ contains a new vertex of V V V (compared to the previous threshold), and there are only n n n such thresholds. □
The only place in the proof of Lemma 6 that requires planarity instead of minor-freeness is the existence of the rooted path separator P \mathcal{P} P of O ( k ) O(k) O ( k ) paths from the rooted shortest-path forest F Z + F_{Z^+} F Z + , whose roots are in Z + Z^+ Z + . (The ball hitting set theorem holds for minor-free graphs.) Unfortunately, for minor-free graphs, such a rooted path separator does not exist due to apex graphs; see § 5 for a more detailed technical discussion. However, the proof of Lemma 6 allows us to relax the rooted path separator condition, as stated formally in the following corollary. This relaxation turns out to be sufficient to extend the proof to minor-free graphs.
To state the corollary, we introduce the notion of ( α , O ( s ) ) (\alpha,O(\sqrt{s})) ( α , O ( s )) -path separable graphs, where one can remove α \alpha α vertices such that the remaining graph has a rooted path balanced separator of size O ( s ) O(\sqrt{s}) O ( s ) . More precisely, we say that G G G is ( α , O ( s ) ) (\alpha,O(\sqrt{s})) ( α , O ( s )) -path separable if for any weight function ω \omega ω on the vertices of G G G , there exists a subset X ⊆ V X \subseteq V X ⊆ V of size ∣ X ∣ ≤ α |X| \le\alpha ∣ X ∣ ≤ α such that for any rooted spanning forest F F F with s s s trees of G [ V ∖ X ] G[V \setminus X] G [ V ∖ X ] , there exists a balanced (vertex-weight) separator P P P consisting of O ( s ) O(\sqrt{s}) O ( s ) rooted paths in F F F . One subtlety is that the choice of X X X could depend on the weight function ω \omega ω .
Corollary 1. Let G = ( V , E ) G=(V,E) G = ( V , E ) be an ( α , O ( s ) ) (\alpha,O(\sqrt{s})) ( α , O ( s )) -separable graph. Then Lemma 6 holds for G G G : for any parameter k k k sufficiently larger than 1 1 1 such that ∣ B ∣ ≤ k 2 |B| \le k^2 ∣ B ∣ ≤ k 2 and any weight function w : E → R ≥ 0 w:E \to\mathbb{R}_{\ge0} w : E → R ≥ 0 on the edges, we can construct a balanced B B B -cut C \mathcal{C} C such that:
∑ e w ( e ) ( ℓ ( ρ C ( e ) ) − ℓ ( e ) ) ≤ O ( 1 ) k ∑ e w ( e ) ℓ ( e ) \sum_{e} w(e)\bigl(\ell(\rho_{\mathcal{C}}(e))-\ell(e)\bigr) \le\frac{O(1)}{k}\sum_{e}w(e)\ell(e) e ∑ w ( e ) ( ℓ ( ρ C ( e )) − ℓ ( e ) ) ≤ k O ( 1 ) e ∑ w ( e ) ℓ ( e ) and ∣ C ∣ ≤ α + O ( k ) |\mathcal{C}| \le\alpha+O(k) ∣ C ∣ ≤ α + O ( k ) . Furthermore, if we can find X X X and the path separators in polynomial time, then we can also find C \mathcal{C} C in polynomial time.
Proof: First we find X X X of constant size as assumed by the corollary. Since G [ V ∖ X ] G[V \setminus X] G [ V ∖ X ] is O ( s ) O(\sqrt{s}) O ( s ) -path separable, the construction in the proof of Lemma 6 is applicable to G [ V ∖ X ] G[V \setminus X] G [ V ∖ X ] . If no connected component of G [ V ∖ X ] G[V \setminus X] G [ V ∖ X ] has weight more than ω V ( V ) / 8 \omega_V(V)/8 ω V ( V ) /8 , then we simply return the cut C \mathcal{C} C containing singleton clusters: one cluster per vertex of X X X . Otherwise, there are only O ( 1 ) O(1) O ( 1 ) components of weight more than ω V ( V ) / 8 \omega_V(V)/8 ω V ( V ) /8 ; call these large components . Then we construct a balanced ( B ∖ X ) (B \setminus X) ( B ∖ X ) -cut C Y \mathcal{C}_Y C Y of each large connected component Y Y Y in polynomial time. Let C = ⋃ Y is large component C Y \mathcal{C}=\bigcup_{Y\text{ is large component}}\mathcal{C}_Y C = ⋃ Y is large component C Y . Finally, we add X X X to C \mathcal{C} C as singleton clusters. That is, each vertex x ∈ X x \in X x ∈ X is a singleton cluster in C \mathcal{C} C . The total size of C \mathcal{C} C is α + O ( k ) \alpha+O(k) α + O ( k ) since ∣ X ∣ ≤ α |X| \le\alpha ∣ X ∣ ≤ α .
For the routing cost, a key observation is that routing an edge through a singleton cluster incurs no detour cost, which gives the total weighted detour cost bound in the corollary. □
Algorithmic Minimax
As we discussed above, Lemma 6 implies that there exists a distribution C ^ \widehat{\mathcal{C}} C of balanced cuts that have low expected routing cost for every edge via Yao’s minimax principle. However, it does not imply a polynomial-time algorithm for sampling such a balanced cut from C ^ \widehat{\mathcal{C}} C . In this section, we give such an algorithm, based on the Multiplicative Weight Update (MWU) method. In the context of metric embedding, Filtser and Le [23 ] introduced this technique to obtain a polynomial-time samplable distribution of so-called clan embeddings . Our proof closely follows theirs, except for the details of setting up the edge weight function to apply the algorithm in Lemma 6. Using the MWU method, we obtain a set C \mathcal{C} C of O ( n log n ) O(n\log n) O ( n log n ) balanced cuts, and we sample C \mathcal{C} C by picking a balanced cut from C \mathcal{C} C uniformly at random.
We define an α \alpha α -CUTORACLE , denoted by O ( G , B , { w ( e ) } e ∈ E , k ) \mathcal{O}(G,B,\{w(e)\}_{e\in E},k) O ( G , B , { w ( e ) } e ∈ E , k ) , which takes a planar graph G G G with m m m edges and boundary vertex set B B B , non-negative weights on the edges, and a parameter k k k , as input. The oracle returns a B B B -balanced cut C \mathcal{C} C with O ( k ) O(k) O ( k ) clusters such that the total detour cost is:
∑ e w ( e ) ( ℓ ( ρ C ( e ) ) − ℓ ( e ) ) ≤ α k ∑ e w ( e ) ℓ ( e ) (45) \sum_{e} w(e)\bigl(\ell(\rho_{\mathcal{C}}(e))-\ell(e)\bigr) \le\frac{\alpha}{k}\sum_{e}w(e)\ell(e) \tag*{(45)} e ∑ w ( e ) ( ℓ ( ρ C ( e )) − ℓ ( e ) ) ≤ k α e ∑ w ( e ) ℓ ( e ) (45)
By Lemma 6, we can implement O ( G , B , { w ( e ) } e ∈ E , k ) \mathcal{O}(G,B,\{w(e)\}_{e\in E},k) O ( G , B , { w ( e ) } e ∈ E , k ) in polynomial time with α = O ( 1 ) \alpha=O(1) α = O ( 1 ) .
The algorithm. In the setup of the MWU method, we have a set of experts making predictions over T T T rounds. At round t t t , each expert is given a score, and we make a O ( 1 ) O(1) O ( 1 ) prediction by aggregating the predictions from all experts using their current scores. At the end of the round, the true value is revealed, and we adjust each expert’s score based on whether the expert made a correct prediction.
In our setting, each “expert” is an edge e e e . We use two parameters, T T T and δ \delta δ , whose values will be set later in the analysis: T T T is the number of rounds, and δ \delta δ controls how each expert’s score is adjusted. In each round t ∈ [ T ] t \in[T] t ∈ [ T ] , we maintain a score s t ( e ) s_t(e) s t ( e ) for edge e e e which captures the accumulated relative detour on edge e e e . Initially we set s 1 ( e ) = 1 s_1(e)=1 s 1 ( e ) = 1 for every edge e e e . From the score { s t ( e ) } e ∈ E \{s_t(e)\}_{e\in E} { s t ( e ) } e ∈ E , we compute a distribution p t p_t p t over the edges where:
p t ( e ) = 3 4 s t ( e ) S t + 1 4 m where S t = ∑ e s t ( e ) (46) p_t(e)=\frac{3}{4}\frac{s_t(e)}{S_t}+\frac{1}{4m}\qquad\text{where }S_t=\sum_{e}s_t(e) \tag*{(46)} p t ( e ) = 4 3 S t s t ( e ) + 4 m 1 where S t = e ∑ s t ( e ) (46)
The additive term 1 4 m \frac{1}{4m} 4 m 1 prevents p t ( e ) p_t(e) p t ( e ) from being too small; this way of setting the distribution p t p_t p t is fairly standard. Then we compute a weight w t ( e ) = p t ( e ) / ℓ ( e ) w_t(e)=p_t(e)/\ell(e) w t ( e ) = p t ( e ) / ℓ ( e ) for each edge e ∈ E e\in E e ∈ E and call the α \alpha α -ORACLE O \mathcal{O} O to get a balanced cut C t C_t C t .
The relative detour cost of e e e due to the routing scheme ρ C t \rho_{C_t} ρ C t induced by C t C_t C t is:
Δ t ( e ) = ℓ ( ρ C t ( e ) ) − ℓ ( e ) ℓ ( e ) . (47) \Delta_t(e)=\frac{\ell(\rho_{C_t}(e))-\ell(e)}{\ell(e)}. \tag*{(47)} Δ t ( e ) = ℓ ( e ) ℓ ( ρ C t ( e )) − ℓ ( e ) . (47)
Ideally, we want this relative detour cost to be small. In the next round we update the score s t + 1 ( e ) = s t ( e ) ( 1 + δ Δ t ( e ) ) s_{t+1}(e)=s_t(e)(1+\delta\Delta_t(e)) s t + 1 ( e ) = s t ( e ) ( 1 + δ Δ t ( e )) . Note that the weight w t + 1 ( e ) w_{t+1}(e) w t + 1 ( e ) to the oracle in the next round is proportional to s t + 1 ( e ) s_{t+1}(e) s t + 1 ( e ) . Therefore, if the current detour cost Δ t ( e ) \Delta_t(e) Δ t ( e ) is too big, e e e will be given a larger weight w t + 1 ( e ) w_{t+1}(e) w t + 1 ( e ) , and the α \alpha α -ORACLE is incentivized to produce a new cut C t + 1 C_{t+1} C t + 1 that avoids cutting e e e to minimize the total weighted detour cost. The pseudo-code is given in Algorithm 2.
Algorithm 2 FINDCUTS( G , B , k , O , T , δ ) (G,B,k,\mathcal{O},T,\delta) ( G , B , k , O , T , δ )
Input: A planar graph G = ( V , E ) G=(V,E) G = ( V , E ) with n n n vertices and m m m edges, and B ⊆ V B\subseteq V B ⊆ V the set of boundary vertices, parameter k k k such that ∣ B ∣ ≤ k 2 |B|\le k^2 ∣ B ∣ ≤ k 2 and an α \alpha α -CUT ORACLE O \mathcal{O} O . T T T and δ \delta δ are two parameters of the WMU algorithm chosen later.
Output: a set of balanced cuts C \mathcal{C} C of size O ( m ) O(m) O ( m ) .
s 1 ( e ) ← 1 s_1(e)\leftarrow1 s 1 ( e ) ← 1 for every e ∈ E e\in E e ∈ E
for t ← 1 t\leftarrow1 t ← 1 to T T T do
S t ← ∑ e ∈ E s t ( e ) S_t\leftarrow\sum_{e\in E}s_t(e) S t ← ∑ e ∈ E s t ( e )
p t ( e ) ← 3 4 s t ( e ) S t + 1 4 m p_t(e)\leftarrow\frac{3}{4}\frac{s_t(e)}{S_t}+\frac{1}{4m} p t ( e ) ← 4 3 S t s t ( e ) + 4 m 1
w t ( e ) ← p t ( e ) / ℓ ( e ) w_t(e)\leftarrow p_t(e)/\ell(e) w t ( e ) ← p t ( e ) / ℓ ( e )
C t ← O ( G , B , { w t ( e ) } e ∈ E , k ) C_t\leftarrow\mathcal{O}(G,B,\{w_t(e)\}_{e\in E},k) C t ← O ( G , B , { w t ( e ) } e ∈ E , k ) ▷ call the α \alpha α -CUT ORACLE with weight w t ( e ) w_t(e) w t ( e ) for each edge e e e
Δ t ( e ) ← ℓ ( ρ C t ( e ) ) − ℓ ( e ) ℓ ( e ) \Delta_t(e)\leftarrow\frac{\ell(\rho_{C_t}(e))-\ell(e)}{\ell(e)} Δ t ( e ) ← ℓ ( e ) ℓ ( ρ C t ( e )) − ℓ ( e ) ▷ the relative detour cost
s t + 1 ( e ) ← s t ( e ) ( 1 + δ Δ t ( e ) ) s_{t+1}(e)\leftarrow s_t(e)(1+\delta\Delta_t(e)) s t + 1 ( e ) ← s t ( e ) ( 1 + δ Δ t ( e ))
return C : = { C t } t = 1 T \mathcal{C}:=\{C_t\}_{t=1}^{T} C := { C t } t = 1 T
To show that C \mathcal{C} C is the desired distribution of balanced cuts, we follow the standard MUW analysis, using the facts in the following claim. The third item helps us upper-bound S T + 1 S_{T+1} S T + 1 , while the fourth item lets us show that δ Δ t ( e ) ≤ 1 \delta\Delta_t(e)\le1 δ Δ t ( e ) ≤ 1 for a sufficiently small choice of the parameter δ \delta δ .
Claim 1. for every round t t t :
∑ e p t ( e ) = 1 \sum_e p_t(e)=1 ∑ e p t ( e ) = 1 and hence p t p_t p t is a distribution on the edges of G G G .
∑ e ∈ E w t ( e ) ℓ ( e ) = 1 \sum_{e\in E}w_t(e)\ell(e)=1 ∑ e ∈ E w t ( e ) ℓ ( e ) = 1 .
∑ e ∈ E p t ( e ) Δ t ( e ) ≤ α k \sum_{e\in E}p_t(e)\Delta_t(e)\le\frac{\alpha}{k} ∑ e ∈ E p t ( e ) Δ t ( e ) ≤ k α .
∑ e ∈ E Δ t ( e ) ≤ 4 m α k \sum_{e\in E}\Delta_t(e)\le\frac{4m\alpha}{k} ∑ e ∈ E Δ t ( e ) ≤ k 4 m α .
Proof. By definition of p t ( e ) p_t(e) p t ( e ) in Equation (46) , we have:
∑ e ∈ E p t ( e ) = ∑ e ∈ E ( 3 4 s t ( e ) S t + 1 4 m ) = 3 4 ∑ e ∈ E s t ( e ) S t + m 4 m = 3 4 + 1 4 = 1 \sum_{e\in E}p_t(e)=\sum_{e\in E}\left(\frac{3}{4}\frac{s_t(e)}{S_t}+\frac{1}{4m}\right)=\frac{3}{4}\frac{\sum_{e\in E}s_t(e)}{S_t}+\frac{m}{4m}=\frac{3}{4}+\frac{1}{4}=1 e ∈ E ∑ p t ( e ) = e ∈ E ∑ ( 4 3 S t s t ( e ) + 4 m 1 ) = 4 3 S t ∑ e ∈ E s t ( e ) + 4 m m = 4 3 + 4 1 = 1
By definition w t ( e ) = p t ( e ) / ℓ ( e ) w_t(e)=p_t(e)/\ell(e) w t ( e ) = p t ( e ) / ℓ ( e ) . It follows that:
∑ e ∈ E w t ( e ) ℓ ( e ) = ∑ e ∈ E p t ( e ) = 1 \sum_{e\in E} w_t(e)\ell(e)=\sum_{e\in E}p_t(e)=1 e ∈ E ∑ w t ( e ) ℓ ( e ) = e ∈ E ∑ p t ( e ) = 1
Next, we have:
∑ e ∈ E p t ( e ) Δ t ( e ) = ∑ e ( w t ( e ) ℓ ( e ) ) ℓ ( ρ C t ( e ) ) − ℓ ( e ) ℓ ( e ) (by definition in line 7) = ∑ e ∈ E w t ( e ) ( ℓ ( ρ C t ( e ) ) − ℓ ( e ) ) ≤ α k ∑ e ∈ E w t ( e ) ℓ ( e ) (by xref‘Equation (45)‘) = α k (since ∑ e ∈ E w t ( e ) ℓ ( e ) = 1 ). \begin{aligned}
\sum_{e\in E}p_t(e)\Delta_t(e)
&=\sum_e\bigl(w_t(e)\ell(e)\bigr)\frac{\ell(\rho_{C_t}(e))-\ell(e)}{\ell(e)}
&&\text{(by definition in line 7)}\\
&=\sum_{e\in E}w_t(e)\bigl(\ell(\rho_{C_t}(e))-\ell(e)\bigr)\\
&\leq\frac{\alpha}{k}\sum_{e\in E}w_t(e)\ell(e)
&&\text{(by {xref}`Equation (45)`)}\\
&=\frac{\alpha}{k}
&&\text{(since }\sum_{e\in E}w_t(e)\ell(e)=1\text{).}
\end{aligned} e ∈ E ∑ p t ( e ) Δ t ( e ) = e ∑ ( w t ( e ) ℓ ( e ) ) ℓ ( e ) ℓ ( ρ C t ( e )) − ℓ ( e ) = e ∈ E ∑ w t ( e ) ( ℓ ( ρ C t ( e )) − ℓ ( e ) ) ≤ k α e ∈ E ∑ w t ( e ) ℓ ( e ) = k α (by definition in line 7) (by xref ‘Equation (45)‘) (since e ∈ E ∑ w t ( e ) ℓ ( e ) = 1 ).
Finally, we use the fact that p t ( e ) ≥ 1 / 4 m p_t(e)\geq1/4m p t ( e ) ≥ 1/4 m to get:
∑ e ∈ E Δ t ( e ) ≤ 4 m ∑ e ∈ E p t ( e ) Δ t ( e ) ≤ 4 m α k \sum_{e\in E}\Delta_t(e)\leq4m\sum_{e\in E}p_t(e)\Delta_t(e)\leq\frac{4m\alpha}{k} e ∈ E ∑ Δ t ( e ) ≤ 4 m e ∈ E ∑ p t ( e ) Δ t ( e ) ≤ k 4 m α
as claimed. □
Lemma 4 (Stochastic Balanced Cuts with Low Distortion). Let k k k be any given parameter sufficiently larger than 1. Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be any n n n -vertex planar graph with edge length function ℓ \ell ℓ . B ⊆ V B\subseteq V B ⊆ V be a designated set of boundary vertices such that ∣ B ∣ ≤ k 2 |B|\leq k^2 ∣ B ∣ ≤ k 2 . Then there is a distribution C \mathcal{C} C of balanced B B B -cuts of G G G such that (i) every cut C C C in the support of C \mathcal{C} C has ∣ C ∣ = O ( k ) |C|=O(k) ∣ C ∣ = O ( k ) clusters and (ii) for every edge e ∈ G e\in G e ∈ G :
E C ∼ C [ ℓ ( ρ C ( e ) ) ] ≤ ( 1 + O ( 1 ) k ) ℓ ( e ) (48) \mathbb{E}_{C\sim\mathcal{C}}[\ell(\rho_C(e))]\leq\left(1+\frac{O(1)}{k}\right)\ell(e) \tag*{(48)} E C ∼ C [ ℓ ( ρ C ( e ))] ≤ ( 1 + k O ( 1 ) ) ℓ ( e ) (48) Furthermore, the support of C \mathcal{C} C has only O ( n log n ) O(n\log n) O ( n log n ) balanced cuts, which can be constructed in polynomial time, and sampling is uniform at random in O ( 1 ) O(1) O ( 1 ) time.
Proof. We apply Algorithm 2 to construct a set C = { C t } t = 1 T \mathcal{C}=\{C_t\}_{t=1}^{T} C = { C t } t = 1 T cuts where we set T = 8 m ln ( m ) T=8m\ln(m) T = 8 m ln ( m ) . Then we sample a balanced cut in C \mathcal{C} C by picking a cut uniformly at random. We can sample in O ( 1 ) O(1) O ( 1 ) time. For planar graphs, m = O ( n ) m=O(n) m = O ( n ) , so C \mathcal{C} C has only O ( n log n ) O(n\log n) O ( n log n ) cuts in the support. Our goal is to show that:
E C ∼ C [ ℓ ( ρ C ( e ) ) − ℓ ( e ) ℓ ( e ) ] ≤ 4 α k = O ( 1 ) k \mathbb{E}_{C\sim\mathcal{C}}\left[\frac{\ell(\rho_C(e))-\ell(e)}{\ell(e)}\right]\leq\frac{4\alpha}{k}=\frac{O(1)}{k} E C ∼ C [ ℓ ( e ) ℓ ( ρ C ( e )) − ℓ ( e ) ] ≤ k 4 α = k O ( 1 )
since α = O ( 1 ) \alpha=O(1) α = O ( 1 ) by Lemma 6. By expanding the expectation and the definition of Δ t ( e ) \Delta_t(e) Δ t ( e ) in line 7, the above inequality is equivalent to:
∑ t ∈ [ T ] Δ t ( e ) T ≤ 4 α k (49) \frac{\sum_{t\in[T]}\Delta_t(e)}{T}\leq\frac{4\alpha}{k} \tag*{(49)} T ∑ t ∈ [ T ] Δ t ( e ) ≤ k 4 α (49)
We follow the analysis of the MWU method: (1) upper bounding S T + 1 S_{T+1} S T + 1 and lower bounding the individual score s T + 1 ( e ) s_{T+1}(e) s T + 1 ( e ) , and (2) using the fact that S T + 1 ≥ s T + 1 ( e ) S_{T+1}\geq s_{T+1}(e) S T + 1 ≥ s T + 1 ( e ) to derive Equation (49) . First, we bound S T S_T S T . Observe that:
S t + 1 = ∑ e ∈ E s t + 1 ( e ) = ∑ e ∈ E s t ( e ) ( 1 + δ Δ t ( e ) ) = S t + ∑ e ∈ E δ s t ( e ) Δ t ( e ) ≤ S t + δ ∑ e ∈ E ( 4 3 p t ( e ) S t ) Δ t ( e ) (by Equation (46): p t ( e ) ≥ 3 s t ( e ) / ( 4 S t ) ) = S t ( 1 + 4 3 δ ∑ e ∈ E p t ( e ) Δ t ( e ) ) ≤ S t ( 1 + 4 α δ 3 k ) (by Claim 1) S_{t+1}=\sum_{e\in E}s_{t+1}(e)=\sum_{e\in E}s_t(e)(1+\delta\Delta_t(e))
\\
= S_t+\sum_{e\in E}\delta s_t(e)\Delta_t(e)
\\
\leq S_t+\delta\sum_{e\in E}\left(\frac{4}{3}p_t(e)S_t\right)\Delta_t(e)\qquad\text{(by Equation (46): }p_t(e)\geq3s_t(e)/(4S_t)\text{)}
\\
= S_t\left(1+\frac{4}{3}\delta\sum_{e\in E}p_t(e)\Delta_t(e)\right)
\\
\leq S_t\left(1+\frac{4\alpha\delta}{3k}\right)\qquad\text{(by Claim 1)} S t + 1 = e ∈ E ∑ s t + 1 ( e ) = e ∈ E ∑ s t ( e ) ( 1 + δ Δ t ( e )) = S t + e ∈ E ∑ δ s t ( e ) Δ t ( e ) ≤ S t + δ e ∈ E ∑ ( 3 4 p t ( e ) S t ) Δ t ( e ) (by Equation (46): p t ( e ) ≥ 3 s t ( e ) / ( 4 S t ) ) = S t ( 1 + 3 4 δ e ∈ E ∑ p t ( e ) Δ t ( e ) ) ≤ S t ( 1 + 3 k 4 α δ ) (by Claim 1)
By induction, the above inequality gives:
S T + 1 ≤ S 1 ( 1 + 4 α δ 3 k ) T = m ( 1 + 4 α δ 3 k ) T (50) S_{T+1}\leq S_1\left(1+\frac{4\alpha\delta}{3k}\right)^T=m\left(1+\frac{4\alpha\delta}{3k}\right)^T \tag*{(50)} S T + 1 ≤ S 1 ( 1 + 3 k 4 α δ ) T = m ( 1 + 3 k 4 α δ ) T (50)
Next, we lower bound s T + 1 ( e ) s_{T+1}(e) s T + 1 ( e ) . Let δ = k 4 m α \delta=\frac{k}{4m\alpha} δ = 4 m α k . By item 4 of Claim 1, δ Δ t ( e ) ≤ 1 \delta\Delta_t(e)\leq1 δ Δ t ( e ) ≤ 1 . By the definition of s t + 1 ( e ) s_{t+1}(e) s t + 1 ( e ) that
s T + 1 ( e ) = s 1 ( e ) ∏ t ∈ [ T ] ( 1 + δ Δ t ( e ) ) ≥ e δ ∑ t ∈ [ T ] Δ t ( e ) / 2 (use 1 + x ≥ e x / 2 for x ∈ [ 0 , 1 ] ) (51) \begin{aligned}
s_{T+1}(e)=s_1(e)\prod_{t\in[T]}(1+\delta\Delta_t(e)) \\
&\geq e^{\delta\sum_{t\in[T]}\Delta_t(e)/2}\qquad\text{(use }1+x\geq e^{x/2}\text{ for }x\in[0,1]\text{)} \tag*{(51)}
\end{aligned} s T + 1 ( e ) = s 1 ( e ) t ∈ [ T ] ∏ ( 1 + δ Δ t ( e )) ≥ e δ ∑ t ∈ [ T ] Δ t ( e ) /2 (use 1 + x ≥ e x /2 for x ∈ [ 0 , 1 ] ) (51)
Since S T + 1 ≥ s T + 1 ( e ) S_{T+1}\geq s_{T+1}(e) S T + 1 ≥ s T + 1 ( e ) , by Equation (50) and Equation (51) , we get:
∑ t ∈ [ T ] Δ t ( e ) T ≤ 2 δ ( ln m T + ln ( 1 + 4 α δ 3 k ) ) ≤ 2 ln ( m ) T δ + 8 α 3 k (use ln ( 1 + x ) ≤ x for every x ≥ 0 ) = 8 m ln ( m ) α T ⋅ k + 8 α 3 k (since δ = k / ( 4 α m ) ) = α k + 8 α 3 k < 4 α k (since T = 8 m ln ( m ) ) (52) \frac{\sum_{t\in[T]}\Delta_t(e)}{T}\leq\frac{2}{\delta}\left(\frac{\ln m}{T}+\ln\left(1+\frac{4\alpha\delta}{3k}\right)\right)
\\
\leq\frac{2\ln(m)}{T\delta}+\frac{8\alpha}{3k}\qquad\text{(use }\ln(1+x)\leq x\text{ for every }x\geq0\text{)}
\\
=\frac{8m\ln(m)\alpha}{T\cdot k}+\frac{8\alpha}{3k}\qquad\text{(since }\delta=k/(4\alpha m)\text{)}
\\
=\frac{\alpha}{k}+\frac{8\alpha}{3k}<\frac{4\alpha}{k}\qquad\text{(since }T=8m\ln(m)\text{)} \tag*{(52)} T ∑ t ∈ [ T ] Δ t ( e ) ≤ δ 2 ( T ln m + ln ( 1 + 3 k 4 α δ ) ) ≤ T δ 2 ln ( m ) + 3 k 8 α (use ln ( 1 + x ) ≤ x for every x ≥ 0 ) = T ⋅ k 8 m ln ( m ) α + 3 k 8 α (since δ = k / ( 4 α m ) ) = k α + 3 k 8 α < k 4 α (since T = 8 m ln ( m ) ) (52)
giving Equation (49) .
Extension to Minor-Free Graphs
The proof for planar graphs requires planarity to construct the rooted path separator P = { P 1 , … , P O ( k ) } \mathcal{P}=\{P_1,\ldots,P_{O(k)}\} P = { P 1 , … , P O ( k ) } . For general minor-free graphs, such a rooted path separator might not exist. A standard counterexample is an apex graph , obtained by adding a vertex, called the apex , to a planar graph G G G and connecting the apex to (one or more) vertices of G G G . Let G + G^+ G + be such an apex graph, with the apex being v v v . Let T T T be a star graph centered at v v v and containing the other vertices of G G G as leaves. Then T T T is a spanning tree of G + G^+ G + . If G G G is a square n × n \sqrt{n}\times\sqrt{n} n × n -grid, then there is no balanced separator of G + G^+ G + consisting of O ( 1 ) O(1) O ( 1 ) rooted paths of T T T . Note that G + G^+ G + excludes K 6 K_6 K 6 as a minor. However, if G G G excludes an apex graph as a minor, then a rooted path separator exists. That is, if we can identify a small set of apices to remove from G G G , then we can construct a rooted path separator. This is exactly the intuition behind the notion of ( α , O ( s ) ) (\alpha,O(\sqrt{s})) ( α , O ( s )) -separable graph in Corollary 1. Our goal is to show that K h K_h K h -minor-free graphs are ( α , O ( s ) ) (\alpha,O(\sqrt{s})) ( α , O ( s )) -separable with a constant α \alpha α .
Lemma 12. If G G G is a K h K_h K h -minor-free graph, then G G G is { O h ( 1 ) , O h ( s ) } \{O_h(1),O_h(\sqrt{s})\} { O h ( 1 ) , O h ( s )} -separable for any parameter h ≥ 1 h\geq1 h ≥ 1 and the separator is constructible in polynomial time.
Next, we briefly argue that Lemma 12 is all we need for the embedding in Theorem 2, restated below.
Theorem 2. Fix an integer h ≥ 1 h \ge1 h ≥ 1 . Given an n n n -vertex K h K_h K h -minor-free graph G = ( V , E , ℓ ) G = (V, E, \ell) G = ( V , E , ℓ ) and any parameter ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , there is a stochastic embedding of G G G into a distribution D \mathcal{D} D of graphs with treewidth O h ( log n / ε ) O_h(\log n/\varepsilon) O h ( log n / ε ) and expected distortion ( 1 + ε ) (1+\varepsilon) ( 1 + ε ) , where the O h O_h O h notation hides a dependency on the minor. The embedding can be sampled in polynomial time, and every graph H H H in the support of D \mathcal{D} D has V ( H ) = V ( G ) V(H) = V(G) V ( H ) = V ( G ) .
Proof. By Remark 1, for minor-free graphs, we only need to construct stochastic balanced cuts; more specifically, we need to prove Lemma 4 for minor-free graphs. By (algorithmic) minimax in § 4.2 , it suffices to construct a cut with total weighted detour cost for any weight function on the edges. Using Corollary 1 and Lemma 12 , we obtain the stochastic balanced cut, giving the theorem. Note that the constants in the support size of the cut distribution, as well as the cut size, also depend on h h h . □
Proof of Lemma 12
First, we observe that if the graph is apex-minor-free, then we can construct a rooted path separator. The proof is very similar to the proof of Lemma 7 for planar graphs, except that we work with a Robertson-Seymour style decomposition [21 ] instead of a planar embedding.
Lemma 13. Let A A A be a fixed apex graph and G = ( V , E ) G = (V,E) G = ( V , E ) be an A A A -minor-free graph. Let ω \omega ω be a non-negative vertex weight function, and let F F F be a rooted spanning forest with s s s connected components. Then there exists a balanced separator P \mathcal{P} P of G G G w.r.t. ω \omega ω consisting of O ∣ V ( A ) ∣ ( s ) O_{|V(A)|}(\sqrt{s}) O ∣ V ( A ) ∣ ( s ) rooted paths of F F F such that for every connected component C ∈ G ∖ P C \in G \setminus\mathcal{P} C ∈ G ∖ P ,
∑ v ∈ C ω ( v ) ≤ ω ( V ) / 2 , \sum_{v \in C} \omega(v) \le\omega(V)/2, v ∈ C ∑ ω ( v ) ≤ ω ( V ) /2 , Furthermore, the separator can be found in polynomial time.
The proof of Lemma 12 relies on the Robertson-Seymour structure theorem. We specifically rely on the version of the theorem by [17 ] , which we will state next.
The structure theorem. Let T \mathcal{T} T be a tree decomposition of G G G , and for an edge ( X , Y ) ∈ E ( T ) (X,Y) \in E(\mathcal{T}) ( X , Y ) ∈ E ( T ) between two bags X X X and Y Y Y , we call X ∩ Y X \cap Y X ∩ Y the adhesion of the edge. For a bag X ∈ T X \in\mathcal{T} X ∈ T , we define the torso of X X X , denoted by Torso ( X ) \operatorname{Torso}(X) Torso ( X ) , to be a graph obtained from G [ X ] G[X] G [ X ] by turning the adhesion X ∩ Y X \cap Y X ∩ Y into a clique for every neighbor Y Y Y of X X X in T \mathcal{T} T . Every edge ( x , y ) (x,y) ( x , y ) of the clique from an adhesion in Torso ( X ) \operatorname{Torso}(X) Torso ( X ) is assigned a length ℓ ( x , y ) = d G ( x , y ) \ell(x,y) = d_G(x,y) ℓ ( x , y ) = d G ( x , y ) . We use the following variant of the Robertson and Seymour decomposition by [17 ] .
Theorem 5 (Theorem 6.1 [17 ] ). Let G G G be a K h K_h K h -minor-free graph. Then there exists an apex graph A A A , and a tree decomposition T \mathcal{T} T of G G G such that for every bag X ∈ T X \in\mathcal{T} X ∈ T , there exists a subset apices ( X ) ⊆ X \operatorname{apices}(X) \subseteq X apices ( X ) ⊆ X such that: (i) ∣ apices ( X ) ∣ = O h ( 1 ) |\operatorname{apices}(X)| = O_h(1) ∣ apices ( X ) ∣ = O h ( 1 ) and (ii) the graph Torso ( X ) ∖ apices ( X ) \operatorname{Torso}(X) \setminus\operatorname{apices}(X) Torso ( X ) ∖ apices ( X ) , obtained by removing apices( X ) (X) ( X ) from Torso ( X ) \operatorname{Torso}(X) Torso ( X ) , is A A A -minor-free.
We note that the adhesion of every edge in the tree decomposition in Theorem 5 has size O h ( 1 ) O_h(1) O h ( 1 ) since the adhesion induces a clique of the torso of the edge’s endpoints, and Torso ( X ) \operatorname{Torso}(X) Torso ( X ) is apex-minor-free after removing O h ( 1 ) O_h(1) O h ( 1 ) vertices for every bag X X X . The following lemma follows directly from Theorem 5.
Lemma 14. Let G G G be a K h K_h K h -minor-free graph and ω : V ( G ) → R ≥ 0 \omega: V(G) \to\mathbb{R}_{\ge0} ω : V ( G ) → R ≥ 0 be a vertex-weight function. There exists a set Z ⊆ V ( G ) Z \subseteq V(G) Z ⊆ V ( G ) of size ∣ Z ∣ = O h ( 1 ) |Z| = O_h(1) ∣ Z ∣ = O h ( 1 ) such that every connected component O O O of G ∖ Z G \setminus Z G ∖ Z , either:
ω ( O ) ≤ ω ( V ) / 8 \omega(O) \le\omega(V)/8 ω ( O ) ≤ ω ( V ) /8 , or
O O O has a tree decomposition T O \mathcal{T}_O T O and a bag X O ∈ T O X_O \in\mathcal{T}_O X O ∈ T O such that:
(a) Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) is A A A -minor-free for an apex graph A A A where ∣ V ( A ) ∣ = O h ( 1 ) |V(A)| = O_h(1) ∣ V ( A ) ∣ = O h ( 1 ) and
(b) every connected component C C C of O ∖ X O O \setminus X_O O ∖ X O has ω ( C ) ≤ ω ( V ) / 8 \omega(C) \le\omega(V)/8 ω ( C ) ≤ ω ( V ) /8 , N X O ( C ) N_{X_O}(C) N X O ( C ) induces a clique in Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) , and ∣ N X O ( C ) ∣ = O h ( 1 ) |N_{X_O}(C)| = O_h(1) ∣ N X O ( C ) ∣ = O h ( 1 ) .
Proof: Let T T T be a tree isomorphic to T \mathcal{T} T , where each vertex t ∈ T t \in T t ∈ T corresponds to a bag X t ∈ T X_t \in\mathcal{T} X t ∈ T . We root T T T at some vertex. For every vertex t ∈ T t \in T t ∈ T , let p t p_t p t be its parent in T T T , and e t = ( t , p t ) e_t = (t,p_t) e t = ( t , p t ) be its parent edge. If t t t is the root of T T T , then p t = ∅ p_t = \varnothing p t = ∅ , and e t = ∅ e_t = \varnothing e t = ∅ . We then assign t t t a weight ω T ( t ) = ∑ v ∈ X t ∖ X p t ω ( v ) \omega_T(t) = \sum_{v \in X_t \setminus X_{p_t}} \omega(v) ω T ( t ) = ∑ v ∈ X t ∖ X p t ω ( v ) . Observe that ω T ( V ( T ) ) = ω ( V ) \omega_T(V(T)) = \omega(V) ω T ( V ( T )) = ω ( V ) .
Since T T T is a tree, there exists a set S S S of O ( 1 ) O(1) O ( 1 ) vertices such that every connected component U U U of T ∖ S T \setminus S T ∖ S has weight ω T ( U ) ≤ ω T ( V ( T ) ) / 8 = ω ( V ) / 8 \omega_T(U) \le\omega_T(V(T))/8 = \omega(V)/8 ω T ( U ) ≤ ω T ( V ( T )) /8 = ω ( V ) /8 . Note that T T T is a rooted tree.
We construct a set Z Z Z in the lemma as follows. For each vertex t ∈ S t \in S t ∈ S of T T T , let e t e_t e t be the edge between t t t and its parent in T T T . Then we add apices ( X t ) \operatorname{apices}(X_t) apices ( X t ) and the adhesion of e t e_t e t to Z Z Z . (If S S S includes the root of T T T , then we only add the apices of the root bag of T T T to Z Z Z .) Since ∣ S ∣ = O ( 1 ) |S| = O(1) ∣ S ∣ = O ( 1 ) , by Theorem 5, the number of vertices added to Z Z Z is O h ( 1 ) O_h(1) O h ( 1 ) .
Let E S E_S E S be the set of parent edges of vertices of S S S in T T T . Let U U U be a connected component of T ∖ E S T \setminus E_S T ∖ E S . Note that if we remove the root of U U U , then every resulting connected component has total weight at most ω ( V ) / 8 \omega(V)/8 ω ( V ) /8 . Let T U \mathcal{T}_U T U be the subtree of T \mathcal{T} T corresponding to U U U . Then every connected component O O O of G ∖ Z G \setminus Z G ∖ Z has a decomposition T O \mathcal{T}_O T O isomorphic to a subtree of T U \mathcal{T}_U T U for some connected component U U U of T ∖ E S T \setminus E_S T ∖ E S ; the bags of T O \mathcal{T}_O T O might contain fewer vertices than the bags of T U \mathcal{T}_U T U as some of the vertices are added to Z Z Z .
If ω T ( U ) ≤ ω ( V ) / 8 \omega_T(U) \le\omega(V)/8 ω T ( U ) ≤ ω ( V ) /8 , then item 1 in the lemma holds for O O O . Otherwise, let X O X_O X O be the root bag of T O \mathcal{T}_O T O . Since apices ( X O ) \operatorname{apices}(X_O) apices ( X O ) is added to Z Z Z by construction, Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) is A A A -minor-free for some fixed apex graph A A A by Theorem 5, giving (2a). Furthermore, (2b) follows from Theorem 5 and the fact that removing the root of U U U gives connected components of weight at most ω ( V ) / 8 \omega(V)/8 ω ( V ) /8 . □
We call the component O O O of G ∖ Z G \setminus Z G ∖ Z in item 2 of Lemma 14 a large component , and the bag X O X_O X O the important bag of O O O . Our next goal is to show that:
Lemma 15. Let F O F_O F O be any rooted spanning forest of large component O O O with s s s trees. Then there exists a balanced separator P P P of O O O consisting of O h ( s ) O_h(\sqrt{s}) O h ( s ) rooted paths of F F F .
To this end, following [17 ] , we construct a graph Torso ^ ( X O ) \widehat{\operatorname{Torso}}(X_O) Torso ( X O ) from Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) as follows. For each connected component C C C of O ∖ X O O \setminus X_O O ∖ X O , we add a vertex a C a_C a C and connect a C a_C a C to every vertex in N X O ( C ) N_{X_O}(C) N X O ( C ) . We call a C a_C a C the representative of C C C in X O X_O X O . Recall that N X O ( C ) N_{X_O}(C) N X O ( C ) induces a clique in Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) by item 2b in Lemma 14. Then we assign a weight:
ω ( a C ) = ω ( C ) (53) \omega(a_C) = \omega(C) \tag*{(53)} ω ( a C ) = ω ( C ) (53)
If there are other components of O ∖ X O O \setminus X_O O ∖ X O sharing the same neighborhood N X O ( C ) N_{X_O}(C) N X O ( C ) with a component C C C , then we only keep one vertex a C a_C a C and set the weight ω ( a C ) \omega(a_C) ω ( a C ) to be the total weight of all such components. Formally:
ω ( a C ) = ∑ C ′ : N X O ( C ′ ) = N X O ( C ) ω ( C ′ ) (54) \omega(a_C) = \sum_{C' : N_{X_O}(C') = N_{X_O}(C)} \omega(C') \tag*{(54)} ω ( a C ) = C ′ : N X O ( C ′ ) = N X O ( C ) ∑ ω ( C ′ ) (54)
Let Torso ^ ( X O ) \widehat{\operatorname{Torso}}(X_O) Torso ( X O ) be the resulting graph with weight ω \omega ω on the vertices. Cohen-Addad, Le, Ma, Pilipczuk, and Mi. Pilipczuk showed that Torso ^ ( X O ) \widehat{\operatorname{Torso}}(X_O) Torso ( X O ) remains apex-minor-free.
Lemma 16 (Lemma 6.2 [17 ] ). Torso ^ ( X O ) \widehat{\operatorname{Torso}}(X_O) Torso ( X O ) is A A A -minor-free for some apex graph A A A with ∣ V ( A ) ∣ = O h ( 1 ) |V(A)| = O_h(1) ∣ V ( A ) ∣ = O h ( 1 ) .
Now we are ready to prove Lemma 15.
Proof (Proof of Lemma 15): We construct a spanning forest F ^ X \widehat{F}_X F X of Torso ^ ( X O ) \widehat{\operatorname{Torso}}(X_O) Torso ( X O ) as follows. First, we remove all trees in F ^ X \widehat{F}_X F X that do not contain any vertex of X O X_O X O . Next, we construct a spanning tree of F ^ X \widehat{F}_X F X of Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) by contracting every connected component of F O ∖ X O F_O \setminus X_O F O ∖ X O to a vertex in X O X_O X O . Specifically, for every connected component U U U of F O ∖ X O F_O \setminus X_O F O ∖ X O , if U U U does not contain the root of the connected component containing U U U in F O F_O F O , then we let u u u be the vertex in X O X_O X O that is the parent of the root of U U U , and contract U U U to u u u . Otherwise, we choose u u u to be an arbitrary vertex of X O X_O X O that is adjacent to U U U in F O F_O F O , contract U U U to u u u , and designate u u u as the root of the contracted tree. After the contraction, F ^ X \widehat{F}_X F X is a rooted spanning forest of Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) . The final forest F ^ X \widehat{F}_X F X is obtained from F ^ X \widehat{F}_X F X by adding a C a_C a C as a leaf for each connected component C C C of O ∖ X O O \setminus X_O O ∖ X O ; that is, we pick a neighbor v v v of a C a_C a C in F ^ X \widehat{F}_X F X and add an edge ( v , a C ) (v,a_C) ( v , a C ) to F ^ X \widehat{F}_X F X , making v v v the parent of a C a_C a C in F ^ X \widehat{F}_X F X .
Observe that F ^ X \widehat{F}_X F X contains at most s s s rooted trees. By Lemma 16 and Lemma 13, we can construct a rooted path separator P ^ \widehat{\mathcal{P}} P of Torso ( X O ) \operatorname{Torso}(X_O) Torso ( X O ) containing O ( s ) O(\sqrt{s}) O ( s ) rooted path.
Now we construct a rooted path forest P O \mathcal{P}_O P O for O O O as follows. For each (root-to-leaf) path P ^ ∈ P ^ \widehat{P} \in\widehat{\mathcal{P}} P ∈ P , we do the following. First, if the leaf of P ^ \widehat{P} P is a C a_C a C for some representative vertex a C a_C a C , we then add to P O \mathcal{P}_O P O the rooted paths of F O F_O F O containing vertices of the clique N X O ( C ) N_{X_O}(C) N X O ( C ) ; only O h ( 1 ) O_h(1) O h ( 1 ) such paths are added to P O \mathcal{P}_O P O by item 2(b) in Lemma 14. Next, after removing a C a_C a C from P ^ \widehat{P} P , let u ^ \widehat{u} u be the root of P ^ \widehat{P} P and v ^ \widehat{v} v be the leaf of P ^ \widehat{P} P . If u ^ \widehat{u} u is also a root of F O F_O F O , then we simply add to P O \mathcal{P}_O P O the root-to-leaf path from v ^ \widehat{v} v to u ^ \widehat{u} u in F O F_O F O . Otherwise, the root of the tree containing u ^ \widehat{u} u is outside X O X_O X O . Then we add two P O \mathcal{P}_O P O two root-to-leaf paths: one containing u ^ \widehat{u} u and the other containing v ^ \widehat{v} v . In total, we add O h ( 1 ) O_h(1) O h ( 1 ) paths to P O \mathcal{P}_O P O per path of P ^ \widehat{\mathcal{P}} P and hence the number of paths added to P O \mathcal{P}_O P O remains O h ( s ) O_h(\sqrt{s}) O h ( s ) .
Since P ^ \widehat{\mathcal{P}} P is balanced and X O X_O X O is the important bag of O O O , P O \mathcal{P}_O P O is also balanced. □
Now we prove Lemma 12 .
Proof (Proof of Lemma 12): By Lemma 14, we can first remove a set Z Z Z of O h ( 1 ) O_h(1) O h ( 1 ) vertices from G G G . Then for every large component O O O of G ∖ Z G \setminus Z G ∖ Z , we construct a rooted path separator containing O h ( s ) O_h(\sqrt{s}) O h ( s ) paths. Since the number of large components is O ( 1 ) O(1) O ( 1 ) , the total number of paths remains O h ( s ) O_h(\sqrt{s}) O h ( s ) . □
Applications to Designing PTASes
Let Π \Pi Π be an optimization problem on a graph G G G with edge lengths, where a feasible solution for Π \Pi Π is a subset of the edges of G G G , and the solution value is the total length of the edges (plus the total penalty of vertices not in the solution for the prize-collecting problems). Then, given an instance Π G \Pi_G Π G of a problem Π \Pi Π in a planar graph G G G , we apply Theorem 1 to design a randomized polynomial-time approximation scheme (PTAS) for Π \Pi Π as follows:
Step 1. Given the accuracy parameter ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , embed G G G into a graph H H H with treewidth τ = O ( log n / ε ) \tau= O(\log n/\varepsilon) τ = O ( log n / ε ) and expected distortion 1 + ε 1+\varepsilon 1 + ε . Note that V ( H ) = V ( G ) V(H)=V(G) V ( H ) = V ( G ) .
Step 2. Solve the instance Π H \Pi_H Π H of problem Π \Pi Π on H H H in time 2 O ( τ ) n O ( 1 ) = 2 O ( log n / ε ) n O ( 1 ) = n O ( 1 / ε ) 2^{O(\tau)}n^{O(1)} = 2^{O(\log n/\varepsilon)}n^{O(1)} = n^{O(1/\varepsilon)} 2 O ( τ ) n O ( 1 ) = 2 O ( l o g n / ε ) n O ( 1 ) = n O ( 1/ ε ) time, to get a solution Opt H \operatorname{Opt}_H Opt H of Π \Pi Π on H H H .
Step 3. Lift Opt H \operatorname{Opt}_H Opt H to a solution Opt ^ G \widehat{\operatorname{Opt}}_G Opt G of Π \Pi Π in G G G by replacing each edge e = ( u , v ) ∈ Opt H ∩ E ( H ) e=(u,v) \in\operatorname{Opt}_H \cap E(H) e = ( u , v ) ∈ Opt H ∩ E ( H ) by a shortest path π G ( u , v ) \pi_G(u,v) π G ( u , v ) in G G G .
There are three properties that we need from Π \Pi Π for the above algorithm to be applicable:
(P1) Π \Pi Π can be solved on treewidth-τ \tau τ graphs with n n n vertices in time 2 O ( τ ) n O ( 1 ) 2^{O(\tau)}n^{O(1)} 2 O ( τ ) n O ( 1 ) .
(P2) For the optimal solution Opt G \operatorname{Opt}_G Opt G of Π G \Pi_G Π G , a subgraph of Opt ^ H = ⋃ ( u , v ) ∈ Opt G π H ( u , v ) \widehat{\operatorname{Opt}}_H=\bigcup_{(u,v)\in\operatorname{Opt}_G}\pi_H(u,v) Opt H = ⋃ ( u , v ) ∈ Opt G π H ( u , v ) is a feasible solution of Π H \Pi_H Π H in H H H .
(P3) Compute a feasible solution Opt ^ G \widehat{\operatorname{Opt}}_G Opt G of Π G \Pi_G Π G in Step 3 in polynomial time.
If Π \Pi Π has the three properties above, then we show that Π \Pi Π admits a PTAS in planar graphs.
Lemma 17. Let Π \Pi Π be a problem satisfying the three properties (P1)-(P3). Let G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) be any given K h K_h K h -minor-free graph with n n n vertices. Then Π G \Pi_G Π G admits a randomized PTAS with running time n O h ( 1 / ε ) n^{O_h(1/\varepsilon)} n O h ( 1/ ε ) and expected approximation ratio 1 + ε 1+\varepsilon 1 + ε for any ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) .
Proof: We show that the algorithm above gives the randomized PTAS. Let Opt G \operatorname{Opt}_G Opt G be the optimal solution for Π G \Pi_G Π G . Let Opt ^ H = ⋃ ( u , v ) ∈ Opt G π H ( u , v ) \widehat{\operatorname{Opt}}_H=\bigcup_{(u,v)\in\operatorname{Opt}_G}\pi_H(u,v) Opt H = ⋃ ( u , v ) ∈ Opt G π H ( u , v ) . In expectation, we have:
E [ ℓ H ( Opt ^ H ) ] ≤ ∑ ( u , v ) ∈ Opt G E [ d H ( u , v ) ] ≤ ∑ ( u , v ) ∈ Opt G ( 1 + ε ) d G ( u , v ) = ( 1 + ε ) ∑ ( u , v ) ∈ Opt G ℓ ( u , v ) = ( 1 + ε ) ℓ ( Opt G ) . (55) \begin{aligned}
\mathbb{E}[\ell_H(\widehat{\operatorname{Opt}}_H)] \leq\sum_{(u,v)\in\operatorname{Opt}_G}\mathbb{E}[d_H(u,v)] \leq\sum_{(u,v)\in\operatorname{Opt}_G}(1+\varepsilon)d_G(u,v) \\
&= (1+\varepsilon)\sum_{(u,v)\in\operatorname{Opt}_G}\ell(u,v)=(1+\varepsilon)\ell(\operatorname{Opt}_G). \tag*{(55)}
\end{aligned} E [ ℓ H ( Opt H )] ≤ ( u , v ) ∈ Opt G ∑ E [ d H ( u , v )] ≤ ( u , v ) ∈ Opt G ∑ ( 1 + ε ) d G ( u , v ) = ( 1 + ε ) ( u , v ) ∈ Opt G ∑ ℓ ( u , v ) = ( 1 + ε ) ℓ ( Opt G ) . (55)
By property (P2), E [ ℓ H ( O p t H ) ] ≤ E [ ℓ H ( O p t ‾ H ) ] ≤ ( 1 + ϵ ) ℓ ( O p t G ) \mathbb{E}[\ell_H(\mathrm{Opt}_H)] \le\mathbb{E}[\ell_H(\overline{\mathrm{Opt}}_H)] \le(1+\epsilon)\ell(\mathrm{Opt}_G) E [ ℓ H ( Opt H )] ≤ E [ ℓ H ( Opt H )] ≤ ( 1 + ϵ ) ℓ ( Opt G ) . By property (P1), we can find O p t H \mathrm{Opt}_H Opt H in time:
2 O ( log n / ϵ ) n O ( 1 ) = n O ( 1 / ϵ ) 2^{O(\log n/\epsilon)}n^{O(1)} = n^{O(1/\epsilon)} 2 O ( l o g n / ϵ ) n O ( 1 ) = n O ( 1/ ϵ )
By property (P3) and the fact that the embedding is dominating, we have:
E [ ℓ ( O p t ‾ G ) ] ≤ E [ ℓ H ( O p t ‾ H ) ] ≤ ( 1 + ϵ ) ℓ ( O p t G ) (56) \mathbb{E}[\ell(\overline{\mathrm{Opt}}_G)] \le\mathbb{E}[\ell_H(\overline{\mathrm{Opt}}_H)] \le(1+\epsilon)\ell(\mathrm{Opt}_G) \tag*{(56)} E [ ℓ ( Opt G )] ≤ E [ ℓ H ( Opt H )] ≤ ( 1 + ϵ ) ℓ ( Opt G ) (56)
Thus, the expected approximation ratio is 1 + ϵ 1+\epsilon 1 + ϵ . □
There are many problems that satisfy all three properties (P1)-P(3) above, including TSP [6 ] , subset TSP [32 ] , Steiner tree [6 ] , k k k -MST [6 ] , and other budget variants such as k k k -TSP and k k k -Stroll, defined below.
k k k -TSP: find a shortest closed walk visiting at least k k k vertices in G G G .
k k k -Stroll: given a source s s s and a sink t t t , find a shortest s s s -to-t t t walk visiting at least k k k vertices in G G G .
Prize collecting Steiner tree: in this problem, the graph G = ( V , E , ℓ ) G=(V,E,\ell) G = ( V , E , ℓ ) also has nonnegative vertex penalties π : V → R ≥ 0 \pi: V \to\mathbb{R}_{\ge0} π : V → R ≥ 0 . The goal is to find a Steiner tree T ⊆ G T \subseteq G T ⊆ G minimizing the total edge length and vertex penalty:
∑ e ∈ E ( T ) ℓ ( e ) + ∑ v ∈ V ∖ V ( T ) π ( v ) . \sum_{e\in E(T)} \ell(e) + \sum_{v\in V\setminus V(T)} \pi(v). e ∈ E ( T ) ∑ ℓ ( e ) + v ∈ V ∖ V ( T ) ∑ π ( v ) .
Both k k k -TSP and k k k -Stroll can be solved on treewidth-τ \tau τ graphs with n n n vertices in time 2 O ( τ ) n O ( 1 ) 2^{O(\tau)}n^{O(1)} 2 O ( τ ) n O ( 1 ) [32 ] . The prize-collecting Steiner tree can also be solved in 2 O ( τ ) n O ( 1 ) 2^{O(\tau)}n^{O(1)} 2 O ( τ ) n O ( 1 ) time by slightly adapting the Steiner tree algorithm [6 ] .
Theorem 3. Steiner tree, prize-collecting Steiner tree, k k k -MST, k k k -TSP, and k k k -Stroll admit randomized PTASes on planar and minor-free graphs.
Yet Another Planar Separator Theorem
In this section, we show that Lemma 7 follows from the following separator theorem by Cai, Har-Peled, and Ye [16 ] .
Lemma 18 (Theorem 1.1 [16 ] ). Let G = ( V , E ) G=(V,E) G = ( V , E ) be a connected planar graph with n n n vertices and n − 1 + t n-1+t n − 1 + t edges. Let ω : V → R ≥ 0 \omega:V\to\mathbb{R}_{\ge0} ω : V → R ≥ 0 be a non-negative weight function on V V V . Then G G G has a 1 / 2 1/2 1/2 -balanced separator of size O ( t + 1 ) O(\sqrt{t}+1) O ( t + 1 ) that can be found on polynomial time.
Now we prove Lemma 7 restated below.
Lemma 3. Let G = ( V , E ) G=(V,E) G = ( V , E ) be a planar graph with a non-negative vertex weight function ω \omega ω , and F F F be a rooted spanning forest that has s s s connected components. Then there exists a balanced separator P P P of G G G w.r.t. ω \omega ω consisting of O ( s ) O(\sqrt{s}) O ( s ) rooted paths of F F F such that for every connected component C ∈ G ∖ P C\in G\setminus P C ∈ G ∖ P ,
∑ v ∈ C ω ( v ) ≤ ω ( V ) / 2 , \sum_{v\in C}\omega(v)\leq\omega(V)/2, v ∈ C ∑ ω ( v ) ≤ ω ( V ) /2 , where ω ( V ) = ∑ v ∈ V ω ( v ) \omega(V)=\sum_{v\in V}\omega(v) ω ( V ) = ∑ v ∈ V ω ( v ) .
Proof: We triangulate G G G by adding edges to its faces. Let H = G ∗ − { e ∗ : e ∈ F } H=G^{*}-\{e^{*}:e\in F\} H = G ∗ − { e ∗ : e ∈ F } , where e ∗ e^{*} e ∗ are the dual edge of e e e and G ∗ G^{*} G ∗ is the planar dual of G G G . Since F F F is a spanning forest, H H H is connected. Then, by Euler formula, we have:
∣ E ( H ) ∣ − ∣ V ( H ) ∣ = s − 2 (57) |E(H)|-|V(H)|=s-2 \tag*{(57)} ∣ E ( H ) ∣ − ∣ V ( H ) ∣ = s − 2 (57)
By Lemma 18, H H H has a 1 / 2 1/2 1/2 -balanced separator of size O ( s − 1 + 1 ) = O ( s ) O(\sqrt{s-1+1})=O(\sqrt{s}) O ( s − 1 + 1 ) = O ( s ) for any non-negative weight function ω H \omega_H ω H . This means that H H H has a tree decomposition T H \mathcal{T}_H T H of width O ( s ) O(\sqrt{s}) O ( s ) .
For each vertex v ∈ G v\in G v ∈ G , denote by P v P_v P v the rooted path from v v v to the root of the tree in F F F containing v v v . We construct a tree decomposition T \mathcal{T} T of G G G where every bag of T \mathcal{T} T can be covered by O ( s ) O(\sqrt{s}) O ( s ) rooted paths of F F F as follows:
T \mathcal{T} T is isomorphic to T H \mathcal{T}_H T H . For every bag Y Y Y of T H \mathcal{T}_H T H , we construct a corresponding bag B Y B_Y B Y of T \mathcal{T} T as follows. For every vertex f ∗ ∈ Y f^{*}\in Y f ∗ ∈ Y corresponding to a triangular face f = { x , y , z } f=\{x,y,z\} f = { x , y , z } of G G G , we add to B Y B_Y B Y vertices in the three rooted path P x , P y , P z P_x,P_y,P_z P x , P y , P z . Formally, B Y = ⋃ f ∗ ∈ Y ⋃ x a corner of f V ( P x ) B_Y=\bigcup_{f^{*}\in Y}\bigcup_{x\text{ a corner of }f}V(P_x) B Y = ⋃ f ∗ ∈ Y ⋃ x a corner of f V ( P x ) .
Now we argue that T \mathcal{T} T is a valid tree decomposition of G G G . For every edge e = ( u , v ) ∈ G e=(u,v)\in G e = ( u , v ) ∈ G , there is a face f f f containing both u u u and v v v . By construction, there is a bag Y Y Y containing f ∗ f^{*} f ∗ in T H \mathcal{T}_H T H and hence the bag B Y ∈ T B_Y\in\mathcal{T} B Y ∈ T contains both u u u and v v v .
For every vertex v ∈ G v\in G v ∈ G , we need to show that the bags containing v v v form a connected subtree of T \mathcal{T} T . Let D v D_v D v be the set of descendants of v v v in the tree of F F F containing v v v ; note that D v D_v D v also includes v v v . Let S = { f ∗ : f is a face of G incident to a vertex in D v } S=\{f^{*}:f\text{ is a face of }G\text{ incident to a vertex in }D_v\} S = { f ∗ : f is a face of G incident to a vertex in D v } . The observation here is that S S S induces a connected subgraph of H H H . Let T H ( S ) \mathcal{T}_H(S) T H ( S ) be the subtree of T H \mathcal{T}_H T H containing all the bags that intersect S S S . Then T H ( S ) \mathcal{T}_H(S) T H ( S ) is connected. This means { B Y : Y ∈ T H ( S ) } \{B_Y:Y\in\mathcal{T}_H(S)\} { B Y : Y ∈ T H ( S )} is a connected subtree of T \mathcal{T} T and contains all the bags containing v v v .
Since T \mathcal{T} T is a tree decomposition of G G G , there is a bag B B B of T \mathcal{T} T that is a 1 / 2 1/2 1/2 -balanced separator of G G G . Such a bag B B B contains O ( s ) O(\sqrt{s}) O ( s ) rooted paths of F F F , which gives the lemma. ∎