betaFeedback

WorksComputer Science

Path Isolation and Reachability in Surface-Embedded Graphs with Restricted Cycle and Cut Structure

Abstract

We study the reachability problem in directed surface-embedded graphs under two structural restrictions, using isolating weight assignments. First, we consider graphs whose underlying undirected embeddings contain at most polynomially many simple surface non-separating cycles. We develop a polynomially bounded, logspace-computable skew-symmetric edge-weight assignment with nonzero circulation around every simple cycle. This yields an unambiguous logspace (UL) upper bound for directed reachability. The construction also gives an SPL upper bound for bipartite perfect matching in the corresponding undirected graph class. Second, for gg-genus directed graphs admitting a balanced hierarchical genus decomposition with O(log⁡n)O(\log n) crossing edges at every partition, we obtain an unambiguous O(log⁡g⋅log⁡n)O(\log g \cdot \log n)-space bound for reachability. Our approach combines path-isolating weights for lower-genus subgraphs using polynomially bounded FKS hashing refinements at successive merging levels.

Introduction

In the reachability problem, given a graph G=(V,E)G = (V, E), and two vertices ss and tt in GG, we need to find whether there exists a path from ss to tt. Deciding reachability between a pair of vertices is an important problem in complexity theory. Reachability in directed graphs precisely captures the complexity class nondeterministic logspace (NL). Also, the seminal result of Reingold [17] showed that reachability in an undirected graph characterises the class deterministic logspace (L). Whether these two classes are equal is a big open question in complexity theory. Unambiguous computation is a restricted version of nondeterministic computation. We know that in a nondeterministic computation, given any input, the answer is yes if there exists at least one accepting computation path and the answer is no if all computation paths reject. However, in an unambiguous computation, given any input, there is at most one accepting computation path. The input is accepted if exactly one computation path terminates in yes, and no if all the paths terminate in no. The class UL was first introduced formally by Buntrock et al. [5] and then studied in more detail by Álvarez and Jenner in Álvarez and Jenner (1993). Since the class UL lies between NL and L, resolving NL =?\stackrel{?}{=} UL will be a big intermediate step toward the NL vs. L question. In 2000, Reinhardt and Allender [18] took the first step in this direction and proved that these classes are equal in a non-uniform computation model. In a later work, it was shown that if deterministic linear space functions cannot be computed by circuits of size 2ϵn2^{\epsilon n}, then NL = UL Allender et al. [1]. These results suggest that the classes might be equal unconditionally. Since directed reachability is a complete problem for NL, giving UL algorithm for reachability will prove that NL = UL. Although solving general directed reachability has been elusive so far, a lot of progress has been made in this direction by solving reachability in restricted classes of graphs, for example, using isolating weight assignment to establish an upper bound of UL for planar graphs, bounded genus graphs, logarithmic genus graphs, K3,3K_{3,3} and K5K_5 free graphs, single crossing minor free graphs Bourke et al. [4]; Datta et al. [8]; Gupta et al. [14]; Datta et al. [9]; Arora et al. [3]; Datta et al. [10] and proving an L upper bound for bounded tree-width graphs Das et al. [6]. For the general case, Kalampally and Tewari showed that the problem can be solved by an unambiguous algorithm that takes O(log⁡2n)O(\log^2 n) space and polynomial time Kallampally and Tewari [16]. The result was subsequently improved by Prakriya and Melkebeek by reducing the space bound to O(log⁡1.5n)O(\log^{1.5} n) van Melkebeek and Prakriya [21].

Perfect Matching is one of the problems that is closely related to the reachability problem. In the perfect matching problem, we are given an undirected graph, and the goal is to find a disjoint subset of edges of the graph that covers all the vertices of the graph. First polynomial time algorithm to solve this problem dates back to 1965 by Edmonds Edmonds (1965). However, the parallel complexity of this problem is not clear, i.e. whether there exists an efficient parallel algorithm (an NC algorithm) for the problem. Lovász took the first step towards this question and proved that the problem belongs to the class randomized (NC). Later, Mulmuley et al. also gave a randomized (NC) algorithm to solve the problem using the isolation lemma. In particular, they proved that if we can efficiently construct a polynomial-size weight assignment for the edges of a graph such that there exists a unique minimum weight perfect matching in the graph, then we can solve the problem efficiently by an NC algorithm. Allender et al. improved this result in Allender et al. [1] and proved that if we can construct such a weight function in logarithmic space, then the problem will belong to the class SPL, which is a subclass of NC. In the last few years, people have constructed such a weight assignment for various restricted classes of graphs Datta et al. [7, 8, 10]; Gupta et al. [15]. Recently, Fenner et al. and Svensson and Tarnawski gave a construction of weight functions of size O(log⁡2n)O(\log^2 n)-bits, proving that the problem can be solved deterministically by a quasi-NC algorithm in bipartite and general graphs, respectively Fenner et al. [12]; Svensson and Tarnawski [19]. As we see, if we can efficiently construct a weight assignment that isolates the path and perfect matching, then we can obtain the desired bound for both problems. In most of the previous results, people have constructed a single weight assignment for a class of graphs that isolates a path in the graphs of the class and a perfect matching in the corresponding undirected bipartite graphs. These weight functions satisfy two properties: (i)(i) they should be emph skew-symmetric, and they should give nonzero weight to all the cycles in the graphs. We will also construct such a weight function for a restricted graph class here.

In this work, we focus on directed graphs that can be embedded on surfaces. A cycle in a directed graph refers to a directed cycle and one in an undirected graph refers to an undirected cycle. A surface has genus gg if it can be obtained by attaching gg handles to a sphere. The genus of a graph is the minimum genus surface on which the graph can be embedded without any edge crossings (For example, planar graphs can be embedded on a surface of genus 0, i.e. a sphere, K5K_5 can be embedded on a surface of genus 1).

It is easy to see that any graph can be embedded on a surface of polynomially ordered (in the number of vertices) genus. Therefore, solving the problem for such kind of graphs has been another direction for making progress towards this question. If we consider the underlying undirected version of directed graphs embedded on surfaces, then the cycles in such a graph can be partitioned into two classes - surface separating cycles (SSC) and surface non-separating cycles (SNSC). It has been proved that for graphs that contain an arbitrary number of surface separating cycles and up to O(log⁡n)O(\log n) many topologically different surface non-separating cycles, both reachability and perfect matching can be isolated efficiently. The next step is to handle an arbitrary number of surface non-separating cycles. In this paper, we construct path-isolating as well as bipartite perfect matching-isolating weight assignments for a graph that has polynomial number of surface non-separating cycles.

We also investigate a complementary restriction for embedded directed graphs of genus gg: a hierarchical partition of the surface into lower-genus pieces with only O(log⁡n)O(\log n) crossing edges at every partition. Even when the pieces have complicated internal topology, the limited number of crossing edges bounds the number of competing minimum-weight paths after their weights have been isolated. An FKS hashing refinement at each merging level leads to an unambiguous O(log⁡g⋅log⁡n)O(\log g \cdot\log n)-space bound. Thus, the two contributions use path isolation to handle different forms of structural restriction: the number of surface non-separating cycles and the width of genus partitions.

Our Results

We study two complementary families of surface-embedded graphs. For graphs with polynomially many surface non-separating cycles, we obtain the following reachability and bipartite perfect-matching bounds.

Theorem 1 In directed graphs embedded on surfaces that contain at most a polynomial number of surface non-separating cycles, the reachability problem can be solved in unambiguous logspace (UL).

We complement this result by establishing an analogous complexity bound for the bipartite perfect matching problem.

Theorem 2 In undirected bipartite graphs embedded on surfaces that contain at most a polynomial number of surface non-separating cycles, the bipartite perfect matching problem lies in SPL.

For gg-genus graphs admitting a balanced hierarchical decomposition with logarithmically many crossing edges at every internal partition, we obtain a further reachability bound.

Theorem 3 In directed graphs embedded on surfaces that contain O(log⁡n)O(\log n) crossing edges between any 2 partitions of its genus decomposition, the reachability problem can be solved unambiguously in O(log⁡g⋅log⁡n)O(\log g \cdot\log n) space.

Organization. Section 3 motivates the cycle restriction. Section 4 establishes the PolySNSC reachability result, followed immediately by the bipartite perfect-matching consequence in Section 5. The final main section establishes the genus-decomposition reachability bound.

