Manuscript Offprint
arXiv:2610.11944Faster Planar Graph Algorithms for Connectivity Problems via Meanders
Abstract
In this paper, we refine the dynamic programming framework based on the sphere cut decomposition designed by Dorn, Penninkx, Bodlaender, and Fomin (ESA 2005) to obtain faster subexponential algorithms for connectivity problems on planar graphs. We investigate the relationship between these problems and meanders, which are simple closed planar loops that intersect a fixed line in a given number of points. By combining dynamic programming with techniques from meandric system analysis and the use of fast matrix multiplication by Dorn (ESA 2006), we obtain improved algorithms for planar connectivity problems.
We show that the number of meanders on 2n crossings is , which improves the previous upper bound of by Albert and Paterson (FPSAC 2004). This then gives the best-known classical upper bounds on the deterministic time complexity of several planar graph problems with polynomially-bounded weights, namely for the PLANAR TRAVELLING SALESMAN problem, for PLANAR LONGEST CYCLE/PATH, for PLANAR CONNECTED DOMINATING SET and for PLANAR STEINER TREE. Notably, this leads to the best-known deterministic complexity for the PLANAR HAMILTONIAN CYCLE problem.
Contents
1 Introduction and Overview 2
2 Preliminaries 6
3 Faster Dynamic Programming over Sphere Cut Decomposition 9
3.1 The Dynamic Programming Algorithm 10
3.2 Speedup by Meandric Systems 13
3.3 Planar Longest Cycle/Path 17
4 Tree Optimization Problems 17
4.1 Eulerian Outline 18
4.2 Planar Connected Dominating Set 18
4.3 Planar Steiner Tree 20
5 Forest Optimization Problems 21
5.1 Forest Meandric Systems 21
5.2 Planar Feedback Vertex Set 24
6 Conclusions and Open Problems 24
7 Acknowledgements 25
Appendices 29
A Reductions to Bridgeless Instances 29
B Complexity of the Planar Longest Cycle/Path 30
C Proof of Theorem 5 31
D Corrections to Previous Works 33
An important class of planar graph problems is the set of connectivity problems in which, broadly speaking, we are asked to find an optimal subgraph subject to topological constraints. This class of problems is the main focus of our work and includes relevant examples such as PLANAR HAMILTONIAN CYCLE, PLANAR TRAVELLING SALESMAN, and PLANAR STEINER TREE. Whether the logarithmic factor in the exponent of the running time of exact separator-based algorithms for these problems could be removed was first answered positively for PLANAR HAMILTONIAN CYCLE in [DKW06], where the complexity of the divide-and-conquer technique was brought down to , albeit with some large constant in the base of the exponent. Since then, such complexity has been obtained for other planar connectivity problems as well [DPBF10; Cyg+22; Pin16], whose complexity has also been proven to be optimal under the SETH conjecture [Cyg+22]. The main open questions thus lie in determining the best constants for the factor in the exponent.
To reach this goal, modern techniques often combine dynamic programming (DP) with tools from the area of parameterized complexity. For instance, dynamic programming over a tree decomposition of the input graph G yields algorithms with running time for a wide range of problems, where is the treewidth of G [Bod88]. For planar graphs on n vertices, , which directly leads to the aforementioned subexponential running times.
Dorn, Penninkx, Bodlaender, and Fomin showed a refinement of such dynamic programming using the sphere cut decomposition of the input graph [ST94], leading to improved running times [DPBF10]. Such a decomposition is defined for an embedding of the graph on the surface of a sphere. Informally, the sphere cut decomposition can be viewed as a recursive binary partition of the surface into regions, where each region is bounded by a simple closed curve called a noose. They show that there exists such a decomposition in which every noose intersects at most vertices, where denotes the branchwidth of the graph, and it can be found efficiently [GT08]. Dynamic programming over this decomposition then yields algorithms with running time . Since it is known that [FT06], the desired subexponential complexity follows.
Current Bounds. Among the results of [DPBF10], the authors obtained an -time algorithm for PLANAR HAMILTONIAN CYCLE and PLANAR TRAVELLING SALESMAN, an -time algorithm for PLANAR LONGEST PATH, and an -time algorithm for PLANAR FEEDBACK VERTEX SET. In a related work, Dorn showed that fast matrix multiplication results can be applied to speed up these dynamic programming algorithms; however, in the presence of weights, this incurs a multiplicative factor of W in the complexity, where W is the largest weight in the graph [Dor06]. This implies, for example, that PLANAR TRAVELLING SALESMAN can be solved in time and PLANAR LONGEST PATH in time. For unweighted problems, the factor W disappears; therefore, for instance, PLANAR HAMILTONIAN CYCLE can be solved in time.
Subsequent works introduced more powerful techniques that considerably improved the complexity of planar connectivity algorithms, specifically Cut & Count [Cyg+22] and the rank-based approach [BCKN15]. Pino, Bodlaender and Van Rooij combined these techniques with branchwidth to obtain state-of-the-art complexities in the deterministic unbounded-weight setting and in the randomized polynomial-weight setting [PBR17]. For example, they showed deterministic time and randomized time algorithms for the TRAVELLING SALESMAN problem. Nonetheless, the best deterministic algorithm in the polynomial-weight regime still remains Dorn's algorithm [Dor06] (when adjusted for the current best upper bound on the matrix multiplication constant [Alm+25]). For PLANAR HAMILTONIAN CYCLE, until now, this has been the best-known deterministic complexity. The authors of [PBR17] additionally applied their approach to the PLANAR CONNECTED DOMINATING SET, PLANAR STEINER TREE and PLANAR FEEDBACK VERTEX SET problems. Together with [Dor06], these two papers provide the state-of-the-art complexities for these problems, see Table 2.
Meanders. A meander of order n is a Jordan curve that crosses a horizontal line in 2n points, see Fig. 1. Meanders are planar objects with various intriguing connections to different areas of mathematics, physics, and computer science, including computational geometry [HMRT86], knot theory [BM20], statistical physics [DGG00], as well as labyrinths and recreational mathematics [Zvo24]. The systematic study of meanders was initiated in [LZ92; LZ93; Bac99], and a lot of effort has gone into calculating the asymptotic growth of the number of meanders of order n [AP05], called the meandric number.

Figure 1: A meander of order 6.
It has already been noticed in [DPBF10] that the complexity of the dynamic programming algorithms for planar connectivity problems can be improved by ignoring some planar configurations that cannot lead to a solution. Bobier and Sawada [BS10] noticed that such configurations are closely related to meanders. In this work, we explore this elegant connection in greater depth and show that planar connectivity problems admit improved algorithms by relating them to certain types of meanders and by excluding forbidden planar arrangements that cannot be related to such configurations.
In the algorithm of [DPBF10] for the PLANAR HAMILTONIAN CYCLE, the meanders implicitly appear as follows. Conceptually, for each noose of the sphere cut decomposition, dynamic programming calculates all possible (topological) ways in which a partial Hamiltonian cycle of the corresponding subgraph (which is just a collection of paths that pass through every vertex in the subgraph) can intersect this noose. The merging step of the DP tries to combine two such partial solutions from the two adjacent nooses, which overlap in a continuous curve which we call the frontier. The topology of these partial solutions can be such that combining them together induces a cycle disconnected from the rest of the graph. Such a situation cannot result in a Hamiltonian cycle, hence it can be computationally ignored, reducing the running time of the algorithm. The allowed configurations on the frontier are not meanders but rather meandric systems, which allow for multiple disconnected curves, which are not necessarily closed. Bobier and Sawada [BS10] noticed that in the PLANAR HAMILTONIAN CYCLE case, the relevant type of meandric systems are acyclic meander systems, i.e., those that avoid cycles (no closed curves are allowed). Denoting the asymptotic number of such systems on crossings by , a trivial upper bound is . The authors of [DPBF10] gave a better bound of , which resulted in a faster algorithm for the PLANAR HAMILTONIAN CYCLE. Afterwards, Bobier and Sawada calculated the exact numbers of such systems up to , but did not prove a better upper bound on .
Our Results. In this work, we use meanders and techniques from meander analysis to improve algorithms and their complexities for well-known planar graph connectivity problems, such as PLANAR TRAVELLING SALESMAN, PLANAR LONGEST CYCLE/PATH, PLANAR CONNECTED DOMINATING SET, PLANAR STEINER TREE, and PLANAR FEEDBACK VERTEX SET.
First, we show that the best-known upper bound on the meandric numbers from [AP05] can be applied to the acyclic meandric systems. By implementing the corresponding algorithm from [AP05] and running the software on a modern machine, we obtain a refined upper bound on z. In fact, our simulations provide the new best upper bound on the meandric numbers themselves, which improves upon their upper bound of 12.901.
Theorem 1. The number of meanders of order n is at most , and .
The new upper bound on z improves the complexity upper bound of the algorithms for the PLANAR TRAVELLING SALESMAN and PLANAR LONGEST CYCLE/PATH in [DPBF10]. These two problems belong to what we call the cycle optimization class of problems, in which we need to find an optimal cycle of the given graph. Regarding the corresponding forbidden meandric systems, in such problems we are excluding configurations that contain multiple Jordan curves, see Fig. 2a.
For planar graph problems like PLANAR CONNECTED DOMINATING SET and PLANAR STEINER TREE, the goal is to find an optimal subtree of the given graph; we call the class of such problems the tree optimization problems. We adapt the meander technique to this case by interpreting the Eulerian tour of the subtree as a Jordan curve outline, which allows us to show improved DP algorithms for these problems as well. In this case the forbidden meandric systems again are those that contain multiple Jordan curves, see Fig. 2b.
Finally, for the PLANAR FEEDBACK VERTEX SET problem, it is known that it can be interpreted

(a)

(b)