Preliminaries

Given a directed graph G=(V,E)G=(V,E), a weight assignment (alternatively function) w:E→Zw:E\to\mathbb{Z} is a function that assigns integer weights to all the edges of GG. Consequently, the weight of a path in GG is defined as the sum of the weights of edges that form the path. Graph GG is said to be min-unique with respect to a weight function ww, if between every pair of vertices, there exists at most one minimum weight path. The weight function ww is called a min-isolating (or path-isolating) weight function. A weight function ww is called skew-symmetric if for all edges e=(u,v)∈Ee=(u,v)\in E, w(e)=−w(er)w(e)=-w(e^{r}), where er=(v,u)e^{r}=(v,u). A weight function is called polynomially bounded (or of polynomial size) if it assigns O(log⁡n)O(\log n)-bit weights to all the edges of a graph. One of the ways to obtain isolation of paths and perfect matchings in a directed graph is by designing a skew-symmetric weight function that assigns non-zero weights to all the cycles in the graph.

We know that every graph can be embedded on a surface such that no two edges of the graph intersect each other. The genus of a graph is defined as the minimum genus surface on which it can be embedded without intersecting its edges. A surface having genus gg has gg holes in it. Cycles in graphs embedded on a surface of genus >0>0 can be divided into two classes : (i) surface separating cycles (SSCs) and, (ii) surface non-separating cycles (SNSCs).

Definition 1 Let GG be a graph embedded on a surface Σ\Sigma. A cycle CC is surface-separating if it separates Σ\Sigma, i.e., Σ∖C\Sigma\setminus C is disconnected. Otherwise, CC is surface non-separating. Alternatively, a cycle in the graph is called surface-separating if removing the cycle from the surface splits the surface into two disconnected regions and it is called non-separating if cutting along the cycle does not disconnect the surface and reduces the genus by 1.

As the name suggests, a cycle in a surface embedded graph is called a surface non-separating cycle if cutting along the cycle does not divide the surface into two parts and vice versa (see fig. 1). SNSCs are important because they are related to the genus of graphs. The genus of a graph GG is at most the number of disjoint SNSCs in GG, such that the surface does not divide even after cutting it along all the cycles together. In other words, if a graph is embedded on a minimum possible genus surface, then the genus of the graph (and surface) will be equal to the number of SNSCs present in the graph such that cutting the surface along those cycles does not separate the surface. The importance of the class of graphs with poly-many SNSCs is explained in detail in Section 3. Our objective therefore is to construct a weight function for the above class of graphs.

Definition 2 Let PolySNSC be the class of surface-embedded directed graphs such that they contain at most polynomially many surface non-separating cycles.

For a nondeterministic Turing machine MM, let acc⁡M(x)\operatorname{acc}_{M}(x) and rej⁡M(x)\operatorname{rej}_{M}(x) denote the number of accepting computations and the number of rejecting computations, respectively, on an input xx. Denote gap⁡M(x)=acc⁡M(x)−rej⁡M(x)\operatorname{gap}_{M}(x)=\operatorname{acc}_{M}(x)-\operatorname{rej}_{M}(x).

Definition 3 A language LL is in SPL if there exists a logspace bounded nondeterministic machine MM so that for all inputs xx, gap⁡M(x)∈{0,1}\operatorname{gap}_{M}(x)\in\{0,1\} and x∈Lx\in L if and only if gap⁡M(x)=1\operatorname{gap}_{M}(x)=1.

Complexity class SPL was initially studied by Allender et al. in Allender et al. [1]. With respect to matching, we define the following problem - BPMDecision: Given a bipartite graph GG, checking if GG has a perfect matching Datta et al. [8]. Although the weight function constructed by Gupta et al. [14] isolates paths in O(log⁡n)O(\log n) genus graphs, it is worth noticing that it is a skew-symmetric weight function that gives non-zero weights to all surface separating cycles (but not necessarily to any surface non-separating cycles) in graphs of arbitrary genus. We reuse their weight function as part of our final weight function and encapsulate their result in the following lemma.

Surface separating cycles and surface non-separating cycle

Figure 1. Surface separating cycles (marked in red) and surface non-separating cycle (denoted in blue). Figure Source

Lemma 1 Gupta et al. [14] Let GG be a directed graph given along with its embedding on a surface. There exists a logspace-computable polynomial-size skew-symmetric weight function wplw_{\mathrm{pl}} that gives nonzero weight to every surface-separating cycle in GG.

We now state the hashing result by Fredman, Komlós and Szemerédi that we use later. We refer to it as FKS Hashing Lemma in this text.

Lemma 2 Fredman et al. [13] Let S={x1,x2,…,xk}S = \{x_1, x_2, \ldots, x_k\} be a set of nn-bit integers. Then there exists an O(log⁡n+log⁡k)O(\log n + \log k) bit prime number pp so that for all xi≠xj∈Sx_i \ne x_j \in S, xi mod p≠xj mod px_i \bmod p \ne x_j \bmod p.

We will use the following Theorem from Reinhardt and Allender Reinhardt and Allender [18] to prove Theorem 1.

Theorem 4 Reinhardt and Allender [18] There is a nondeterministic logspace Turing machine MM that takes ⟨G,s,t,w⟩\langle G, s, t, w \rangle as input where GG is a directed graph on nn vertices, ss and tt are vertices in GG and ww is an O(log⁡n)O(\log n)-bit edge weight function and outputs the following along a unique computation path while all other computation paths halt and reject:

  • Not Min-unique if GG is not min-unique with respect to ww,

  • Yes, if GG is min-unique with respect to ww and there is a path from ss to tt in GG, and

  • No, if GG is min-unique with respect to ww and there is no path from ss to tt in $G.

Motivation

The class of graphs that contain polynomially many SNSCs is of particular interest due to its intricate relationship with graph embeddings and surface topology. Surface non-separating cycles are closely tied to the genus of a graph (or equivalently, the embedding surface). As the genus increases, more complex graphs can be embedded, and in fact, any graph can be embedded on a surface of polynomial genus. Interestingly, we observe that graphs with poly-many SNSCs can still exhibit very high genus, say of O(n)O(n). Conversely, there exist graphs of low genus that nevertheless contain exponentially many SNSCs. This demonstrates that the class PolySNSC is neither a strict superset nor a strict subset of the classes for which polynomial-size path-isolating weight functions are currently known. Consequently, identifying such a weight function for this class becomes a compelling and nontrivial direction. Below we give an example of a graph that has a very high genus but only polynomially many SNSCs.

Constructing a graph with high genus having poly-many SNSCs

Let us assume we have ii copies of the graph K5K_5, namely graphs G1,G2,…,GiG_1,G_2,\ldots,G_i, where each copy is embedded separately on a genus 1 surface (i.e., a torus). Let us assume that GiG_i contains vertices {v,vi1,vi2,vi3,vi4}\{v,v_i^1,v_i^2,v_i^3,v_i^4\}. 1-clique sum is a special version of kk-clique sum that is obtained by gluing two graphs together at a single vertex. This is done by selecting one vertex each from two separate graphs and identifying them as one in the resultant graph, keeping all edges incident to both vertices. Now we repeatedly take 1-clique sum of all the GiG_i's on vv. Let GG be the final graph thus constructed. We have given an informal proof that the genus of GG is ii and it contains only polynomially many SNSCs. We will prove it for the case when i=2i=2, and the same argument can be extended for arbitrary ii. We have G1G_1 and G2G_2 each embedded on a torus. We will prove that the genus of GG is 2. For the sake of contradiction, assume that GG can be embedded on a surface SS of genus 1.

Definition 4 For a graph GG embedded in an orientable or non-orientable closed surface Σ\Sigma, the embedding is called a 2-cell embedding or a cellular embedding where every face is homeomorphic to an open disk, i.e., each face is connected, and the boundary of each face is a closed walk in the graph.

The subgraph of GG induced by the vertices of G1G_1 is a non-planar graph, say HH. The embedding of HH on the surface SS will be a 2-cell embedding. No matter how we embed this subgraph on SS, each face in the embedding will be homeomorphic to an open disc. Notice that the remaining subgraph of GG, i.e., (G−H)(G-H), formed by removing only the edges, is also non-planar. Therefore, it cannot be embedded inside any face of HH, hence contradicting the assumption. This proves that GG cannot be embedded on the surface of genus 1. Similar argument can be extended for arbitrary ii.