(c)
Figure 2: Illustration of some forbidden closed meandric configurations. The vertices of a graph are represented by small black circles and its edges are represented by solid and by dashed segments. The solid edges correspond to potential solutions, which induce forbidden situations. (a) For the cycle optimization problems (e.g. PLANAR TRAVELLING SALESMAN), the forbidden situation is a collection of cycles which corresponds to a closed meandric system with multiple loops; (b) for the tree optimization problems (e.g. PLANAR STEINER TREE), a forbidden situation is, for instance, a subforest of the graph with multiple components which again corresponds to a closed meandric system with multiple loops; and (c) for the forest optimization problems (e.g. PLANAR FEEDBACK VERTEX SET), the forbidden situation is a subgraph containing a cycle which corresponds to a forbidden closed forest meandric system because it contains an enclosed loop.
as finding some optimal subforest of the graph; problems such as this we place in the class of forest optimization problems. We then define and investigate the corresponding forest meandric systems. The forbidden instances in this case are configurations that contain a nested Jordan curve, see Fig. 2c. To count the number of such systems, we analyze the generating function of the corresponding formal language, similarly as in [AP05]. This gives an improved DP algorithm for this problem as well.
We then show that these methods can be combined with fast matrix multiplication [Alm+25] to obtain improved complexities in the setting with polynomially-weighted graphs in the same manner as in [Dor06]. All of our final classical complexities are given in Table 1. The table describes upper bounds on the complexity of DP, augmented by either the fast matrix multiplication technique (FMM), or meanders, or both. The FMM-based algorithms have a linear dependence on W, which is the maximum weight in the input graph. We will refer to the setting in which as the bounded-weight setting, and to the setting with arbitrarily-large weights as the unbounded-weight setting.
Bounded-Weight Setting. Our results improve the best-known deterministic complexity of several planar graph problems in the bounded-weight setting, including PLANAR TRAVELLING SALESMAN, PLANAR LOGEST CYCLE/PATH, and PLANAR CONNECTED DOMINATING SET, see Table 2, where the improved complexities are underlined. In particular, this gives the current best-known deterministic running time for the PLANAR HAMILTONIAN CYCLE problem. However, we note that the randomized Monte Carlo algorithms of [PBR17] are still more efficient than our algorithms for all of the given problems. Nonetheless, it is worth mentioning that since our complexities depend on the value of z, improving the upper bound on z would immediately improve the asymptotic estimates.
We have also identified a number of discrepancies in the analysis of the running times in [Dor06] for PLANAR CONNECTED DOMINATING SET, PLANAR STEINER TREE and PLANAR FEEDBACK
| Problem | DP[DPBF10] | DP+ Meanders (this paper) | DP + FMM [Dor06] | DP + FMM+ Meanders (this paper) |
|---|---|---|---|---|
| PLANAR TSP | ||||
| PLANAR LONGEST CYCLE/PATH | ||||
| PLANAR CONNECTED DS | ||||
| PLANAR STEINER TREE | ||||
| PLANAR FEEDBACK VS |
Table 1: Comparison between complexities obtained by combinations of different techniques: dynamic programming (DP, [DPBF10]); dynamic programming together with fast matrix multiplication (DP + FMM, [Dor06]); meandric systems (Meanders, this paper). This table is dedicated to comparing the power of the techniques, as for some of the problems [DPBF10; Dor06] have given slightly improved complexities using (weaker) meandric arguments. The two leftmost columns are set in the unbounded-weight setting, and the two rightmost columns are set in the bounded-weight setting (W denotes the maximum weight in the graph). For the state-of-the-art complexities of the five problems, see Table 2.
| Problem | Deterministic [Dor06] | Deterministic (this paper) | Randomized [PBR17] | Deterministic [PBR17] |
|---|---|---|---|---|
| PLANAR TSP | ||||
| PLANAR LONGEST CYCLE/PATH | ||||
| PLANAR CONNECTED DS | ||||
| PLANAR STEINER TREE | ||||
| PLANAR FEEDBACK VS |
Table 2: Comparison of our results with the previous state-of-the-art complexities. The symbol denotes corrected complexities (see Appendix D), fixing discrepancies in the analysis in previous works. The underlined entries are results of this paper that improve the state-of-the-art complexities for the corresponding problems, except for the last, where the existing unbounded-weight algorithm is more efficient. The bounds from the previous results were updated using the best-known value [Alm+25]. The complexity denoted by follows from [PBR17], see Appendix B.
VERTEX SET, and a corner-case flaw in the algorithm for PLANAR STEINER TREE in [DPBF10]. Those have resulted in incorrect smaller complexities; our tables contain the actual complexities after making necessary corrections. We describe the issues in detail in Appendix D, where we also provide corrections in the complexity analysis.
2 Preliminaries
In this section, we provide preliminaries and basic definitions. For standard concepts and terminology about graphs and their embeddings, we refer the reader to [Die12]. Unless stated otherwise, all graphs in this paper are connected, finite, and simple.
Graph Notation. For an undirected graph , we denote by and the set of vertices and the set of edges of , respectively, and we denote by the cardinality of . We also denote by the degree of the vertex of with the minimum degree. A curve is simple if it does not self-intersect. A Jordan arc (resp. Jordan curve) is an open (resp. closed) simple curve in the plane. A planar drawing of a graph in the plane maps each vertex of to a point and each edge to a Jordan arc connecting and that contains no other vertex and does not intersect any other arc, except at a common endpoint. A graph is planar if it admits a planar drawing. Analogously, we can define a spherical drawing as a drawing of on the surface of a sphere. It is easy to see that a graph is planar if and only it admits a spherical drawing. An edge is a bridge if its removal increases the number of connected components of . A graph is said to be bridgeless if it contains no bridges.
Problems. In this paper, we consider the following five problems. For a planar graph , let be a weight function defined on the edges of . In the PLANAR TRAVELLING SALESMAN problem (Planar TSP), we seek the minimum length of a cycle in that passes through all vertices in exactly once (a Hamiltonian Cycle). In the PLANAR LONGEST CYCLE/PATH problem, we seek the maximum weight of a cycle/path in . In the PLANAR STEINER TREE problem, we are given a subset of terminal vertices and we seek the minimum total edge weight of a connected subgraph such that .
For other problems, let be a vertex weight function. In the PLANAR CONNECTED DOMINATING SET problem, we seek the minimum total weight of a set such that for any vertex , either or is dominated by a neighbor, i.e., a neighbor of is in , and the subgraph induced by is connected. Finally, in the PLANAR FEEDBACK VERTEX SET problem, we seek the minimum weight of a set such that every cycle in contains at least one vertex from .
In Appendix A, we show how all these problems can be reduced in polynomial time to the case of bridgeless graphs.
Sphere Cut Decomposition. Let be a planar graph on vertices. A branch decomposition of is a pair , where is an unrooted ternary tree and is a bijection between the set of leaves of and the edges of . For an edge , define and as the disconnected subtrees obtained by removing from . Let be the subgraph of induced by the edge set for . The middle set of an edge is then defined as . The width of the branch decomposition is the maximum of over all . The branchwidth of is the minimum width over all branch decompositions of , denoted by (we will sometimes shorthand it simply by , as the argument will always be ). It is well-known that for an -vertex planar graph , we have [FT06].
Consider a topological graph , i.e., a planar graph with an associated spherical drawing. The connected components of the sphere obtained by removing from it are called faces. An -arc is a Jordan curve on the sphere. A noose of is an -arc that meets only at vertices and such that its intersection with a face is either empty or connected. A sphere cut decomposition of is a branch decomposition equipped with an ordering , where for each there exists a noose such that and it bounds two open disks and of the sphere so that lies entirely in . For each , is a cyclic ordering of the vertices of mid on the noose (clockwise or counter-clockwise). See Fig. 3 for an illustration.
An optimal sphere cut decomposition can be computed efficiently:
Theorem 2 ([ST94; GT08; DPBF10; MP15]). Let G be an n-vertex, connected, bridgeless, topological graph. There exists a sphere cut decomposition of G of width and such a decomposition can be constructed in time.
G