We now show that the number of SNSCs in this graph is linear in ii. Let us consider a cycle starting from and ending at some vpi∈Giv_p^i \in G_i and covering vv. No vertex vpiv_p^i can form a cycle containing another vertex vqj∈Gjv_q^j \in G_j, since there is only a single way to traverse between them, through vv. vv has to be visited in any path going from vpiv_p^i to vqjv_q^j. While completing the cycle back to vpiv_p^i, vv has to be visited again, as there does not exist any other way to connect them. But a unique vertex cannot be visited twice in a cycle. Hence, each GiG_i can have at most 12 SNSCs. If we consider GG to be of linear genus, i.e., if i=ni=n, then the total number of surface non-separating cycles is at most 12i=O(n)12i=O(n). Thus GG is a graph with high genus (of order linear in nn), yet having poly-many SNSCs.

Path isolation and reachability in PolySNSC

Let us consider a directed acyclic graph (DAG) G′=(VG′,EG′)G'=(V_{G'},E_{G'}) and its corresponding underlying undirected graph, H′H'. Suppose the number of directed SNSCs in G′G' is tt. We know that reachability in G′G' is NL-complete because reachability in a DAG belongs to the class NL and is also NL-hard. On the other hand, H′H' can contain exponentially many undirected cycles. Therefore, putting a polynomial bound on the number of directed cycles does not imply a polynomial bound on the number of undirected cycles.

We briefly explain why constructing a skew-symmetric weight function that assigns non-zero weights to all the cycles in a graph is enough to isolate paths in that graph.

Proposition 1 For a class of directed graphs, if there exists a skew-symmetric weight function that gives non-zero weight to all the cycles in graphs of that class, then the weight function is path-isolating for that class of directed graphs.

Proof: Let wsw_s be a skew-symmetric weight function that gives nonzero weights to all the cycles in a directed graph GG. Let us assume there are two different paths P1P_1 and P2P_2, from uu to vv that have the same minimum weight. Now there are two cases, either they intersect or they do not intersect. Let us first assume that they do not intersect. Let us construct a graph G′G', that is obtained from GG by only reversing the direction of the edges along path P2P_2. Let us call that path P2rP_2^r in G′G'. Let CC be simple cycle formed by paths P1P_1 and P2rP_2^r in GG. We know that ws(C)=ws(P1)+ws(P2r)w_s(C) = w_s(P_1) + w_s(P_2^r). Since wsw_s is skew-symmetric, we have ws(P2)=−ws(P2r)w_s(P_2) = -w_s(P_2^r). This implies that ws(C)=ws(P1)−ws(P2)w_s(C) = w_s(P_1) - w_s(P_2). Since P1P_1 and P2P_2 are equal weight we can conclude that ws(C)=0w_s(C) = 0, which contradicts the assumption. Similarly, when P1P_1 and P2P_2 intersect, we can repeat the argument by considering the two sub-paths of P1P_1 and P2P_2 that start from uu and end at their first intersection point. □

Deciding reachability in PolySNSC

Theorem 5 Let G=(V,E)G = (V, E) be a gg-genus directed graph containing polynomially many simple surface non-separating cycles. Then there exists an O(log⁡n)O(\log n)-bit skew-symmetric weight function w:E→Zw : E \to\mathbb{Z} computable in logarithmic space that assigns non-zero weights to all the surface non-separating cycles in GG.

Proof: Let C={C1,C2,⋯ ,Ct}\mathcal{C} = \{C_1, C_2, \cdots, C_t\} be the set of tt many surface non-separating cycles, t=O(nk)t = O(n^k), for some constant kk. If CiC_i for any i∈[t]i \in[t] is not a directed cycle in GG then we do not care about it because the goal is to give nonzero weights to all the cycles. Therefore assume each CiC_i is directed cycle such CiC_i consists of two paths, namely PiP_i from uiu_i to viv_i and Pi′P_i' from viv_i to uiu_i, respectively. Let us index all the edges in the graph as e1,e2,⋯ ,eme_1, e_2, \cdots, e_m. We define a skew-symmetric weight function wexpw_{exp} which assigns 2i2^i to edge eie_i, i.e. wexp(ei)=2iw_{exp}(e_i) = 2^i. Weights of paths PiP_i and Pi′P_i' are defined as,

wexp(Pi)=∑∀ei∈Pi2i,wexp(Pi′)=∑∀ej∈Pi′2jw_{exp}(P_i) = \sum_{\forall e_i \in P_i} 2^i,\qquad w_{exp}(P_i') = \sum_{\forall e_j \in P_i'} 2^j

Let Pi′rP_i^{\prime r} be the path obtained by reversing the edges along path Pi′P_i'. Let P={P1,P1′r,P2,P2′r…Pt′r}\mathcal{P} = \{P_1, P_1^{\prime r}, P_2, P_2^{\prime r} \ldots P_t^{\prime r}\}. We can see that every path PP gets a different weight with respect to wexpw_{exp}, but the weight of a path is exponential. Since the cardinality of P\mathcal{P} is O(nk)O(n^k), from Lemma 2, we know that there exists an O(log⁡n)O(\log n)-bit prime pp, such that with respect to the weight function wfks(ei)=wexp(ei) mod pw_{fks}(e_i) = w_{exp}(e_i) \bmod p, each path in P\mathcal{P} gets a different weight. wfksw_{fks} here is of polynomial size.

wfks(Ci)=wfks(Pi)−wfks(Pi′r)w_{fks}(C_i) = w_{fks}(P_i) - w_{fks}(P_i^{\prime r})

Notice that, since each path in P\mathcal{P} gets a different weight, we can conclude that each CiC_i get a nonzero weight with respect to wfksw_{fks}. Also, from Lemma 1, we know that each surface separating cycle in GG gets a nonzero weight with respect to a skew-symmetric weight function wplw_{pl}. Therefore, taking a linear combination of these two weight functions, each cycle in the graph will now have zero weight with respect to the new weight function. In particular, we define the final weigh function as follows,

wfinal:=wpl⋅nl+wfks, for some constant l>0.w_{final} := w_{pl} \cdot n^l + w_{fks},\ \text{for some constant } l > 0.

Since both wplw_{pl} and wfksw_{fks} are skew-symmetric, wfinalw_{final} is also skew-symmetric. This settles the proof. □

Corollary 1. Deciding reachability in PolySNSC is in UL.

Proof of theorem 1: Given directed graph G∈PolySNSCG \in\mathrm{PolySNSC} on nn vertices and 2 vertices ss and tt, we iterate over all primes and for each of these primes, the weight function wfinalw_{final} is computed according to Theorem 5. Thereby using Theorem 4, we verify if GG is min-unique with respect to wfinalw_{final}. If yes, we check if tt is reachable from ss. If GG is not min-unique with respect to wfinalw_{final}, then we move to the next prime. The existence of such a prime with respect to which GG is min-unique is guaranteed by Lemma 2. Hence, along a unique computation path, we get a Yes or a No answer depending on whether ss is reachable from tt or not respectively, while all other computation paths halt and reject. Since all the computation happens in logspace, this establishes the UL bound and settles the proof of Theorem 1. □\square

Now, consider a graph HH having O(nk)O(n^k) many undirected cycles. We show that this implies that the number of directed cycles is bounded polynomially in nn for any directed version of HH, say G′G'.

Theorem 6 For an undirected gg-genus graph HH having polynomially many surface non-separating cycles, there exists an O(log⁡n)O(\log n)-bit weight function w′:E→Zw' : E \to\mathbb{Z} computable in logarithmic space that assigns non-zero weights to all the surface non-separating cycles in HH. Moreover, for every graph H∈PolySNSCH \in\mathrm{PolySNSC}, the minimum weight path in HH with respect to w′w' is unique.

Proof: Let tt be the number of undirected simple SNSC in HH (each undirected cycle is a closed simple sequence of distinct vertices and edges). We create a directed graph G′G' by replacing every undirected edge in HH with two directed edges in opposite directions. It is clear that each undirected simple cycle C∈HC \in H produces exactly two distinct simple directed cycles in G′G'- one following the edges of CC in one direction and the other following edges in the opposite direction. Let us denote one of those directions as clockwise and the other as counterclockwise. Then each undirected cycle contributes one clockwise directed simple cycle and one counterclockwise directed simple cycle. While considering clockwise orientation for every undirected cycle, the number of directed simple cycles oriented clockwise thus formed in G′G' is tt. Similarly, the number of counterclockwise oriented directed simple cycles in G′G' also equals tt, and the total number of directed cycles in G′G' is 2t2t (polynomial in nn, since t=O(nk)t = O(n^k)).

Given the gg-genus graph G′G' having 2t2t many cycles, let P\mathcal{P} be the set of paths that form these cycles. We now apply Theorem 5 on the directed graph G′G' to get a O(log⁡n)O(\log n)-bit weight function w′w' that assigns non-zero weights to all the SNSCs in G′G'. In the first stage, each edge is assigned wexp′w'_{exp} with respect to which, each path in P\mathcal{P} get a different weight. In the second stage, the FKS Hashing scheme is used to compute an O(log⁡n+log⁡t)O(\log n+\log t) bit weight function wfks′w'_{fks} with respect to which only one among the many paths of the first stage gets the minimum weight value. Applying FKS Hashing Lemma is possible because the number of directed cycles is still polynomial in tt, thereby also polynomial in nn. Thus, with respect to an O(log⁡n)O(\log n) bit weight function wfinal′w'_{final} created according, G′G' is min-unique. Combining the above argument with Proposition 1, if there exists a skew-symmetric weight function wfinal′w'_{final} that is path-isolating for G′G', then for the underlying undirected graph HH of G′G', there exists some O(log⁡n)O(\log n)-bit weight function w′w', with respect to which, the minimum weight path in HH is unique. This concludes the proof of Theorem 6. □\square

Isolating bipartite perfect matchings in PolySNSC

Definition 5 Tewari and Vinodchandran [20] Given an undirected graph HH, let OH\mathcal{O}_H be the set of all directed graphs H′H', such that the underlying undirected graph of H′H' is HH. For a class of undirected graphs H\mathcal{H}, define OH=⋃H∈HOH\mathcal{O}_{\mathcal{H}} = \bigcup_{H \in\mathcal{H}} \mathcal{O}_H.

Theorem 7 Tewari and Vinodchandran [20] Let G\mathcal{G} be a class of directed graphs and let ww be an edge weight function defined for every G∈GG \in\mathcal{G} such that ww is skew-symmetric and for any cycle C∈GC \in G, w(C)≠0w(C) \ne0. Let H\mathcal{H} be a class of undirected bipartite graphs, such that OH⊆G\mathcal{O}_{\mathcal{H}} \subseteq\mathcal{G}. Then we can construct a weight function w′w' in log-space, such that for every graph H∈HH \in\mathcal{H}, the minimum weight perfect matching in HH with respect to w′w' is unique.

Theorem 8 For the class of undirected bipartite graph H\mathcal{H} with polynomially many SNSCs, there exists an O(log⁡n)O(\log n)-bit weight function wpm′:E→Zw'_{pm}: E \to\mathbb{Z} computable in logarithmic space that assigns non-zero weights to all the surface non-separating cycles in HH such that with respect to wpm′w'_{pm}, for every graph H′∈HH' \in\mathcal{H}, the minimum weight perfect matching is unique.

Proof: Let H^\widehat{H} be the directed version of the underlying undirected bipartite graph H∈HH \in\mathcal{H} with (L,R)(L,R) being the bipartition and all the edges are directed from LL to RR. For two perfect matchings M1M_1 and M2M_2 in H^\widehat{H}, we define EM1⊟M2=(M1∪M2)∖(M1∩M2)E_{M_1\boxminus M_2} = (M_1 \cup M_2) \setminus(M_1 \cap M_2). The weight function wpmw_{pm} is the same as the weight function wfinalw_{final} derived in the previous subsection for isolating minimum weight unique paths.

Lemma 3 For a directed bipartite graph H^∈PolySNSC\widehat{H} \in\mathrm{PolySNSC}, there exists at most one minimum weight perfect matching in H^\widehat{H} with respect to the weight function wpmw_{pm}.

Proof of lemma 3: Let us assume that M1M_1 and M2M_2 are two minimum weight perfect matching in H^\widehat{H}. The set of edges in EM1⊟M2E_{M_1\boxminus M_2} forms vertex-disjoint cycles, say C1,C2,…,CkC_1,C_2,\ldots,C_k, as they contain edges which are either in M1M_1 or in M2M_2 but not both. are either in M1M_1 or in M2M_2 but not both. Note that any cycle CiC_i formed thus contain even number of edges alternating between M1M_1 and M2M_2 and all edges in this cycle are directed from LL to RR.

Let Ei1,Ei2E_{i1}, E_{i2} be the set of edges in M1M_1 and M2M_2 respectively for a cycle CiC_i. We see that wpm(Ej1)=wpm(Ej2)w_{pm}(E_{j1}) = w_{pm}(E_{j2}) for some cycle CjC_j. Otherwise, without loss of generality, if wpm(Ej1)>wpm(Ej2)w_{pm}(E_{j1}) > w_{pm}(E_{j2}), then a new perfect matching (M1∖Ek1)∪Ek2(M_1 \setminus E_{k1}) \cup E_{k2} can be formed having strictly lesser weight. This is a contradiction to the assumption that M1M_1 is a minimum weight perfect matching.

Now consider another graph H^′\widehat{H}' which is same as H^\widehat{H} but the direction of edges in M2∈H^M_2 \in\widehat{H} are reversed. Let M1′,M2′∈H^′M'_1,M'_2 \in\widehat{H}' be the corresponding matchings to M1,M2∈H^M_1,M_2 \in\widehat{H} such that the underlying undirected edges of M1M_1 and M2M_2 are the same as that of M1′M'_1 and M2′M'_2. Let C1′,C2′,…,Ck′C'_1,C'_2,\ldots,C'_k be the set of vertex disjoint cycles formed from the edges in EM1⊟M2E_{M_1\boxminus M_2} and Ei1′,Ei2′E'_{i1},E'_{i2} be the edges in M1′,M2′M'_1,M'_2 respectively in a cycle Ci′C'_i.

We have seen that wpm(Ei1)=wpm(Ei2)w_{pm}(E_{i1}) = w_{pm}(E_{i2}), for all i∈[k]i \in[k]. The set of edges Ei1E_{i1} equals Ei1′E'_{i1} and the set of edges Ei2E_{i2} equals the reversed set of edges Ei2′E'_{i2}. Since wpmw_{pm} is skew-symmetric, combining the previous assertion that wpm(Ej1)=wpm(Ej2)w_{pm}(E_{j1}) = w_{pm}(E_{j2}), we get,

wpm(Ei1′)=−wpm(Ei2′).w_{pm}(E'_{i1}) = -w_{pm}(E'_{i2}).

Therefore,

wpm(Ei1′)+wpm(Ei2′)=0, and hence, wpm(Ci′)=0.w_{pm}(E'_{i1}) + w_{pm}(E'_{i2}) = 0, \text{ and hence, } w_{pm}(C'_i) = 0.

It is known that wpmw_{pm}, like wfinalw_{final}, assigns non-zero weights to all the SNSCs in H^\widehat{H}. Therefore, wpm(Ci′)≠0w_{pm}(C'_i) \ne0 and this is a contradiction. Thus, there exists at most one minimum weight perfect matching in H^\widehat{H} with respect to wpmw_{pm}. Note that, since the edges in Ei2′E'_{i2} are reversed they have a direction from RR to LL whereas edges in Ei1′E'_{i_1} are from LL to RR. Therefore, the cycles C1′,C2′,…Ck′C'_1,C'_2,\ldots C'_k that were formed are directed cycles in H^′\hat{H}'. □

We also know from the proof of Theorem 6 that if the number of SNSCs in the class of undirected bipartite graphs is polynomial in nn, then the number of directed cycles in the corresponding directed version of the graphs, including cycles oriented both clockwise and anti-clockwise, is also bounded polynomially in nn.

For the class of directed graphs H^∈PolySNSC\hat{H} \in\text{PolySNSC}, there exists a skew-symmetric weight function wpmw_{pm}, that gives non-zero weights to all the cycles in any graph H∈H^H \in\hat{H}. Then using Theorem 7, we can say that for the class of undirected bipartite graph H\mathcal{H}, another weight function, say wpm′w'_{pm}, that can be constructed in logspace, such that for every H′∈HH' \in\mathcal{H}, if there exists a matching, the minimum weight perfect matching in H′H' with respect to wpm′w'_{pm} is unique. Thus, we see that for an undirected gg-genus bipartite graph H′∈HH' \in\mathcal{H}, with respect to the weight function wpm′w'_{pm}, if there is a perfect matching in H′H', the minimum weight perfect matching in H′H' is unique. This finishes the proof of Theorem 8. □

Lemma 4 Datta et al. [8] For any weighted graph GG assume that the minimum weight perfect matching in GG is unique and also for any subset of edges E′⊆EE' \subseteq E, the minimum weight perfect matching in (G∖E′)(G \setminus E') is also unique. Then deciding if GG has a perfect matching is in SPL.

Corollary 2 BPMDecision in PolySNSC is in SPL.

Proof of theorem 2: We have the weight function wpm′w'_{pm} from theorem 8, according to which if there exists a matching in H′∈HH' \in\mathcal{H}, then the minimum weight perfect matching in H′H' is unique. Then by simply applying Lemma 4 for the weighted graph H′H', the problem of deciding if H′H' has a perfect matching lies in SPL. This completes the proof of Theorem 2. □

Reachability via logarithmic-width genus decompositions

Graphs embedded on large genus surfaces may have different types of interactions among all their handles. We study these interactions by looking at potentially large genus graphs with genus separating partition, that divide the underlying surface on which the graph is embedded, into two sub-surfaces with only a small number of graph edges crossing the partition, referred here as crossing edges.

The class of gg-genus graphs admitting partitions with at most O(log⁡g)O(\log g) crossing edges gives an intermediate class between low genus graphs and unrestricted high genus graphs. This restriction limits the amount of connections between subgraphs and different groups of handles, while allowing either side to have considerable topological complexity. The subgraphs on either side of the partition may individually have large genus, exponentially many paths, and exponentially many surface non-separating cycles. Nevertheless, the number of edges through which a path can move between the two subgraphs is O(log⁡g)O(\log g). Thus, the graph can be topologically complicated within its individual regions but has a comparatively simple interaction structure between those regions.

The significance of this structural restriction becomes apparent in the context of path isolation. If the two subgraphs induced by a partition are individually min-unique with respect to positive edge weights, then the number of minimum weight paths between any pair of vertices in their union is bounded by the number of crossing edge subsets. Consequently, only polynomially many candidate minimum paths remain, allowing a polynomially bounded FKS hashing refinement to establish min-uniqueness across the partition.

This suggests a decomposition based approach to reachability in high genus graphs, in which the difficulty of isolating paths is governed not solely by the number of handles or surface non-separating cycles, but also by the interaction structure between subgraphs. In particular, logarithmic crossing edge width provides a natural structural parameter for investigating graph classes that may contain graphs of large genus while still admitting efficient path isolation procedures.

The O(log⁡n)O(\log n) crossing edges consequently help us construct a path isolating weight assignment for this class of graphs and subsequently establish a O(log⁡g⋅log⁡n)O(\log g \cdot\log n) unambiguous space bound on its reachability question. When two already isolated kk-genus graphs are joined across O(log⁡n)O(\log n) edges, the number of new surface non-separating cycles relevant to breaking ties between preliminary minimum paths is also polynomial.

Genus Partitions and Crossing Edges

In this section, we define genus partition of a graph and its corresponding crossing edges between the subgraphs of the decomposition of a gg-genus directed graph embedded in a polygonal schema having 4g4g sides. Let G=(V,E)G=(V,E) be a directed graph embedded on an orientable surface Σ\Sigma by an embedding φ\varphi.

Definition 6 (Genus Partition) A genus partition of GG is a separating simple closed curve γ⊆Σ\gamma\subseteq\Sigma, disjoint from the vertices of GG, such that γ\gamma divides Σ\Sigma into two connected sub-surfaces of genus g1g_1 and g2g_2, such that g=g1+g2g=g_1+g_2.

γ\gamma intersects the embedding of every edge transversely at most once. The curve induces a vertex partition V=V1∪V2V=V_1\cup V_2.

Definition 7 (Crossing Edges) Given a genus partition γ\gamma, an edge e∈Ee\in E is a crossing edge if its endpoints belong to different parts of the induced vertex partition. The set of crossing edges is

E×(γ)=E(V1,V2)∪E(V2,V1)E_{\times}(\gamma)=E(V_1,V_2)\cup E(V_2,V_1)

where E(Vi,Vj)E(V_i,V_j) denotes the set of directed edges from ViV_i to VjV_j.

The crossing edge width or the number of edges crossing γ\gamma is r(γ)=∣E×(γ)∣r(\gamma)=|E_{\times}(\gamma)|. We call a partition logarithmic-width if r(γ)≤clog⁡nr(\gamma)\le c\log n for a fixed constant c>0c>0. A hierarchical genus partition is uniformly logarithmic-width if this condition holds at every internal node of its decomposition tree. This genus partition restriction is relevant when obtaining min-isolating weights for the two decomposing subgraphs of a graph while constructing the desired genus decomposition. Suppose, initially, that g=2dg=2^d, d=log⁡2gd=\log_2 g. The recursion has d=log⁡2gd=\log_2 g merging levels.

Let G=(V,E)G=(V,E) be an nn-vertex directed graph embedded on an orientable surface Σ\Sigma of genus 2k2k. Let γ\gamma be a genus-separating curve that divides the surface into 2 kk-genus sub-surfaces and induces a vertex partition V=V1∪V2V=V_1\cup V_2. Denote the induced subgraphs by G1=G[V1]G_1=G[V_1] and G2=G[V2]G_2=G[V_2]. The set of crossing edges is E×={(u,v)∈E}E_{\times}=\{(u,v)\in E\} such that {u∈V1,v∈V2}\{u\in V_1,v\in V_2\} or {u∈V2,v∈V1}\{u\in V_2,v\in V_1\}. Suppose ∣E×∣≤c⋅log⁡n|E_{\times}|\le c\cdot\log n, for some constant c>0c>0. For a positive integer edge-weight function w:E→N>0w:E\to\mathbb{N}_{>0}, define Pw(u,v)={P:P is a minimum-w-weight directed u−v path}\mathcal{P}_w(u,v)=\{P:P\text{ is a minimum-}w\text{-weight directed }u-v\text{ path}\}. A graph is min-unique with respect to ww if ∣Pw(u,v)∣≤1|\mathcal{P}_w(u,v)|\le1, for every ordered pair (u,v)(u,v).

Reachability bound and proof outline

In this section, we study reachability in directed gg-graphs embedded on surfaces that have an O(log⁡n)O(\log n) crossing edges at every level of balanced binary decomposition of the surface Σ\Sigma in which the graph is embedded. The sub-surfaces containing subgraphs are decomposed recursively until each leaf corresponds to a 1-genus piece. This decomposition-based bound is stated as Theorem 3 in Section 1.1 and proved below.

Isolating paths in gg-genus graphs with O(log⁡n)O(\log n) crossing edges

We adapt the key lemma from Kallampally and Tewari [16] that adds O(log⁡n)O(\log n) bits in each round for our case. Our modification replaces their path length doubling method with a genus doubling method. Instead of extending isolation from paths of length ℓ\ell to 2ℓ2\ell, we extend it from two already isolated kk-genus pieces to their 2k2k-genus union.

We prove Theorem 3 in three parts. In the first part, we prove the Crossing Edges Merging Lemma that given two min-unique subgraphs and O(log⁡n)O(\log n) crossing edges between them, there exist only polynomially many competing minimum paths in the union of the subgraphs. In the next step, we prove the Genus Doubling Isolation Theorem and show that by using only one O(log⁡n)O(\log n)-bit FKS refinement, we can get a minimum unique path at that level of merging subgraphs. Finally, in the last part, we construct the Recursive Level Isolation by iterating over O(log⁡g)O(\log g) levels of decomposition and establish the O(log⁡g⋅log⁡n)O(\log g\cdot\log n) bound mentioned in Theorem 3.

Let G=(V,E)G=(V,E) be a directed graph over nn vertices with a vertex partition VV and crossing edge set E×E_{\times}, such that V=V1∪V2V=V_1\cup V_2 and ∣E×∣=r\lvert E_{\times}\rvert=r.

Lemma 5 (Crossing Edges Merging Lemma) Let w:E→N>0w:E\to\mathbb{N}_{>0} be a positive edge weight function such that both induced subgraphs G[V1]G[V_1] and G[V2]G[V_2] are min-unique with respect to ww. Then, for every ordered pair of vertices u,v∈Vu,v\in V, ∣Pw(u,v)∣≤2r\lvert P_w(u,v)\rvert\le2^r. In particular, if r≤clog⁡2nr\le c\log_2 n, then ∣Pw(u,v)∣≤nc\lvert P_w(u,v)\rvert\le n^c. Consequently, the total number of minimum weight paths over all ordered vertex pairs is at most ∣⋃u,v∈VPw(u,v)∣≤nc+2\left\lvert\bigcup_{u,v\in V}P_w(u,v)\right\rvert\le n^{c+2}.

Proof: Let u,v∈Vu,v\in V. Since ww is positive, every minimum weight u−vu-v path is simple. Therefore, every such path traverses each crossing edge at most once. For any minimum weight path PP, we define S(P)S(P) as those crossing edges that are in path PP, S(P)=E(P)∩E×S(P)=E(P)\cap E_{\times}. We first establish the following claim.

Claim 1 For any two minimum weight u−vu-v paths PP and QQ, if S(P)=S(Q)S(P)=S(Q) then P=QP=Q.

Proof of claim 1: Suppose S(P)=S(Q)={e1,…,eq}S(P)=S(Q)=\{e_1,\ldots,e_q\}. We show that the crossing edges occur in the same order along PP and QQ. Let d(x)=dist⁡w(u,x)d(x)=\operatorname{dist}_w(u,x) denote the minimum weight of a directed u−xu-x path. Since every prefix of a minimum weight path is also minimum weight, if crossing edge eie_i occurs before crossing edge eje_j on a minimum weight path, then d(tail⁡(ei))<d(tail⁡(ej))d(\operatorname{tail}(e_i))<d(\operatorname{tail}(e_j)), where tail⁡(ej)\operatorname{tail}(e_j) is the trailing vertex in the directed edge eje_j. The inequality is strict because all edge weights are positive. Thus, the order of crossing edges on a minimum weight path is determined uniquely by the distances of their tail vertices from uu. Consequently, PP and QQ must traverse the crossing edges in the same order.

Say, P=P0e1P1e2⋯eqPqP=P_0e_1P_1e_2\cdots e_qP_q and Q=Q0e1Q1e2⋯eqQqQ=Q_0e_1Q_1e_2\cdots e_qQ_q. Since the crossing edges occur in the same order, PiP_i and QiQ_i have the same endpoints and lie entirely within the same induced subgraph G[V1]G[V_1] or G[V2]G[V_2]. Moreover, each PiP_i and QiQ_i is a minimum weight path between its endpoints within that subgraph. Otherwise, replacing it with a lower weight path would produce a lower weight uu-vv walk, contradicting the minimality of PP or QQ. Since both induced subgraphs are min-unique, Pi=QiP_i = Q_i for every i∈{0,…,q}i \in\{0,\ldots,q\}. Therefore, P=QP = Q. This establishes the claim.

Since a simple path traverses each crossing edge at most once, the number of possible crossing edge subsets is bounded by 2O(log⁡g)=gO(1)2^{O(\log g)} = g^{O(1)}, which is polynomial in the input size for polynomially bounded genus. E×E_{\times} has at most 2r2^r subsets. Thus, ∣Pw(u,v)∣≤2r|\mathcal{P}_w(u,v)| \leq2^r. When r≤clog⁡2nr \leq c\log_2 n, ∣Pw(u,v)∣≤2clog⁡2n=nc|\mathcal{P}_w(u,v)| \leq2^{c\log_2 n} = n^c. Summing over all n2n^2 ordered vertex pairs gives

∣⋃u,v∈VPw(u,v)∣≤nc+2=O(nc+2)\left|\bigcup_{u,v\in V}\mathcal{P}_w(u,v)\right| \leq n^{c+2} = O(n^{c+2})

Theorem 9 (Genus Doubling Isolation Theorem). Let G=(V,E)G = (V,E) be an nn-vertex directed graph embedded on an orientable surface of genus 2k2k, and let γ\gamma be a genus partition dividing the surface into two kk-genus subsurfaces. Let G1,G2G_1, G_2 be the corresponding induced subgraphs, and let E×E_{\times} denote the crossing edge set satisfying ∣E×∣≤clog⁡2n|E_{\times}| \leq c\log_2 n, for a fixed constant c>0c > 0. Suppose there exist positive integer edge-weight functions w1:E(G1)⟶N>0w_1 : E(G_1) \longrightarrow\mathbb{N}_{>0} and w2:E(G2)⟶N>0w_2 : E(G_2) \longrightarrow\mathbb{N}_{>0} such that both G1G_1 and G2G_2 are min-unique with respect to w1w_1 and w2w_2, respectively. Assume further that max⁡{w1(e),w2(e)}<2b\max\{w_1(e),w_2(e)\} < 2^b for some b≥1b \geq1. Then there exists a positive integer edge-weight function W:E(G)⟶N>0W : E(G) \longrightarrow\mathbb{N}_{>0} such that:

  1. GG is min-unique with respect to WW.

  2. Every edge weight W(e)W(e) can be represented using at most b+O(log⁡n)b + O(\log n) bits.

  3. W(e)W(e) is computable in space O(b+log⁡n)O(b+\log n). In particular, it is logspace computable when b=O(log⁡n)b = O(\log n) and the child weights are logspace computable.

Proof: We construct the desired weight function in three steps. In the first step, we construct the preliminary weight function w:E(G)⟶N>0w : E(G) \longrightarrow\mathbb{N}_{>0} as follows:

w(e)={w1(e),e∈E(G1),w2(e),e∈E(G2),1,e∈E×.w(e) = \begin{cases} w_1(e), & e \in E(G_1),\\ w_2(e), & e \in E(G_2),\\ 1, & e \in E_{\times}. \end{cases}

By assumption, G1G_1 and G2G_2 are min-unique under the restrictions of ww. Although GG need not be min-unique under ww, Lemma 5 implies that

∣Pw(u,v)∣≤2∣E×∣≤nc,for every u,v∈V.|\mathcal{P}_w(u,v)| \leq2^{|E_{\times}|} \leq n^c,\quad\text{for every }u,v\in V.

Let S=⋃u,v∈VPw(u,v)\mathcal{S} = \bigcup_{u,v\in V}\mathcal{P}_w(u,v). Then ∣S∣≤nc+2|\mathcal{S}| \leq n^{c+2}. Thus, ww leaves only polynomially many minimum weight paths across all vertex pairs.

In the next step, we apply FKS hashing on these polynomially many min-weight paths. Let E(G)={e1,e2,…,em}E(G) = \{e_1,e_2,\ldots,e_m\} be a fixed ordering of the directed edges. Define an exponential edge-weight function wexp⁡w_{\exp} as wexp⁡(ei)=2i−1w_{\exp}(e_i) = 2^{i-1}. For a simple path PP, define

wexp⁡(P)=∑ei∈P2i−1.w_{\exp}(P) = \sum_{e_i\in P} 2^{i-1}.

Because the paths in S\mathcal{S} are simple, distinct paths have distinct sets of directed edges. Therefore, if P≠QP \ne Q, then wexp⁡(P)≠wexp⁡(Q)w_{\exp}(P) \ne w_{\exp}(Q). Each value of wexp⁡(P)w_{\exp}(P) has at most (m+1)(m+1) bits. Since m≤n2m \le n^2 for a simple directed graph, and ∣S∣≤nc+2|\mathcal{S}| \le n^{c+2}, lemma 2 guarantees the existence of a prime pp having O(log⁡n)O(\log n) bits such that

P≠Q,P,Q∈S ⟹ wexp⁡(P)≠wexp⁡(Q)(modp).P \ne Q,\quad P,Q\in\mathcal{S}\ \Longrightarrow\ w_{\exp}(P) \ne w_{\exp}(Q)\pmod p.

Define

hp(ei)=2i−1 mod p.h_p(e_i) = 2^{i-1}\bmod p.

Therefore, for any two distinct paths P,Q∈SP,Q\in\mathcal{S},

hp(P)−hp(Q)≡wexp⁡(P)−wexp⁡(Q)(modp)h_p(P)-h_p(Q)\equiv w_{\exp}(P)-w_{\exp}(Q)\pmod p
≠0(modp).\ne0\pmod p.

Thus, hph_p distinguishes every pair of distinct paths in S\mathcal{S}. While combining the preliminary weight with the FKS weight, we choose BB of some large value so that the component of the weight from the previous round gets more priority than the FKS component. Say B=n(p−1)+1B=n(p-1)+1. Then, we define the final edge-weight function as,

W(e)=Bw(e)+hp(e).W(e)=B w(e)+h_p(e).

Now we show that GG is min-unique under WW. Fix any two vertices u,vu,v, and let PP and QQ be two simple directed u−vu-v paths. Since a simple path has at most n−1n-1 edges and the FKS weight is less than the prime pp, 0≤hp(e)<p0\le h_p(e)<p, we have

0≤hp(P),hp(Q)≤(n−1)(p−1)<B.0\le h_p(P),h_p(Q)\le(n-1)(p-1)<B.

Therefore, when w(P)<w(Q)w(P)<w(Q), the integrality of ww gives w(Q)−w(P)≥1w(Q)-w(P)\ge1. Hence,

W(Q)−W(P)=B(w(Q)−w(P))+hp(Q)−hp(P)≥B−(n−1)(p−1)>0.\begin{aligned} W(Q)-W(P)&=B(w(Q)-w(P))+h_p(Q)-h_p(P)\\ &\ge B-(n-1)(p-1)\\ &>0. \end{aligned}

Conversely, if w(P)<w(Q)w(P)<w(Q), then W(P)<W(Q)W(P)<W(Q). In particular, every minimum WW-weight u−v)u-v) path must also be a minimum ww-weight u−vu-v path. Now suppose, towards a contradiction, that P,QP,Q are distinct minimum WW-weight u−vu-v paths. Both paths must belong to Pw(u,v)⊆SP_w(u,v)\subseteq\mathcal{S}. Therefore, w(P)=w(Q)w(P)=w(Q). Because P≠QP\ne Q and P,Q∈SP,Q\in\mathcal{S}, hp(P)≠hp(Q)h_p(P)\ne h_p(Q). Hence,

W(P)−W(Q)=B(w(P)−w(Q))+hp(P)−hp(Q)=hp(P)−hp(Q)≠0.\begin{aligned} W(P)-W(Q)&=B(w(P)-w(Q))+h_p(P)-h_p(Q)\\ &=h_p(P)-h_p(Q)\\ &\ne0. \end{aligned}

This contradicts the assumption that P,QP,Q have equal minimum weight WW. Thus, for every u,vu,v, ∣PW(u,v)∣≤1|\mathcal{P}_W(u,v)| \le1. Therefore GG is min-unique with respect to WW. Since p=nO(1)p=n^{O(1)}, B=nO(1)B=n^{O(1)}. Also for every edge, w(e)<2bw(e)<2^b. Therefore, W(e)<B⋅2b+pW(e)<B\cdot2^b+p, hence W(e)W(e) requires O(b+O(log⁡n))O(b+O(\log n)) bits. Given pp and the child weights, the function WW can be evaluated in O(b+log⁡n)O(b+\log n) space. This finishes the proof of Theorem 9.

We observe that after the subgraphs have been isolated, complexity of merging the paths depend on the cut size over the partition and not directly on the total genus. Now we combine the weights over all log⁡g\log g stages. We extend Theorem 9 recursively to obtain a min-isolating weight function for directed gg-genus graphs. The construction uses Lemma 5 and a single FKS hashing at each level by sharing the same prime for merging at that level.

Corollary 3 (Recursive Level Isolation). Let G=(V,E)G=(V,E) be an nn-vertex directed graph embedded on an orientable surface of genus gg. Suppose GG has a binary genus logspace decomposition TT of depth d=O(log⁡g)d=O(\log g), where every internal node XX has two children X1,X2X_1,X_2, with VX=VX1∪VX2V_X=V_{X_1}\cup V_{X_2}, and crossing edge set satisfying ∣E×(X)∣≤c⋅log⁡n|E_{\times}(X)|\le c\cdot\log n for some fixed constant cc. If each leaf graph has a positive, logspace computable, O(log⁡n)O(\log n)-bit min-isolating weight function W0W_0, then GG admits a min-isolating weight function using O(log⁡g⋅log⁡n)O(\log g\cdot\log n) bits per edge.

Proof of theorem 3: Suppose every subgraph at level j−1j-1 is min-unique under Wj−1W_{j-1}. Let the nodes at level jj be X1,X2,…,XrjX_1,X_2,\ldots,X_{r_j}. For each XiX_i, define the preliminary weight fjf_j by retaining Wj−1W_{j-1} on the two child subgraphs and assigning weight 1 to their crossing edges. Let

SXi=⋃u,v∈VXiPfj(u,v).S_{X_i}=\bigcup_{u,v\in V_{X_i}}\mathcal{P}_{f_j}(u,v).

By Lemma 5, ∣Pfj(u,v)∣≤2∣E×(Xi)∣≤nc|\mathcal{P}_{f_j}(u,v)|\le2^{|E_{\times}(X_i)|}\le n^c. Therefore, ∣SXi∣≤∣VXi∣2nc|S_{X_i}|\le|V_{X_i}|^2n^c. Since the vertex sets at level jj are disjoint,

∑i=1rj∣VXi∣2≤n2.\sum_{i=1}^{r_j}|V_{X_i}|^2\le n^2.

Consequently,

∣⋃i=1rjSXi∣≤nc+2.\left|\bigcup_{i=1}^{r_j}S_{X_i}\right|\le n^{c+2}.

Thus, there are polynomially many preliminary minimum paths across all merges at level jj. Index the edges of GG as e1,…,eme_1,\ldots,e_m. By the FKS Hashing Lemma, there exists a polynomially bounded prime pjp_j with respect to which hj(ei)=2i−1 mod pjh_j(e_i)=2^{i-1}\bmod p_j distinguishes all distinct nontrivial paths in this collection. Hence, one O(log⁡n)O(\log n)-bit prime pjp_j suffices for every merge at level jj.

In the next step, we construct the recursive weight assignment. For every node at level jj, define

fj(e)={Wj−1(e),e belongs to a child subgraph,1,e∈E×(X).f_j(e)= \begin{cases} W_{j-1}(e), & e\text{ belongs to a child subgraph},\\ 1, & e\in E_{\times}(X). \end{cases}

Choose a polynomially bounded integer BB satisfying B>n(pj−1)B>n(p_j-1) for every level jj. The same BB can be used throughout the construction. Let us define the weight function for an intermediate step jj, Wj(e)=Bfj(e)+hj(e)W_j(e)=Bf_j(e)+h_j(e). As shown in theorem 9, factor BB ensures that fjf_j weight takes precedence over the hash contribution. Thus, every minimum WjW_j path is a minimum fjf_j path. Since hjh_j distinguishes all distinct minimum fjf_j paths, WjW_j makes every jjth subgraph min-unique. Applying induction, W1,W2,…,WdW_1, W_2, \ldots, W_d isolate all subgraphs at their respective levels. Thus, GG is min-unique with respect to WdW_d.

In the last step, we calculate the size of the final weight. Let bjb_j denote the maximum number of bits required to represent an edge weight under WjW_j. Since BB and pjp_j are polynomially bounded, we have bj≤bj−1+O(log⁡n)b_j \le b_{j-1} + O(\log n). The leaf subgraph requires b0=O(log⁡n)b_0 = O(\log n) bit weights. Therefore, bj=O((j+1)⋅log⁡n)b_j = O((j + 1) \cdot\log n). Since the decomposition has depth of O(log⁡g)O(\log g), the final weight requires a total of bd=O((1+log⁡g)⋅log⁡n)b_d = O((1 + \log g) \cdot\log n) bits. Thus, each genus doubling stage adds only O(log⁡n)O(\log n) bits. This completes the proof of Theorem 3.

Moreover, directed reachability in GG can be decided by a polynomial time unambiguous algorithm using O(log⁡g⋅log⁡n)O(\log g \cdot\log n) space. At each level jj, we enumerate the candidate primes pjp_j in increasing order and use the min-uniqueness testing algorithm in Kallampally and Tewari [16] to select the prime making every level jj subgraph min-unique.

Theorem 9 provides an unambiguous min-uniqueness test for a bb bit weight function in O(b+log⁡n)O(b + \log n) space. Storing the selected primes p1,p2,…,pdp_1, p_2, \ldots, p_d, require O(d⋅log⁡n)O(d \cdot\log n) bits altogether. Given these primes, the final edge weights can be evaluated in O((d+1)⋅log⁡n)O((d + 1) \cdot\log n) space. Hence, the total space required for weight construction and min-uniqueness testing is O((d+1)⋅log⁡n)=O(log⁡g⋅log⁡n)O((d + 1) \cdot\log n) = O(\log g \cdot\log n). Applying the weighted min-unique reachability algorithm gives an unambiguous algorithm using the same space bound. Therefore, reachability in graphs with O(log⁡g)O(\log g) crossing edges ∈USPACE(O(log⁡g⋅log⁡n))\in\mathrm{USPACE}(O(\log g \cdot\log n)). This establishes the space bound of Theorem 3.

AI Disclosure

We used GPT 6.1 Plus to assist with proof ideas, writing parts of the paper and reviewing drafts and statements of the work. The tool materially affected section 6. We verified the correctness and originality of all content, including references.

Acknowledgements

This work was supported in part by the PM ECRG Grant, India (Grant No. ANRF/ECRG/2024/004480/ENS), and the Faculty Initiation Grant (No. 101027), IIT Roorkee, awarded to Chetan Gupta.

References

  1. [1]E. Allender, K. Reinhardt, and S. Zhou. Isolation, matching, and counting: Uniform and nonuniform upper bounds. Journal of Computer and System Sciences, 59(2):164–181, 1999. doi: 10.1006/jcss.1999.1646. URL https://doi.org/10.1006/jcss.1999.1646.
  2. [3]R. Arora, A. Gupta, R. Gurjar, and R. Tewari. Derandomizing isolation lemma for K₃,₃-free and K₅-free bipartite graphs. In 33rd Symposium on Theoretical Aspects of Computer Science (STACS 2016), volume 47 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1–10:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi: 10.4230/LIPIcs.STACS.2016.10. URL https://doi.org/10.4230/LIPIcs.STACS.2016.10.
  3. [4]C. Bourke, R. Tewari, and N. V. Vinodchandran. Directed planar reachability is in unambiguous log-space. ACM Transactions on Computation Theory, 1(1):4:1–4:17, 2009. doi: 10.1145/1490270.1490274. URL https://doi.org/10.1145/1490270.1490274.
  4. [5]G. Buntrock, B. Jenner, K.-J. Lange, and P. Rossmanith. Unambiguity and fewness for logarithmic space. In Fundamentals of Computation Theory, volume 529 of Lecture Notes in Computer Science, pages 168–179. Springer, 1991. doi: 10.1007/3-540-54458-5_61. URL https://doi.org/10.1007/3-540-54458-5_61.
  5. [6]B. Das, S. Datta, and P. Nimbhorkar. Log-space algorithms for paths and matchings in k-trees. In 27th International Symposium on Theoretical Aspects of Computer Science (STACS 2010), volume 5 of Leibniz International Proceedings in Informatics (LIPIcs), pages 215–226. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2010. doi: 10.4230/LIPIcs.STACS.2010.2456. URL https://doi.org/10.4230/LIPIcs.STACS.2010.2456.
  6. [7]S. Datta, R. Kulkarni, and S. Roy. Deterministically isolating a perfect matching in bipartite planar graphs. Theory of Computing Systems, 47(3):737–757, 2010. doi: 10.1007/s00224-009-9204-8. URL https://doi.org/10.1007/s00224-009-9204-8.
  7. [8]S. Datta, R. Kulkarni, R. Tewari, and N. V. Vinodchandran. Space complexity of perfect matching in bounded genus bipartite graphs. Journal of Computer and System Sciences, 78(3):765–779, 2012. doi: 10.1016/j.jcss.2011.11.002. URL https://doi.org/10.1016/j.jcss.2011.11.002.
  8. [9]S. Datta, P. Kumar, A. Mukherjee, A. Tawari, N. Vortmeier, and T. Zeume. Dynamic complexity of reachability: How many changes can we handle? In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), volume 168 of Leibniz International Proceedings in Informatics (LIPIcs), pages 122:1–122:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi: 10.4230/LIPIcs.ICALP.2020.122. URL https://doi.org/10.4230/LIPIcs.ICALP.2020.122.
  9. [10]S. Datta, C. Gupta, R. Jain, A. Mukherjee, V. R. Sharma, and R. Tewari. Reachability and matching in single crossing minor free graphs. In 41st IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2021), volume 213 of Leibniz International Proceedings in Informatics (LIPIcs), pages 16:1–16:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi: 10.4230/LIPIcs.FSTTCS.2021.16. URL https://doi.org/10.4230/LIPIcs.FSTTCS.2021.16.
  10. [12]S. Fenner, R. Gurjar, and T. Thierauf. Bipartite perfect matching is in quasi-NC. In Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC), pages 754–763. ACM, 2016. doi: 10.1145/2897518.2897564.DOI
  11. [13]M. L. Fredman, J. Komlós, and E. Szemerédi. Storing a sparse table with O(1) worst case access time. Journal of the ACM, 31(3):538–544, 1984. doi: 10.1145/828.1884. URL https://doi.org/10.1145/828.1884.
  12. [14]C. Gupta, V. R. Sharma, and R. Tewari. Reachability in O(log n) genus graphs is in unambiguous logspace. In 36th International Symposium on Theoretical Aspects of Computer Science (STACS 2019), volume 126 of Leibniz International Proceedings in Informatics (LIPIcs), pages 34:1–34:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi: 10.4230/LIPIcs.STACS.2019.34. URL https://doi.org/10.4230/LIPIcs.STACS.2019.34.
  13. [15]C. Gupta, V. R. Sharma, and R. Tewari. Efficient isolation of perfect matching in O(log n) genus bipartite graphs. In 45th International Symposium on Mathematical Foundations of Computer Science (MFCS 2020), volume 170 of Leibniz International Proceedings in Informatics (LIPIcs), pages 43:1–43:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi: 10.4230/LIPIcs.MFCS.2020.43. URL https://doi.org/10.4230/LIPIcs.MFCS.2020.43.
  14. [16]V. A. T. Kallampally and R. Tewari. Trading determinism for time in space bounded computations. In 41st International Symposium on Mathematical Foundations of Computer Science (MFCS 2016), volume 58 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1–10:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi: 10.4230/LIPIcs.MFCS.2016.10. URL https://doi.org/10.4230/LIPIcs.MFCS.2016.10.
  15. [17]O. Reingold. Undirected connectivity in log-space. Journal of the ACM, 55(4):17:1–17:24, 2008. doi: 10.1145/1391289.1391291. URL https://doi.org/10.1145/1391289.1391291.
  16. [18]K. Reinhardt and E. Allender. Making nondeterminism unambiguous. SIAM Journal on Computing, 29(4):1118–1131, 2000. doi: 10.1137/S0097539798339041. URL https://doi.org/10.1137/S0097539798339041.
  17. [19]O. Svensson and J. Tarnawski. The matching problem in general graphs is in quasi-NC. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 696–707. IEEE, 2017. doi: 10.1109/FOCS.2017.70.DOI
  18. [20]R. Tewari and N. V. Vinodchandran. Green’s theorem and isolation in planar graphs. Information and Computation, 215:1–7, 2012. doi: 10.1016/j.ic.2012.03.002. URL https://doi.org/10.1016/j.ic.2012.03.002.
  19. [21]D. van Melkebeek and G. Prakriya. Derandomizing isolation in space-bounded settings. In 32nd Computational Complexity Conference (CCC 2017), volume 79 of Leibniz International Proceedings in Informatics (LIPIcs), pages 5:1–5:32. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi: 10.4230/LIPIcs.CCC.2017.5. URL https://doi.org/10.4230/LIPIcs.CCC.2017.5.

Paper details

vlnc:W_nar5jn9b
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

GPT 6.1 Plus

View statement
Looking for related papers…
Contents