Figure 3: A topological graph G embedded on a sphere and a sphere cut decomposition of G.
Non-Crossing Partitions and Matchings. Let and let be a partition of . Consider a geometric representation of such that the elements of are represented by points labeled in clockwise order along a circle, and each set is represented by the convex polygon (possibly consisting of a single point or of a single edge) whose vertices correspond to the elements of . The partition is non-crossing if the polygons representing the sets do not intersect. It is easy to see that is non-crossing if there do not exist such that and for some . A partition in which every set has size two is a matching. Referring to the above geometric representation, each matched pair is connected by a straight-line segment. It is well-known that the numbers of non-crossing partitions and matchings on elements are the -th and -th Catalan numbers, respectively [Kre72].
Non-crossing partitions and non-crossing matchings can be uniquely represented by balanced bracket sequences in the following way [HMRT86]. Lay out the circle and the n points on a horizontal line segment. For a matching, draw each edge as an arc connecting the corresponding points above this segment. For a partition, each point is assigned a pair of brackets, one directly to the left and one to the right. For a set of the partition, the first point is assigned a pair of brackets ([, ], the last point ([, ]), and all points in the middle are assigned ([, ]). The sides of the polygon corresponding to then are drawn as arcs between the corresponding brackets, see Fig. 4. The only exception is when is a singleton, in which case the corresponding point is assigned a pair ([, ]). The resulting bracket sequence in both cases is balanced. The place where the circle is cut defines the starting point of the bracket labeling. In our applications, will often represent a connected subgraph in the interior of the circle that touches the circumference only at the points of . Thus, the shaded regions of the figure represent the topology of the connectivity of the subgraphs.


Figure 4: The bracket labelings of a non-crossing matching (left) and a non-crossing partition (right).
Meanders. A meander of order n is a Jordan curve that crosses a horizontal line in 2n points, see Fig. 5. Two meanders are equivalent if one can be obtained from the other by stretching and moving the curves without creating new intersections. The number of meanders of order is called the meandric number and is denoted by . An explicit formula for the meandric numbers is not known; nonetheless, close lower and upper bounds are known. Albert and Paterson showed that the limit exists and [AP05]. Using numeric calculations, Jensen and Guttmann gave an estimate [JG00].
A meandric system with n crossings is a collection of pairwise non-intersecting Jordan arcs and Jordan curves that cross a horizontal line in n points, see again Fig. 5. Additionally, the open ends of the Jordan arcs must extend either to the left or the right direction; if the ends are allowed to extend in both directions, we call a system bidirectional; if the ends are allowed to extend only in one direction, we call a system unidirectional, and w.l.o.g. assume that the ends are extended to the right. We will use the terminology of [BS10] with a slight deviation: we will call a meandric system open if Jordan arcs are allowed, and closed otherwise; acyclic if it contains no Jordan curves (the [BS10] definition of open systems includes the acyclicity).


Figure 5: A meander of order 4 (left) and a bidirectional open meandric system that is not acyclic (right), with the respective bracket labelings.
We can use the bracket labeling of non-crossing matchings also for the meandric systems; each crossing point has one bracket on each half-plane defined by the line. Consider the half-plane above the line; the one below is analogous. An opening bracket [ (resp. closing bracket ] ) besides the point denotes that either the next intersection of the arc with the line is to the right (resp. left) or that the arc extends to the right (resp. left). Note that for an arbitrary meandric system the labelings on each half-plane will not necessarily be balanced bracket sequences; unmatched brackets correspond to the open ends of the arcs extending to the left and to the right.
Complexity Notation. To denote the complexity of our algorithms, we use the standard big-O notation, which we denote by . We write to denote and to denote . We study the classical algorithms in the standard word RAM model, in which if the size of the input is , the arithmetic operations on -bit integers and memory operations are assumed to take unit time.
3 Faster Dynamic Programming over Sphere Cut Decomposition
In this section, we first describe the dynamic programming scheme of Dorn, Penninkx, Bodlaender and Fomin [DPBF10] on the sphere cut decomposition and its enhancement using fast matrix multiplication, as shown by Dorn [Dor06]. Our review of these tools and of their analysis is necessary to describe our approach to speed up both these frameworks using meandric systems. A reader familiar with the frameworks of [DPBF10; Dor06] may continue to Section 3.2, after getting familiar with our notation introduced in the first part of this section. To facilitate the understanding of the general scheme and of our meandric framework, in this section, we describe them for solving the
PLANAR TRAVELLING SALESMAN problem. This approach can be applied to other cycle optimization problems (a class of planar graph problems in which we need to find an optimal cycle in the graph), for example, we adapt it to PLANAR LONGEST CYCLE/PATH at the end of the section. In the subsequent sections, we will show how to employ the framework to design improved exact algorithms for several other planar graph problems.
3.1 The Dynamic Programming Algorithm
In this section, we describe the dynamic programming algorithm of [DPBF10], with slight modifications for our purposes. The algorithm first computes an optimal sphere cut decomposition , see Theorem 2. Let be the width of this decomposition. The algorithm then will iterate over all edges and compute the length of the optimal Hamiltonian cycle that passes through if such exists; this will add only multiplicative factor in the complexity. Let be the edge such that is a leaf in and . The noose that corresponds to this edge partitions the sphere into two disks, where one of those disks contains only the edge , and the other contains . We call the root noose.
Root the tree T at the vertex . The algorithm recursively computes a DP table for each edge of T using bottom-up dynamic programming. Each of those tables stores information about partial solutions computed on the subgraph lying inside the noose of the corresponding edge. We have a small difference from [DPBF10] in that we specifically choose the root noose to be of constant length, because the processing of it is slightly different from processing the internal nooses ([DPBF10] instead pick an arbitrary edge in T and append an additional fictitious root edge). In this way we avoid dealing with the complexity of processing the root noose, as it will take constant time.
Let be an edge of , and denote by the subgraph of corresponding to the subtree of bounded by the noose . A partial Hamiltonian cycle of is a collection of disjoint paths (possibly consisting of a single vertex) in such that each vertex of is in some path and each of the paths has both endpoints in mid(e). Fig. 6 shows (left side) two adjacent nooses and (right side) their partial Hamiltonian Cycles. Partial Hamiltonian cycles are used to construct, bottom-up, other partial Hamiltonian cycles of increasing size, with the purpose that at the root, they can be used to construct a full Hamiltonian cycle of . To compose a partial Hamiltonian cycle of with other partial Hamiltonian cycles, it is important only to retain the topology of its intersection with mid(e). To model this topology we introduce labels. A labeling of a vertex subset is a mapping , where is the chosen set of labels.
For a partial Hamiltonian cycle of , the labeling is defined as follows. Each vertex of mid(e) is assigned one of the four symbols . A vertex is assigned 0 or 2 if the degree of in is 0 or 2, respectively. Otherwise, the vertex is assigned either the label [ or ]. These labels define a non-crossing matching of the vertices of mid(e) labeled by the bracket symbols. The cyclic ordering over the vertices is prescribed by . Fig. 6 shows labelings for two adjacent nooses (right). The arc of the matching between two vertices labeled by [ and ] corresponds to a path of that connects them. Between the two endpoint vertices, a path may pass through other vertices of mid(e), labeled by 2.
For a labeling of mid, define the DP table value as the minimum weight of a partial Hamiltonian cycle of compatible with , or if none exists. Now we describe how to construct the DP table for an edge , and denote by for simplicity. If is an edge incident to a leaf of , encloses a single edge of , so the valid labelings are (with weight 0) and (with weight ). Otherwise, we look at its two child edges and . We assume that the algorithm has already computed the DP tables for and . Let the nooses of , , and be , and , respectively. By the definition of the sphere cut decomposition, the union of the disks and bounded by and , respectively, is equal to the disk bounded by . Following the notation of [Dor06], we define the following sets of vertices on these nooses (illustrated in Fig. 6 on the left): (i) the left set ; (ii) the right set ; (iii) the forget (which we also call frontier) set ; (iv) the intersection set .


Figure 6: On the left, the left, right, forget and intersection sets L, R, F and I. In green, the order of the labeling for , and in blue, the order of the labelings on and . On the right, a partial Hamiltonian cycle of and the corresponding vertex labelings for the nooses and . The paths of the partial Hamiltonian cycle pass through all vertices of , internal in and , which are not depicted for clarity. In green, the labeling on the boundary on , and in blue, feasible labelings and on and .
The nooses and enclose the subgraphs and of , respectively. Note that , since there are at most two points on the sphere where the noose intersects with both and ( and ). In the rest of the paper, we will ignore in the complexity analysis for simplicity, since it does not impact the asymptotic complexity. The left side of Fig. 6 graphically depicts the subsets , , , and . In the example in the figure, there is a single intersection vertex. We fix the clockwise ordering in and counter-clockwise ordering in , both starting from the point . The right side of Fig. 6 shows a partial Hamiltonian cycle of , which induces labelings and for and , respectively.
The DP table for is then constructed as follows. We additionally call the boundary. We first bruteforce all possible label assignments to the boundary and, for each such labeling , we determine whether it agrees with some partial Hamiltonian cycle of . To check that, we proceed as follows.
First, we bruteforce all possible double label assignments on the frontier and on the intersection vertices, i.e., each of these vertices is assigned a label on both sides of the intersection . Furthermore, we proceed with this double labeling only if at each vertex in I, its pair of labels is consistent with its label in (for example, a pair of labels is not consistent with the boundary labels 2 or 0). Then, when all the labels are fixed, we first check whether such a labeling is valid, i.e., whether it can, in principle, define a feasible partial Hamiltonian cycle. This is true if, firstly, the bracket sequences in each of the nooses and are correct. Secondly, the labelings on the frontier must not induce a cycle. Finally, the vertices with label 2 can always be joined to some path without changing the topology (except only if the noose contains a label 2 but no bracket labels). The vertices with label 0 can be ignored. All these conditions can be checked in polynomial time in terms of .
Second, if the labeling is valid, we proceed as follows. Note that the labeling at the frontier and at the intersection vertices together with the labels from for the vertices in and completely define a labeling of and a labeling of , respectively (see Fig. 6 for an example). We can check efficiently whether and admit partial Hamiltonian cycles corresponding to and , respectively, by checking whether and . The table needs to be implemented as an efficient search data structure, e.g., a balanced binary tree. If both tests succeed, we update to be the minimum of its current value and .
Finally, since we assumed that belongs to the Hamiltonian cycle, we look up the value of for , so is the corresponding solution candidate.
Before giving the time complexity of this algorithm for Planar TSP, we use this analysis to outline the general complexity result that is obtained by applying this dynamic programming strategy for an arbitrary connectivity problem. For a given problem, suppose an appropriate noose labeling scheme has been chosen. Denote the number of labeling options considered on the boundary and on the frontier by and , respectively (we will use this notation in all of our algorithms further on), and assume that the corresponding labelings can be generated in and time, respectively. Define the constants and . Then we have the following general theorem, which is implicit in [DPBF10].
Theorem 3. Assume that a problem on a weighted graph can be solved by the above deterministic dynamic programming algorithm for a certain labeling scheme with constants and , where . The complexity of the algorithm then is
We give a very short proof which considerably simplifies the analysis of [DPBF10].
Proof. The complexity of an iteration of the algorithm can be calculated by examining the total number of labelings. This number is at most
By the definition of the branch decomposition, with , we have and . Therefore, if for some , then . Then the total number of options is asymptotically upper bounded by
Therefore, the worst case is achieved when and , . Since the size of is , the total running time for the dynamic programming is .
This theorem implies the following result for the PLANAR TRAVELLING SALESMAN problem.
Theorem 4 ([DPBF10, Lemma 1]). There exists a deterministic algorithm that solves the PLANAR TRAVELLING SALESMAN problem in time.
Proof. The label (or a pair of labels) for a vertex is picked independently of the others, so the generation of the labelings has the same asymptotic complexity as the number of labelings.
On the boundary, we have . On the frontier, there are 6 possible label pair options for each vertex, , , and hence . Thus, and and the bound in the statement follows.
Dorn showed that one can use fast matrix multiplication to obtain the following improvement [Dor06], see Appendix C where we provide more background on fast matrix multiplication and revisit the proof of the following theorem for completeness.
Theorem 5 ([Dor06, Theorem 4]). Assume that a problem on a weighted graph with weights at most W can be solved by the above deterministic dynamic programming algorithm for an appropriate labeling scheme with constants and , where . The complexity of the algorithm then is
Compared to Theorem 3, the improvement is in the reduction of the constant in the power of from 1 to . Here, is the fast matrix multiplication constant . However, this comes with an additional factor of in the complexity.
This can be leveraged to obtain the following result:
Theorem 6. There exists a deterministic algorithm that solves the PLANAR TRAVELLING SALESMAN problem in time.
3.2 Speedup by Meandric Systems
Let us focus again on the PLANAR TRAVELLING SALESMAN problem. With the above labeling scheme, we have . The quantity of the total number of labelings to be considered can be improved by excluding some invalid labelings. In particular, we can exclude the frontier labeling pairs that induce a cycle, since they cannot be completed to a Hamiltonian cycle of ; see, e.g., Fig. 5 (right).
The number of labelings can be calculated in the following way: first pick a subset of vertices for which to assign any of the 4 pairs of labels ([,]), ([,]), ([,]), and ([,]). Each of the other vertices is assigned either the pair of labels (0,2) or (2,0). The two bracket sequences in then should define a meandric system. As mentioned in Section 1, Bobier and Sawada were the first to notice that the valid frontier configurations are exactly the unidirectional open acyclic meandric systems [BS10]. The unclosed arcs of these systems extend only to the right, since (see Fig. 6) the labelings of and start at . The acyclicity implies no separate disconnected cycles. Let be the number of such meandric systems on crossings and let be the number such that .
Trivially, , as each crossing has 2 bracket labels on both sides. In [DPBF10], the authors already gave a custom upper bound of , without explicitly relating the configurations to the meandric systems. They proved it by counting the number of different classes of frontier labelings by iteratively multiplying a small matrix, and analyzing the largest eigenvalue of this matrix. This improves the asymptotic upper bound on :
Therefore, . Hence, for the PLANAR TRAVELLING SALESMAN problem, by plugging this value into Theorem 4, the authors of [DPBF10] obtain an algorithm having time complexity, and by plugging this value into Theorem 6 the work [Dor06], using fast matrix multiplication, obtains an algorithm having time complexity.
Bobier and Sawada have numerically calculated the exact values of up to [BS10]. However, the authors did not improve the upper bound on the value of . As a warm-up, first we point out a marginally better bound that we can get by only using their results. They have also calculated the exact numbers of bidirectional open acyclic meandric systems up to (however, is claimed to be incorrect by [OEI26]). Relying on the largest correct value , we can partition the vertices of the unidirectional acyclic system into consecutive groups of size at most 26, let then the labeling in the -th part be . Then, the meandric system defined by is bidirectional and acyclic. Hence,
Next, we show that a stronger upper bound follows from the known upper bound on the meandric numbers [AP05].
Theorem 7. .
Proof. To obtain the best currently-known upper bound on the number of meanders of order , Albert and Paterson used the Goulden-Jackson cluster method [GJ83]. For an alphabet and a set , a -factor-free word in is a word that does not contain any word from as a substring. Formally, the language of -factor-free words is . The cluster method can be used to obtain an asymptotic estimate on the number of words in of fixed length.
The authors encode meandric systems with the alphabet . Each of these symbols describes the labeling on both sides of a crossing. This corresponds to our bracket labeling as , and Let be the set of words that correspond to words containing a closed submeander which passes through the first and the last crossing (so the word is of the form ). Other strands may intersect the interior of the horizontal line, for example, .
The language contains , as meanders do not contain a disconnected loop. An upper bound on the number of length-n words in then also gives an upper bound on the number of length-n words in . In this way, they were able to show an upper bound of . Instead of the whole language , they found a representation of a smaller set by a computer program and forbade the words from . Now note that includes the language of bidirectional acyclic meandric systems, since all that was done was to forbid the submeanders. Since each unidirectional meandric system is also bidirectional and since , we have , and the statement follows.
Improved Upper Bound on the Meandric Numbers. The upper bound is not tight, as already mentioned in [AP05], and the authors conjectured that the techniques could be pushed further. By considering larger sets , the upper bound provided by the Goulden-Jackson cluster method is certain to be tighter. Considering that the work [AP05] was developed over 20 years ago, it is clear that we can obtain an improved upper bound by running their algorithm on a computer with modern resources.
We do not describe the algorithm itself here, as it is already laid out in [AP05], but we provide some intuition. The language of forbidden words is a finite language which can be constructed as follows. First, the algorithm generates a set of normalized forbidden words of of fixed length, called standard representatives, using backtracking. Each such word contains a meander as a factor. A fragment is called a shift if its effect on a vertical cross-section of a meandric system is a vertical shift either upwards or downwards by some offset (for example, ULD or LRR). The standard representatives are minimal, in the sense that each shift factor of such words is in its simplest form (i.e., consist either only of L or only of R symbols). Each word in can be obtained from one standard representative by substituting shifts with more complex shifts. Each complex shift in turn consists of jumps, which are simplest shifts. The jumps are also generated by backtracking, and then are used to build shifts.
Instead of simply generating the words in , the algorithm builds generating functions for standard representatives that describe all the words that can arise from each of them. These are then used for the Goulden-Jackson cluster method, which constructs a linear system of equations. This system is then solved iteratively and numerically; [AP05] show that such a process converges to the (unique) solution. This solution is then used to construct the generating polynomial of , the convergence radius of which defines the corresponding upper bound.
To implement the procedure, we have used ChatGPT-5.6 Sol. The model was able to implement the algorithm, along with a few algorithmic optimizations. The full code and results are available at [CLBV26]. By increasing the length of the standard representatives n, we obtain better upper bounds. Albert and Paterson have calculated the upper bound up to n = 16, which is 12.901. Using our program, we have calculated the values up until n = 24, which gives 12.805332 ... Thus, we have an improved upper bound on z:
Theorem 1. The number of meanders of order n is at most , and .
Table 3 lists our upper bounds for various values of n. The results of our program are slightly better than [AP05], which can be explained by more extensive generation of words (longer jumps, shifts are constructed of a larger number of jumps, more iterations etc.). The values are close, but exact reproduction of their results cannot be made because [AP05] do not describe all the parameters of their calculation.
Our results confirm the suggestion of [AP05] that the upper bound can be pushed to around 12.8. However, we also see that the convergence of the upper bound is still not very fast; the obtained upper bounds closely follow the curve , as we can see in Fig. 7. Proving a similar
| n | This paper | [AP05] |
|---|---|---|
| 2 | 13.511115 | — |
| 4 | 13.351046 | — |
| 6 | 13.171304 | 13.171 |
| 8 | 13.084026 | 13.086 |
| 10 | 13.015332 | 13.018 |
| 12 | 12.965070 | 12.970 |
| 14 | 12.925273 | 12.931 |
| 16 | 12.892914 | 12.901 |
| 18 | 12.865872 | — |
| 20 | 12.842819 | — |
| 22 | 12.822854 | — |
| 24 | 12.805332 | — |
Table 3: Upper bounds on the meandric numbers.
upper bound with the current method would be infeasible, since it would require to be of order of several thousands. Such an upper bound would give .

Figure 7: Upper bounds for the meandric number depending on the length of the standard representatives for the Goulden-Jackson cluster method. The dashed approximating curve is the function .
Improved Complexity Upper Bounds for Planar TSP. Let us now return to the PLANAR TRAVELLING SALESMAN problem. Note that the list of unidirectional acyclic meandric systems of length can be generated in time as follows. Start with an empty string and generate labeling pairs for the meandric system using backtracking, each time trying to label the last unlabeled vertex with all of the 4 options ([, ], ([, ]), ([, ]), and ([, ]). Then check if the new labels create a contradiction or a closed disjoint loop in time. If not, then continue to generate the labeling recursively.
The time complexity of this algorithm is still , because for any valid prefix of the labeling, if it contains no contradictions or closed loops, labeling all the remaining vertices with ([, ]) creates a valid unidirectional acyclic meandric system. Hence, the size of the backtracking tree is , where at each step we perform some -time computation. Then we have the following result.
Theorem 8. There exist deterministic algorithms that solve the PLANAR TRAVELLING SALESMAN problem in and time.
This improves the best-known complexity for the PLANAR TRAVELLING SALESMAN problem in the bounded-weight setting by [Dor06] (updated with the improved ). In the unbounded-weight setting, the best complexity is given by a more recent work improving the complexity of some planar connectivity problems, which is [PBR17], which our classical algorithm does not improve.
As a corollary, our theorem also improves the best-known complexity of the PLANAR HAMILTONIAN CYCLE, since it is just the unweighted PLANAR TRAVELLING SALESMAN problem.
Theorem 9. There exists a deterministic algorithm that solves the PLANAR HAMILTONIAN CYCLE problem in time.
Finally, we mention that simple modifications of the algorithms imply the same complexity for the PLANAR HAMILTONIAN PATH problem (for example, see [DPBF10, Section 5]).
3.3 Planar Longest Cycle/Path
Similarly to [DPBF10], we can adopt the previous framework, slightly changing the algorithm that we have used to solve the PLANAR TRAVELLING SALESMAN problem, to tackle the PLANAR LONGEST CYCLE problem (the PLANAR LONGEST PATH problem follows similarly as in [DPBF10]).
The restrictions on the meandric systems here are the same as we have for the PLANAR TRAVELLING SALESMAN problem. The main difference is that instead of processing partial Hamiltonian cycles, we process partial cycles, allowing some vertices to be left out of the partial solution. Such vertices on the frontier will have labels . In the complexity analysis, this has the consequence of changing from to . Hence, we obtain the following.
Theorem 10. There exist deterministic algorithms that solve the PLANAR LONGEST CYCLE/PATH problem in and time.
The previous results by Dorn, Penninkx, Bodlaender and Fomin achieved complexities and , adjusted for the current-best value of [Dor06; Dor07; DPBF10]. These were also obtained by excluding forbidden configurations, which implicitly correspond to meandric systems, with the upper bound . Our results give a tighter bound on their algorithms.
In the next sections, we use meanders to develop new algorithms with improved complexity for other problems. We also examine another type of meandric systems for which the bound of Theorem 7 does not hold, and apply a simplified version of the cluster method to derive an upper bound on the number of such systems.
4 Tree Optimization Problems
In this section, we examine planar problems in which we need to find an optimal subtree of the given planar graph G that satisfies some criteria. We illustrate our algorithms for solving the PLANAR STEINER TREE and PLANAR CONNECTED DOMINATING SET problems.
We adapt the method of excluding meandric systems to the search for an optimal subtree. It is worth noting that, in contrast to the cycle optimization problems of the previous section, the existing tree optimization algorithms did not really use the meandric systems to exclude certain configurations to improve their running time.
4.1 Eulerian Outline
To use the meandric systems in such tree optimization problems, we introduce the following notion of a topological outline of a tree on a sphere. Consider a spherical drawing of . Let be a small constant such that the geodesic distance between any two points on two edges with no common endpoints is greater than . For a subtree of , let be the set of points such that the minimum geodesic distance from to the edges of is equal to . We call the Eulerian outline of .
Essentially, is the perimeter of offset at distance ; see Fig. 8 (left). This outline corresponds to the Eulerian tour of , where each edge is traversed twice, once in each direction. More formally, it is defined as the boundary of the Minkowski sum of the drawing of the tree and a disk of radius , called -offset in [BHKP12].

Figure 8: On the left, the Eulerian outline of a spherical drawing of a tree. On the right, a balanced bracket labeling of a partial Eulerian outline (the order starts from the small segment cutting an arc in the top right and continues in the clockwise direction). The vertices not belonging to the subtree are not labeled.
Consider a noose of a sphere cut decomposition of and the intersection of its enclosed disk with . If intersects with , then this partial Eulerian outline consists of a set of Jordan arcs, where each arc has two endpoints on . If the number of vertices of in mid( ) is (white-filled vertices in Fig. 8 (right)), this naturally defines a non-crossing partition on these vertices.
This non-crossing partition then can be represented by a balanced bracket labeling with 2m brackets, see Fig. 8 (right). If a vertex v is in S, then the Eulerian outline intersects at two points, one to the left and one to the right of v, which we call -points. Each -point is then assigned one of the brackets [ or ].
4.2 Planar Connected Dominating Set
We illustrate the use of the Eulerian outline combined with meandric systems to solve the PLANAR CONNECTED DOMINATING SET problem. We exploit the fact that this problem is equivalent to the
PLANAR MAX LEAF problem: for a given vertex-weighted planar graph, find a spanning tree S with the largest total weight on its leaves (see e.g. [CWY00]).
In this case, we label the vertices on the noose with labels in . The label 0 means that the labeled vertex is a leaf in ; the subscripts in and out mean that is connected to from inside or from outside of , respectively. The bracket pair labels are assigned to the non-leaf vertices. The whole sequence of brackets then defines the topology of the partial Eulerian outline of inside . Note that, technically, the vertices labeled by 0 also are outlined by , but we can ignore them in assigning the brackets, since they are disconnected in either from the subgraph inside or from the subgraph outside of . Intuitively, we can imagine that the vertices labeled by are pushed inside and the vertices labeled by are pushed outside of so that does not intersect in the radius around them.
Now we can calculate the constants and to apply Theorems 3 and 5.
• On the boundary, each vertex can be assigned one of the six label options. Hence, .
- On the frontier, we can count the number of options as follows. First, we bruteforce the set A of vertices in F that will be internal vertices in S. The vertices in then will be leaves and labeled by 0. The vertices in A must be assigned a pair of brackets on each side of the frontier. We do not bruteforce all possible bracket labelings but use meandric systems.
Examine the meandric system defined by the bracket double labeling s on points. A closed loop (submeander) is not allowed, since it means one of the two things:
– If there is a submeander that starts at a point at an odd position of the labeling and ends at an even position, then there is a disconnected subgraph in S; see Fig. 9 blue submeander.
– If there is a submeander that starts at a point at an even position of the labeling and ends at an odd position, then it induces a cycle in S; see Fig. 9 orange submeander.
The first is not allowed, since we are looking for a spanning tree. The second is not allowed too, since must be a tree. Therefore, we need to examine only acyclic meandric systems on points, the number of which is bounded by .
Therefore, in total, we examine labelings on A. The total number of labelings considered is
Hence, .
We obtain the following result:
Theorem 11. There exist deterministic algorithms that solve the PLANAR CONNECTED DOMINATING SET problem in and time.
Note that in the complexity of the second algorithm, dominates . The previous best-known complexities for deterministic algorithms are by [PBR17] and by [Dor06]. However, the latter complexity seems to be incorrect, since it corresponds to the

Figure 9: Illustration of forbidden meandric configurations for the CONNECTED DOMINATING SET problem. The blue submeander (left) starts at a point at an odd position of the labeling (green labels) and ends at an even position (red labels), hence it identifies a disconnected component. The orange submeander (right) starts at a point at an even position of the labeling (red labels) and ends at an odd position (green labels), hence it identifies a cycle. All other labels are colored in dark grey.
part, but the dominating part in their algorithm also comes from , which for them is equal to , see Appendix D. This means that the correct upper bound on the complexity of their algorithm is . Therefore, our result improves the best-known complexity in the bounded-weight setting.
4.3 Planar Steiner Tree
We can also apply meandric systems to the PLANAR STEINER TREE problem.
In this case, we use the following labeling. If the vertex is not in S, we label it by 0. Otherwise, it is labeled by a pair of brackets, which correspond to intersections of the Eulerian outline of S at the left and right -points of the vertex. We can calculate the relevant quantities to apply Theorem 3 and Theorem 5.
• Since each vertex labeled from the set , we have .
- On the frontier, we consider the possible options as follows. Bruteforce the set of vertices that are included in the Steiner tree. All other vertices then have labels 0 on both sides of the frontier. The vertices in A are labeled by two pairs of brackets on each side of the frontier. This defines a double labeling on 2m vertices that may correspond to a partial Eulerian labeling of a subtree.
First, we check whether all terminals X are strictly contained inside (the parent noose that contains and ). If so, then we bruteforce all possible meanders on A and check, using the DP tables of and , whether we obtain a solution. In total, this contributes labelings.
Otherwise, a closed loop on the frontier is not allowed by the same arguments as for the
PLANAR CONNECTED DOMINATING SET problem. By a similar calculation, we obtain
Therefore, .
By applying Theorem 3 and Theorem 5, we obtain the following theorem:
Theorem 12. There exist deterministic algorithms that solve the PLANAR STEINER TREE problem in and time.
The papers [DPBF10; Dor06] claim complexities and ; however, we point out a mistake in their proofs, see Appendix D. Fixing that results in larger complexities and . Using the improved upper bound for , our result improves these older algorithms, and is slightly faster than the best-known deterministic complexity in the unbounded-weight setting by [PBR17].
5 Forest Optimization Problems
In this section, we examine how we can apply meandric systems to the problems in which we have to find an optimal subgraph of the given graph that is a forest.
5.1 Forest Meandric Systems
Similarly to the tree optimization problems, we can define the Eulerian outline of a forest as the collection of the Eulerian outlines of its subtrees. The intersection of with a noose still can be encoded by brackets as a non-crossing partition. However, in the dynamic programming, the restrictions for the double labelings on the frontier are looser because now a submeander can enclose a separate subtree of .
Next, we examine the constraints imposed on a double bracket labeling on the frontier. Suppose that m is the number of crossings of with the frontier. Now, the forbidden submeanders are the ones that correspond to a cycle in S. As described in Section 4.2, such submeanders start at crossings at even positions and end at crossings at odd positions in s. We call such configurations forest meandric systems; see Fig. 10 for an example of a forbidden meandric system which is induced by a subgraph with a cycle.
As far as we know, unfortunately, there is only one previous work that examined similar systems [Bac99], studying the closed forest meandric systems. In our case, we are interested in open forest meandric systems, for which we have found no calculations or asymptotic bounds.
Let be the asymptotic number of forest meandric systems on crossings (we look at even numbers of crossings, since each vertex on the frontier generates two brackets on each side). Trivially, , but already by the following simple argument, we can see that it is strictly smaller. Partition into consecutive double labeling sequences of length 4, and let be the -th sequence. Among the possible labeling options for , we can exclude any double labeling

Figure 10: Illustration of a forbidden forest meandric system.
, where * is any bracket. The number of such options is . Thus, we have .
Similarly to [AP05], we can use the cluster method to get a better upper bound on . Below, we give a self-contained proof of an improved bound using a simplified version of the cluster method. A similar argument is also outlined in [AP05, Section 5].
Theorem 13. .
Proof. For a language , examine the generating function , where the coefficient at is the number of words of length in . If for each the number of words of length is for some constant , then the radius of convergence of is at least . Thus, the task of determining the asymptotic number of words in of fixed length is reduced to constructing the generating function of and calculating its convergence radius.
Let be a set of words that are forbidden as substrings. In the following simple scenario, suppose that no two words in overlap (that is, for any two , is not contained in as a substring and no proper suffix of is a proper prefix of ). Examine the generating function
By the principle of inclusion-exclusion, this is equal to as follows. If a word contains occurrences of forbidden words, then it will contribute times to the series; for a subset of size of of these words, this will contribute a coefficient to the sum. Thus, in total, it will contribute . In the case when the word does not contain forbidden words, it contributes 1. Hence, the coefficient at correctly counts the number of words in .
As in Theorem 7, we will use the alphabet for and to encode our meandric systems. We will forbid the words , where is the language of words that contain an equal number of Ls and Rs. Each such word corresponds to a submeander for the following reason. Consider the vertical cross-section of the system at a point labeled with
L or R; the effect of this label is simply shifting the endpoints of the curves on the cross-section up or down, respectively, creating a single new crossing with the horizontal line. The condition of the equal number of L and R ensures that the overall shift is zero. Thus, the curves passing through the starting and the ending crossings, labeled by U and D, respectively, are parts of the same submeander; see Fig. 11 for an example. Therefore, forbidding the words in W that start at an even position will give the desired upper bound.

Figure 11: A meandric system corresponding to a forbidden factor ULRRRLLD ∈ W.
To deal with the parity of positions, we will construct the generating function using the following matrix:
The idea is that separate generating functions of the strings of even and odd length are encoded in the first and the second coordinates, respectively. Adding one of the four coordinates corresponds to multiplying by (which changes the length parity); adding a forbidden word multiplies by (which does not change length parity). Similarly to Equation (9), the whole generating function of our language then is given by
First we determine . By the definition of forbidden factors, there are distinct words of length in . Hence,
where the second equality comes from the central binomial generating function. Therefore, we are interested in
Calculating this gives
The convergence radius of this series is , hence .
We can obtain a better upper bound by using the Goulden-Jackson cluster method, similarly to how we did for the meandric numbers. For that, we adapt the language of forbidden words to include only submeanders that start at even positions and end at odd positions. Using the program provided by ChatGPT-5.6 Sol, with the length of standard representatives n = 24, we obtain an improved upper bound:
Theorem 14. .
The full code and results are available at [CLBV26].
5.2 Planar Feedback Vertex Set
We apply the meandric systems to the PLANAR FEEDBACK VERTEX SET problem, which can be equivalently formulated as the problem of finding a subset of vertices S with the largest total weight such that S induces a forest in G.
We use a similar labeling as in the tree problems with 5 options in for each vertex. The label 0 means that the vertex is not in S, and the bracket pairs denote the intersection topology of the Eulerian outline with the noose. We can then analyze the relevant parameters and :
• Since there are 5 possible labels for each vertex, .
- For the frontier, we can bruteforce the set to include in . Each vertex in is assigned the label 0. On the set , the number of options is upper bounded by , since we are forbidding cycles in . Similarly as before, the total number of options is
Therefore, .
By applying Theorem 3 and Theorem 5, we obtain the following theorem:
Theorem 15. There exist deterministic algorithms that solve the PLANAR FEEDBACK VERTEX SET problem in and time.
While these results do not improve the best-known deterministic complexity in the unbounded-weight setting from [PBR17], they give an illustration of how meandric systems can be used for the forest connectivity problems.
6 Conclusions and Open Problems
In this research, we revisited exact algorithms for planar connectivity problems based on sphere cut decomposition from the perspective of meandric systems. This allowed us to identify and exclude frontier configurations that cannot be extended to a feasible global solution. By combining this idea with the fast-matrix multiplication of Dorn [Dor06], we obtained improved deterministic bounds in the bounded-weight setting for several classical planar problems, namely PLANAR TSP, PLANAR LONGEST CYCLE/PATH, PLANAR CONNECTED DOMINATING SET and PLANAR STEINER TREE. Furthermore, we extended the meandric interpretation beyond cycle problems, using Eulerian outlines, and applied related counting arguments to tree and forest optimization problems, such as PLANAR STEINER TREE, PLANAR CONNECTED DOMINATING SET, and PLANAR FEEDBACK VERTEX SET.
A central question left open by our work is to better understand the asymptotic growth of the meandric systems that arise in these dynamic programming algorithms. Our running times depend directly on upper bounds for the growth constants of acyclic unidirectional open meandric systems and the forest open meandric systems introduced here. Any improvement on these constants would immediately translate into improved algorithmic bounds.
7 Acknowledgements
The ideas and proofs presented in this paper were developed by the authors without the use of LLMs. We have used ChatGPT-5.6 Sol to implement the Goulden-Jackson cluster method for the meandric system upper bounds, with a few conceptual corrections to the code. We then checked the correctness of the code manually. We have also used LLMs to check the correctness of the manuscript and to validate the corrections of Appendix D.
J.V. is supported by the 1.1.1.9 Research application No 1.1.1.9/LZP/2/25/206 of the Activity “Post-doctoral Research” “Practical applications and limitations of quantum search”.
References
[Alb+02] Jochen Alber, Hans L. Bodlaender, Henning Fernau, Ton Kloks, and Rolf Niedermeier. "Fixed Parameter Algorithms for DOMINATING SET and Related Problems on Planar Graphs". In: Algorithmica 33.4 (2002), pp. 461–493. ISSN: 1432-0541. DOI: 10.1007/S00453-001-0116-5.
[Alm+25] Josh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou. "More Asymmetry Yields Faster Matrix Multiplication". In: Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). SIAM, 2025, pp. 2005–2039. DOI: 10.1137/1.9781611978322.63. arXiv: 2404.16349 [cs.DS].
[AP05] M.H. Albert and M.S. Paterson. "Bounds for the growth rate of meander numbers". In: Journal of Combinatorial Theory, Series A 112.2 (2005), pp. 250–262. DOI: 10.1016/j.jcta.2005.02.006.
[Bac99] Roland Bacher. Meander algebras. Prépublication de l'Institut Fourier, no. 478. 1999. URL: https://www-fourier.univ-grenoble-alpes.fr/sites/default/files/ref_478.pdf.
[Bak94] Brenda S. Baker. “Approximation Algorithms for NP-Complete Problems on Planar Graphs”. In: J. ACM 41.1 (1994), pp. 153–180. ISSN: 0004-5411. DOI: 10.1145/174644.174650.
[BCKN15] Hans L. Bodlaender, Marek Cygan, Stefan Kratsch, and Jesper Nederlof. “Deterministic single exponential time algorithms for connectivity problems parameterized by treewidth”. In: Information and Computation 243 (2015). 40th International Colloquium on Automata, Languages and Programming (ICALP 2013), pp. 86–111. ISSN: 0890-5401. DOI: 10.1016/j.ic.2014.12.008. arXiv: 1103.0534 [cs.DS].
[BHKP12] Eric Berberich, Dan Halperin, Michael Kerber, and Roza Pogalnikova. “Deconstructing Approximate Offsets”. In: Discrete & Computational Geometry 48 (4 2012), pp. 964–989. ISSN: 1432-0444. DOI: 10.1007/s00454-012-9441-5. arXiv: 1109.2158 [cs.CG].
[BKM09] Glencora Borradaile, Philip N. Klein, and Claire Mathieu. “An approximation scheme for Steiner tree in planar graphs”. In: ACM Trans. Algorithms 5.3 (2009), 31:1–31:31. ISSN: 1549-6325. DOI: 10.1145/1541885.1541892.
[BM20] Yury Belousov and Andrei Malyutin. “Meander diagrams of knots and spatial graphs: Proofs of generalized Jablan-Radović conjectures”. In: Topology and its Applications 274 (2020), p. 107122. ISSN: 0166-8641. arXiv: 1803.10879 [math.GT].
[Bod88] Hans L. Bodlaender. “Dynamic programming on graphs with bounded treewidth”. In: Automata, Languages and Programming. Springer Berlin Heidelberg, 1988, pp. 105–118. ISBN: 978-3-540-39291-0. DOI: 10.1007/3-540-19488-6_110.
[BS10] Bruce Bobier and Joe Sawada. “A fast algorithm to generate open meandric systems and meanders”. In: ACM Trans. Algorithms 6.2 (2010). ISSN: 1549-6325. DOI: 10.1145/1721837.1721858.
[CLBV26] Susanna Caroppo, Giordano Da Lozzo, Giuseppe Di Battista, and Jevgēnijs Vihrovs. Upper Bounds on Meandric Numbers using the Goulden-Jackson Cluster Method. 2026. DOI: 10.5281/zenodo.23102166.
[CWY00] Yair Caro, Douglas B. West, and Raphael Yuster. “Connected Domination and Spanning Trees with Many Leaves”. In: SIAM Journal on Discrete Mathematics 13.2 (2000), pp. 202–211. ISSN: 1095-7146. DOI: 10.1137/S0895480199353780.
[Cyg+22] Marek Cygan, Jesper Nederlof, Marcin Pilipczuk, Michał Pilipczuk, Johan M. M. Van Rooij, and Jakub Onufry Wojtaszczyk. “Solving Connectivity Problems Parameterized by Treewidth in Single Exponential Time”. In: ACM Trans. Algorithms 18.2 (2022). ISSN: 1549-6325. DOI: 10.1145/3506707. arXiv: 1103.0534 [cs.DS].
[DFHT04] Erik D. Demaine, Fedor V. Fomin, Mohammad Taghi Hajiaghayi, and Dimitrios M. Thilikos. "Bidimensional Parameters and Local Treewidth". In: SIAM Journal on Discrete Mathematics 18.3 (2004), pp. 501–511. ISSN: 1095-7146. DOI: 10.1137/S0895480103433410.
[DFHT05] Erik D. Demaine, Fedor V. Fomin, Mohammad Taghi Hajiaghayi, and Dimitrios M. Thilikos. "Subexponential parameterized algorithms on bounded-genus graphs and H-minor-free graphs". In: J. ACM 52.6 (2005), pp. 866–893. ISSN: 0004-5411. DOI: 10.1145/1101821.1101823.
[DGG00] P. Di Francesco, O. Golinelli, and E. Gutter. "Meanders: exact asymptotics". In: Nuclear Physics B 570.3 (2000), pp. 699–712. ISSN: 0550-3213. DOI: 10.1016/S0550-3213(99)00753-1. arXiv: cond-mat/9910453 [cond-mat.stat-mech].
[DH05] Erik D. Demaine and Mohammad Taghi Hajiaghayi. “Bidimensionality: new connections between FPT algorithms and PTASs”. In: Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM, 2005, pp. 590–601. ISBN: 0898715857. DOI: 10.5555/1070432.1070514.
[DH08] Erik D. Demaine and Mohammad Taghi Hajiaghayi. “The Bidimensionality Theory and Its Algorithmic Applications”. In: Comput. J. 51.3 (2008), pp. 292–302. ISSN: 0010-4620. DOI: 10.1093/COMJNL/BXM033.
[Die12] Reinhard Diestel. Graph Theory. 6th ed. Vol. 173. Graduate Texts in Mathematics. Springer Berlin Heidelberg, 2012. ISBN: 978-3-662-70106-5. DOI: 10.1007/978-3-662-70107-2.
[DKW06] Vladimir G. Deineko, Bettina Klinz, and Gerhard J. Woeginger. “Exact algorithms for the Hamiltonian cycle problem in planar graphs”. In: Operations Research Letters 34.3 (2006), pp. 269–274. ISSN: 0167-6377. DOI: 10.1016/j.orl.2005.04.013.
[Dor06] Frederic Dorn. "Dynamic Programming and Fast Matrix Multiplication". In: Algorithms – ESA 2006. Springer Berlin Heidelberg, 2006, pp. 280–291. ISBN: 978-3-540-38876-0. DOI: 10.1007/11841036_27.
[Dor07] Frederic Dorn. "Designing subexponential algorithms: problems, techniques & structures". PhD thesis. University of Bergen, 2007.
[DPBF10] Frederic Dorn, Eelko Penninkx, Hans L. Bodlaender, and Fedor V. Fomin. "Efficient Exact Algorithms on Planar Graphs: Exploiting Sphere Cut Decompositions". In: Algorithmica 58 (3 2010), pp. 790–810. ISSN: 1432-0541. DOI: 10.1007/s00453-009-9296-1.
[Epp00] David Eppstein. "Diameter and Treewidth in Minor-Closed Graph Families". In: Algorithmica 27.3 (2000), pp. 275–291. ISSN: 1432-0541. DOI: 10.1007/S004530010020. arXiv: math/9907126.
[FLST20] Fedor V. Fomin, Daniel Lokshtanov, Saket Saurabh, and Dimitrios M. Thilikos. "Bidimensionality and Kernels". In: SIAM Journal on Computing 49.6 (2020), pp. 1397–1422. ISSN: 1095-7111. DOI: 10.1137/16M1080264. arXiv: 1606.05689 [cs.DS].
[FT06] Fedor V. Fomin and Dimitrios M. Thilikos. "New upper bounds on the decomposability of planar graphs". In: J. Graph Theory 51.1 (2006), pp. 53–81. DOI: 10.1002/JGT.20121.
[GB07] Alexander Grigoriev and Hans L. Bodlaender. "Algorithms for Graphs Embeddable with Few Crossings per Edge". In: Algorithmica 49.1 (2007), pp. 1–11. ISSN: 1432-0541. DOI: 10.1007/S00453-007-0010-X.
[GJ83] Ian P. Goulden and David M. Jackson. Combinatorial Enumeration. John Wiley & Sons, 1983.
[GT08] Qian-Ping Gu and Hisao Tamaki. "Optimal branch-decomposition of planar graphs in Time". In: ACM Trans. Algorithms 4.3 (2008). ISSN: 1549-6325. DOI: 10.1145/1367064.1367070.
[HMRT86] Kurt Hoffmann, Kurt Mehlhorn, Pierre Rosenstiehl, and Robert E. Tarjan. "Sorting Jordan sequences in linear time using level-linked search trees". In: Inf. Control 68.1–3 (1986), pp. 170–184. ISSN: 0019-9958. DOI: 10.1016/S0019-9958(86)80033-X.
[JG00] Iwan Jensen and Anthony J Guttmann. "Critical exponents of plane meanders". In: Journal of Physics A: Mathematical and General 33.21 (2000), p. L187. DOI: 10.1088/0305-4470/33/21/101. arXiv: cond-mat/0004321 [cond-mat.stat-mech].
[Kre72] G. Kreweras. "Sur les partitions non croisees d'un cycle". In: Discrete Mathematics 1.4 (1972), pp. 333–350. DOI: 10.1016/0012-365X(72)90041-6.
[LN08] Fumei Lam and Alantha Newman. "Traveling salesman path problems". In: Mathematical Programming 113.1 (2008), pp. 39–59. ISSN: 1436-4646. DOI: 10.1007/s10107-006-0046-8.
[LT79] Richard J. Lipton and Robert Endre Tarjan. "A Separator Theorem for Planar Graphs". In: SIAM Journal on Applied Mathematics 36.2 (1979), pp. 177–189. DOI: 10.1137/0136016.
[LT80] Richard J. Lipton and Robert Endre Tarjan. "Applications of a Planar Separator Theorem". In: SIAM Journal on Computing 9.3 (1980), pp. 615–627. DOI: 10.1137/0209046.
[LZ92] S.K. Lando and A.K. Zvonkin. "Meanders". In: Selecta Mathematica Sovietica 11.2 (1992), pp. 117–144. ISSN: 0272-9903.
[LZ93] S.K. Lando and A.K. Zvonkin. "Plane and projective meanders". In: Theoretical Computer Science 117.1 (1993), pp. 227–241. ISSN: 0304-3975. DOI: 10.1016/0304-3975(93)90316-L.
[MP15] Dániel Marx and Michał Pilipczuk. "Optimal Parameterized Algorithms for Planar Facility Location Problems Using Voronoi Diagrams". In: Algorithms - ESA 2015. Springer Berlin Heidelberg, 2015, pp. 865–877. ISBN: 978-3-662-48350-3. DOI: 10.1145/3483425. arXiv: 1504.05476 [cs.DS].
[OEI26] OEIS Foundation Inc. Dimensions of graded algebra associated with meanders. https://oeis.org/A060111. Entry A060111 in The On-Line Encyclopedia of Integer Sequences. 2026.
[PBR17] Willem J. A. Pino, Hans L. Bodlaender, and Johan M. M. van Rooij. "Cut and Count and Representative Sets on Branch Decompositions". In: 11th International Symposium on Parameterized and Exact Computation (IPEC 2016). Vol. 63. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017, 27:1–27:12. ISBN: 978-3-95977-023-1. DOI: 10.4230/LIPIcs.IPEC.2016.27.
[Pin16] W.J.A. Pino. "Cut and Count and Representative Sets on Branch Decompositions". MA thesis. Universiteit Utrecht, 2016.
[RST94] Neil Robertson, Paul D. Seymour, and Robin Thomas. "Quickly Excluding a Planar Graph". In: J. Comb. Theory Ser. B 62.2 (1994), pp. 323–348. ISSN: 0095-8956. DOI: 10.1006/JCTB.1994.1073.
[ST94] Paul D. Seymour and Robin Thomas. "Call Routing and the Ratcatcher". In: Comb. 14.2 (1994), pp. 217–241. ISSN: 1439-6912. DOI: 10.1007/BF01215352.
[Zvo24] Alexander K. Zvonkin. "Meanders: A personal perspective to the memory of Pierre Rosenstiehl". In: European Journal of Combinatorics 119 (2024). Dedicated to the memory of Pierre Rosenstiehl, p. 103817. ISSN: 0195-6698. DOI: 10.1016/j.ejc.2023.103817.
[Zwi02] Uri Zwick. "All pairs shortest paths using bridging sets and rectangular matrix multiplication". In: J. ACM 49.3 (2002), pp. 289–317. ISSN: 0004-5411. DOI: 10.1145/567112.567114. arXiv: cs/0008011 [cs.DS].
Appendices
A Reductions to Bridgeless Instances
In this appendix, we show that, for each of the aforementioned problems, assuming that the input graph is bridgeless entails no loss of generality. In particular, we describe how to transform the input instance into an equivalent bridgeless instance while preserving both the existence of a solution and its optimality.
Planar Travelling Salesman Problem. The case of the PLANAR TRAVELLING SALESMAN problem is the simplest to address. In fact, a bridge does not belong to any cycle. Hence, a graph containing a bridge is a trivially infeasible instance.
Planar Longest Cycle Problem. Since bridges do not belong to any cycle, the graph , where denotes the set of all bridges in , contains exactly the same set of cycles as . Consequently, computing the longest cycle in is equivalent to computing a longest cycle in .
Planar Longest Path Problem. Let be an instance of the PLANAR LONGEST PATH problem. Observe that a bridge may belong to a longest path of . We perform the following reduction. For each bridge in , we introduce a new vertex and add two new edges and , each assigned weight 0. After applying this construction, the resulting graph is bridgeless and planar. Also, let denote the resulting weight function for the edges of . We next show that admits a longest path of weight if and only if admits a longest path of weight . Let be a longest path in . Since is a subgraph of is a path in . Also, since all added edges have weight 0, is a longest path in . For the opposite direction, let be a longest path in , we show that there exists a path in of the same weight as that does not contain any vertex introduced in the reduction. Clearly, such a path is entirely contained in . We argue this in two steps. First, suppose that passes through some added vertex , i.e., the edges and belong to . We consider two cases: has weight 0 or has weight larger than 0. In the first case, since the sub-path contributes 0 to the total weight, replacing it with the edge , yields a path of equal length. The second case is not possible since the same replacement would yield a path of length greater to the one of . Second, suppose a longest path in uses at least a vertex as an endpoint. Then begins with one of the two zero-weight edges incident to , say , and continues from . Hence, the sub-path of starting from is itself a longest path in . Thus, removing yields a path of the same length.
Planar Steiner Tree Problem. Let be an instance of the PLANAR STEINER TREE problem. In order to obtain an equivalent bridgeless instance, we perform the following reduction. For each bridge in , we introduce a new vertex and add two edges and , each assigned weight . After applying this construction, the resulting graph is bridgeless and planar. Also, let denote the resulting weight function for the edges of . We show next that admits Steiner tree of weight if and only if admits a Steiner tree of weight . The proof is analogous to the one for the PLANAR LONGEST PATH problem. Let be a minimum-weight Steiner tree in . Note that is also a Steiner tree in since and since no vertex in is a terminal vertex. For the opposite direction, by the same arguments as for the PLANAR LONGEST PATH problem, one can easily see that there exists a Steiner tree in
that uses no edge incident to an added vertex . Clearly, such a Steiner tree belongs to G as well and has the same weight as .
Planar Connected Dominating Set Problem. Let be an instance of the PLANAR CONNECTED DOMINATING SET problem. Recall now that . W.l.o.g., assume that does not consist of a single edge. In order to obtain an equivalent bridgeless instance, we perform the following reduction. For each bridge in , we introduce a new vertex , with , and add two edges and . After applying this construction, the resulting graph is bridgeless. Also, let denote the resulting weight function for the vertices of . We argue next that admits a connected dominating set of weight if and only if admits a connected dominating set of weight . Let be a minimum-weight connected dominating set in . We argue that is also a connected dominating set in . First, note that all the vertices in is a bridge in are dominated by , since . Second, we show that, for each bridge of , at least one of the two neighbors and of belongs to ; which implies that each vertex is also dominated by . Suppose, for a contradiction, that neither nor belongs to . Note that, removing the edge from , results in two connected components and such that belongs to and belongs to . Then must be dominated by some vertex in and must be dominated by some vertex in . However, these vertices are not in the same connected component in the subgraph induced by , a contradiction. Again, for the opposite direction, with similar arguments as for the PLANAR LONGEST PATH and the PLANAR STEINER TREE problem, which we elaborate hereafter, one can easily see that there exists a minimum-weight connected dominating set in that uses none of the added vertices . Let be a connected dominating set of of minimum weight , and suppose, for a contradiction, that contains some vertex , where . Since 's only neighbors in are and , the connectivity of forces at least one of and to belong to . As is an edge of , the vertices dominated by (namely and ) are also dominated by whichever of and lies in , and the edge preserves the connectivity among the remaining vertices of once is removed. Hence is still a connected dominating set of with smaller weight; a contradiction.
Planar Feedback Vertex Set Problem. In the PLANAR FEEDBACK VERTEX SET problem, since a bridge belongs to no cycle of G by definition, to reduce to a bridgeless instance, one simply deletes all bridges from G. The resulting graph has the same set of cycles as G, and, consequently, has the same minimum feedback vertex set.
B Complexity of the Planar Longest Cycle/Path
In this appendix, we assume close familiarity with [BCKN15; PBR17] and calculate the complexity of the PLANAR LONGEST CYCLE/PATH in the latter work.
First, we note that the randomized algorithm for the PLANAR TRAVELLING SALESMAN problem from [PBR17] can be adapted with minimal changes to the PLANAR LONGEST CYCLE problem.
Theorem 16. There exists a Monte Carlo algorithm that solves the PLANAR LONGEST CYCLE/PATH in time.
Proof sketch. This theorem follows from the analysis of Theorem 4.11 in the Master's thesis [Pin16], which describes the TSP algorithm. When calculating the table , we also need to consider compatible labeling and for a vertex , which corresponds to not being in the cycle. However, this doesn’t change the asymptotic complexity, since that is governed by the number of labels used for each vertex, which is still 4.
The PLANAR LONGEST PATH problem can be reduced to the PLANAR LONGEST CYCLE, only with a constant increase in the branchwidth of the graph, see [Cyg+22, Appendix A.4].
However, we observe that for the deterministic algorithm, there is an increase in the complexity:
Theorem 17. There exists a deterministic algorithm that solves the PLANAR LONGEST CYCLE/PATH in time.
Proof sketch. We can adapt the PLANAR TRAVELLING SALESMAN algorithm from [PBR17] with small changes. The corresponding algorithm is described in [Pin16].
Again, the most substantial change is allowing pairs of labels on . For a vertex and children bags and of , now we consider labels and compatible if (compared to in the TSP case).
This has an effect on page 43 in [Pin16] in the expression , where is a vertex in the forget set, which now becomes
Since now the compatible pairs of labels are , , , , this sum is equal to 5 (compared to 4 in the TSP case).
This changes the complexity to
as and in the worst case.
Finally, by the arguments of [DPBF10, Section 5], we can adapt the DP on the sphere cut decomposition to the PLANAR LONGEST PATH without increasing the asymptotic complexity. □
C Proof of Theorem 5
In this appendix, we describe and analyze the fast matrix multiplication method by [Dor06] for completeness.
First, we provide the background of fast matrix multiplication. Two matrices can be multiplied in time, where is the fast matrix multiplication constant. The best current upper bound on the constant is [Alm+25]. For , to multiply two rectangular matrices with sizes and , we first partition them into blocks of size , padding if necessary. Then we multiply the corresponding blocks using fast matrix multiplication and sum up all the results. This approach gives complexity .
Suppose now that we need to multiply rectangular matrices with dimensions and , where . We can assume that , as the other case follows in the same way. We then can partition the second matrix into matrices of size and apply the above algorithm for each of them, afterwards concatenating the results. This gives complexity . If and , the same approach results in complexity .
A related notion is the matrix distance product, also known as the min-plus matrix multiplication. For two matrices A and B with sizes and , it is defined as an matrix , where
If the matrix entry values do not exceed , then fast matrix multiplication can be applied to calculate the distance product of two matrices in time [Zwi02]. For our case of rectangular matrix multiplication, it implies complexity for and complexity for .
Proof. We illustrate the algorithm on the PLANAR TSP, but the general principle is the same for other problems. We can speed up the merging step of the DP tables of and in the dynamic programming algorithm. Let and be the total number of possible labelings to the vertex set and , respectively (essentially, the left and the right side of the boundary). For TSP, we have and , as .
For , we construct a matrix as follows. Let be a labeling for and let be a valid pair of labelings of the frontier, meaning it can potentially lead to a feasible solution, where and are the labelings on the left and the right sides of the frontier, respectively. We also require to be a valid labeling of . Checking the validity in both cases requires time polynomial in as discussed in Section 3.1. The value of then is equal to the minimum total weight of a partial Hamiltonian cycle in that agrees with the labeling , which is equal to (which is if is not valid). Constructing thus takes time.
Similarly, for , we construct an matrix . Then for the distance product , which is a matrix of size , the entry denotes the weight of the shortest partial Hamiltonian cycle that agrees with the labeling on the boundary, or if it does not exist. This is because for each labeling on the frontier, we constructed and by considering only valid labeling pairings for and for . From the matrix then we can obtain in time.
Now we analyze the complexity; without loss of generality, assume that .
• If , the complexity of the matrix multiplication is
We can again use and . If , then reducing by 1 can increment both and by 1. Since and , we have when . Therefore, in the worst case, and .
Since , we have . Then in the worst case . The total complexity is then
As , this is the largest when is minimal, so in the worst case , and the overall complexity is
If instead it happened that , then the worst case would occur when and this part would take time .
• In the other case, we have . The complexity of the matrix multiplication then is
Once again, has to be maximized for the worst case, so then . This results in complexity
This is dominated by the complexity of the previous case as .
In the case of the PLANAR TSP, the total complexity becomes .
D Corrections to Previous Works
In this appendix, we discuss several inaccuracies and inconsistencies that we identified in the relevant literature. Clarifying these issues is important for a fair comparison between our algorithms and previous results, which in some cases have been incorrectly stated. We use the arrow to denote a correction.
Recapping, [DPBF10] introduces dynamic programming on the sphere cut decomposition; [Dor06] speeds these DP algorithms using fast matrix multiplication; [Dor07] incorporates the results from the first two papers. The work [PBR17] gives state-of-the-art deterministic and randomized complexities for connectivity problems in the unbounded-weight setting.
Planar Travelling Salesman Problem. In [DPBF10; Dor06; Dor07] the problem termed the TRAVELLING SALESMAN problem is what is usually called the TRAVELLING SALESMAN WALK problem [LN08]. In the first problem, as it is usually defined, we have to find the shortest cycle that visits each city exactly once (a Hamiltonian cycle). In the second problem, we need to visit each city at least once; this corresponds to a closed walk in a graph.
Most probably this has led to a confusion in Table 4 in [PBR17], where the complexities of Dorn, Penninkx, Bodlaender and Fomin for PLANAR HAMILTON CYCLE/TSP are actually the complexities of the PLANAR TRAVELLING SALESMAN WALK problem of [DPBF10; Dor06; Dor07], and should be
(22) and
Table 4 also states complexity for the PLANAR TRAVELLING SALESMAN problem, which seems to be a typo (the correct complexity is , and the algorithm is explained in [Pin16]).
Planar Longest Cycle/Path. For PLANAR LONGEST CYCLE/PATH, [DPBF10] gives the dynamic programming algorithm with complexity (Theorem 5), which is consistent with , see Theorem 10.
Then [Dor07] uses a bound on acyclic meandric systems to obtain an algorithm, which is consistent with . Then they apply fast matrix multiplication to obtain complexity , which is consistent with . The analysis of the last complexity includes a mistake. The first equation in Lemma 3.2.6. should say:
The corrected expression clearly is equal to , which is consistent with Theorem 10.
Finally, [Dor06] states incorrect complexity for PLANAR LONGEST CYCLE/PATH. The complexity of the DP algorithm of [DPBF10] is stated to be , which is incorrect (possibly being taken from the PLANAR HAMILTONIAN CYCLE problem),
The complexity of the DP algorithm with fast matrix multiplication seems to suffer a typo,
Planar Connected Dominating Set. Recall the labeling scheme for PLANAR CONNECTED DOMINATING SET in Theorem 11. It is not written explicitly in [DPBF10], but the part in the paper is bounded by . Essentially, the number 15 comes from forbidding the configuration (([,]), ([,])) which leads to a disconnected cycle, out of 16 possibilities for each vertex on the frontier. Hence, in their analysis. This correctly gives the complexity .
In [Dor06], it is stated that fast matrix multiplication improves the complexity to . While indeed is , their main Theorem 4 states that the complexity should be , consistent with Theorem 5. We have , so the total complexity should be instead,
The work [PBR17] also references the value 8.11.
Planar Steiner Tree. For the PLANAR STEINER TREE problem, it seems that the 4-symbol labeling in [DPBF10] is incomplete. The authors use an alphabet of four symbols . The symbol 0 encodes either an isolated vertex or a component with the only intersection with the noose being this vertex. The other symbols encode how a component touches multiple vertices on the noose; the symbol [ marks the beginning, □ is an intermediate vertex and ] is the final vertex of a component.
However, using the same symbol 0 for vertices isolated from the Steiner tree S and being in a component that touches the noose only at this vertex loses some necessary information. The problem arises, for example, when there are two vertices on the frontier vertex set, where each is assigned the label 0 on both sides:
-
It may be the case that both of these two vertices are isolated in the respective partial solution on both sides. Note that this situation can still lead to a feasible solution, since both of these vertices are not in the Steiner tree.
-
It may also be the case that for each of these vertices, there is a connected component on some side that contains a vertex from X. Observe that this situation cannot lead to a feasible solution, since we are getting two disconnected components that both contain terminal vertices.
However, these two cases are identified by the same labels (a pair for each vertex), so it seems to that the described labeling is not sufficient to distinguish between the two.
In our encoding in Theorem 11, we use different labels for these cases (0 and [,]), respectively). The symbols [, □, ] in their encoding clearly match to the pairs ([, ], (], [] and (], ], respectively, in our encoding. Their claimed complexity corresponds to that comes from using 4 labels. By using 5 labels instead of 4, the complexity becomes ,
The same discrepancy has an effect in [Dor06; Dor07]. Using fast matrix multiplication, they claim complexity . This corresponds to using 4 labels, . Using 5 labels, the complexity becomes . Moreover, similarly to PLANAR CONNECTED DOMINATING SET, they omit taking the maximum in Theorem 4 in [Dor06]. Since here , the complexity is dominated by , so
The work [PBR17] also references the faulty values, which means that their deterministic algorithm actually beats the fast matrix multiplication algorithm of [Dor06].
Planar Feedback Vertex Set. Firstly, we were unable to reproduce the complexity from [Dor06; Dor07]. The dynamic programming algorithm from [DPBF10] without any meander speedup results in complexity ; this corresponds to the same 5 labels we use Theorem 15. Similarly to other fast matrix multiplication results in [Dor07], we expect the complexity , which is larger than the claimed complexity. Unfortunately, references [Dor06; Dor07] do not explain how to obtain this complexity bound.
Secondly, it seems that the complexity for this problem was affected by the same mistake as for THE PLANAR CONNECTED DOMINATING SET and PLANAR STEINER TREE. Since we have , the complexity of the algorithm is dominated by .