Pathfinding in Self-Deleting Graphs
Abstract
In this paper, we study the problem of pathfinding on traversal-dependent graphs, i.e., graphs whose edges change depending on the previously visited vertices. In particular, we study self-deleting graphs, introduced by Carmesin et al. [5], which consist of a graph and a function , where is the set of edges that will be deleted after visiting the vertex . In the (Shortest) Self-Deleting --path problem we are given a self-deleting graph and its vertices and , and we are asked to find a (shortest) path from to , such that it does not traverse an edge in after visiting for any vertex .
We prove that Self-Deleting --path is NP-hard even if the given graph is outerplanar, bipartite, has maximum degree , bandwidth and for each vertex . We show that Shortest Self-Deleting --path is W[1]-complete parameterized by the length of the sought path and that Self-Deleting --path is W[1]-complete parameterized by the vertex cover number, feedback vertex set number and treedepth. We also show that the problem becomes FPT when we parameterize by the maximum size of and several structural parameters. Lastly, we show that the problem does not admit a polynomial kernel even for parameterization by the vertex cover number and the maximum size of combined already on 2-outerplanar graphs.
Keywords and phrases:
Parameterized complexity, self-deleting graphs, pathfindingCopyright and License:
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsFunding:
This work was co-funded by the European Union under the project Robotics and advanced industrial production (reg. no. CZ.02.01.01/00/22_008/0004590). Michal Dvořák and Jan Pokorný acknowledge the support of Grant Agency of the Czech Technical University in Prague, grant No. SGS23/205/OHK3/3T/18.Editors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung TsaiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Pathfinding in graphs is a well-studied topic, both from a theoretical and from a practical perspective. The famous Dijkstra’s algorithm for finding a shortest path between two vertices runs in time that is quadratic in the number of vertices. However, this algorithm works under the assumption that the underlying graph is static, i.e., does not change. In many practical applications, this assumption does not hold.
One way to reflect the changes in the underlying graph is to model it as a temporal graph, where each edge is present in the graph only at certain times. In this setting, there are several ways to define the “best” path between two vertices: shortest path (using the smallest number of edges), fastest (the path that requires the smallest number of timesteps) and foremost (the path that requires the smallest number of timesteps starting from time zero). In all of these cases, the pathfinding problem can be solved in polynomial time [23].
In some applications, however, the way that the underlying graph changes is traversal-dependent. In other words, the availability of an edge is not time-dependent, but it depends on the previously visited vertices and edges. One such example is open-pit mining, where drilling at a vertex creates a pile of rubble which renders some edges impassable. Another example is autonomous harvesting, in which the vehicle should not return to the previously visited areas to avoid soil compactification [5].
In this paper, we consider the model introduced by Carmesin et al. [5], called self-deleting graph. A self-deleting graph is a graph together with a function , which describes which edges will be deleted after visiting a vertex. We stress that the edges in are not necessarily incident to . We consider the (Shortest) Self-Deleting - path problem, where we are given a self-deleting graph and its vertices and and we are asked to find a (shortest) path from to that is valid (i.e., in which we are not traversing an edge in after visiting the vertex ).
Related work.
Several variants of pathfinding with restrictions on vertices and edges have been studied.
Wojciechowski et al. [21] introduced a problem called Optional Choice Reachability, where we are given a graph together with a set of pairs of edges, and we are asked to find an - path that contains at most one edge from each pair in . They showed that this problem is NP-complete even on directed acyclic graphs (DAGs) of pathwidth 2 and FPT parameterized by .
The vertex analogue of this problem, where we are given a set of pairs of vertices and we are required to use at most one of them from each pair was introduced by Krause et al. [19]. On the one hand, the problem is NP-hard even for DAGs [13], even if the set of pairs has a specific structure, such as overlapping [17] or ordered [18]. On the other hand, it is polynomial time solvable, if the structure is well-parenthesized [17], halving [17], or nested [9], or in other special cases [24]. Notably, Bodlaender et al. [3] studied the problem from parameterized perspective on undirected graphs, showing that it is W[1]-hard w.r.t. vertex cover number of the input graph , but FPT w.r.t. vertex cover number of graph or treewidth of graph , where graph has an edge for each forbidden pair. Moreover, it does not admit polynomial kernel w.r.t. vertex cover number of graph , unless [3].
Szeider [20] studied the problem of finding a path where for each vertex, only certain combinations of incoming and outgoing edges are permitted. He provides a dichotomy between the cases which are NP-hard and cases which are linear time solvable, based on the structure of permitted combinations. In the variant where the cost of each arc depends on previously traversed arcs, introduced by Kirby and Potts [16], the shortest walk can be found in polynomial time [2, 25], but finding the shortest path is NP-hard and hard to approximate [22]. In the variant with exclusive-disjunction arc pairs conflicts, introduced by Cerulli et al. [6], we are given pairs of arcs and we have to pay a penalty if the path contains either none of the arcs or both of them. The goal is to find a path minimizing the sum of length of edges and the penalties paid. They show that the problem is NP-hard and provide heuristics.
Our results.
In Section 3, we consider the (classical) complexity of (Shortest) Self-Deleting --path. Our first result is that Self-Deleting --path is NP-hard even on a very restricted graph class, namely outerplanar bipartite graphs of maximum degree 3. Moreover, as we show in Corollary 3.4, the result holds even when the self-deleting graph deletes at most one edge for each vertex (i.e., for all ). Next, we show a separation between Self-Deleting --path and Shortest Self-Deleting --path: namely, on cactus graphs the former problem can be solved in linear time, whereas the latter is NP-hard (Theorems 3.10 and 3.11 respectively).
In Section 4, we turn our attention to parameterized complexity. Firstly, we consider the parameterization of Shortest Self-Deleting --path by solution size, and in Theorem 4.3 we show that it is -complete. For most structural parameters, Self-Deleting --path turns out to be para-NP-hard or -complete. For an overview of our results on parameterizations by structural parameters, see Figure 1.
In order to make the problem tractable, we consider the case of bounded deletion set size (i.e. we parameterize the problem by ). Although this parameterization alone does not make the problem tractable (in particular, we show that Shortest Self-Deleting --path is para-NP-hard parameterized by ), it turns out that the parameterization by and (the number of vertices of the sought path) leads to an FPT algorithm. This result allows us to obtain several FPT algorithms for parameterizations by and structural parameters, such as vertex cover number, vertex integrity and treedepth. Using the results of Dvořák et al. [12] on the number of edges in traceable graphs with dense structure, we obtain FPT algorithms for several dense parameters and , such as neighborhood diversity, shrub-depth, modular-width, and size of maximum induced matching. For an overview of our results about parameterizations by structural parameters and , refer to Figure 2.
Lastly, in Section 5, we consider kernelizing the problem. We show that, under standard parameterized complexity assumptions, Self-Deleting --path does not admit a polynomial kernel parameterized by and vertex cover number even on -outerplanar graphs. On the positive side, we obtain a linear kernel for the parameterization by feedback edge number and linear kernel for the parameterization by vertex cover number on outerplanar graphs. Moreover, while Self-Deleting --path does not admit a classical kernel parameterized by on cliques, we obtain a linear Turing kernel on cliques parameterized by .
2 Preliminaries
For an integer we let . For any function and , the restriction of to is denoted . We use the notation to suppress polylogarithmic factors in time complexity.
Graph Theory.
We use standard notations, terminology, and definitions of graph theory, refer to Diestel [11] for those. Unless explicitly stated, we consider simple undirected graphs. We denote a – walk (or path) in a graph by the sequence of vertices and edges , where . For brevity, we may sometimes omit the edges and write just the sequence of vertices. We denote by the number of connected components of a graph . A graph is a cactus if every edge lies on at most one cycle. A graph is a block graph if every vertex--connected component is a clique. A grid for some positive integer is a ladder. The class of cographs is the minimal class of graphs containing the one-vertex graph and closed under complete joins and disjoint unions of two graphs.
Self-deleting graphs.
A self-deleting graph is an ordered pair , where is an undirected graph and is a function . We write instead of if is clear from the context. The function is called the deletion function. Let be a self-deleting graph. A path or walk in is -conforming if for every we have . We denote and . If is clear from the context, we omit the lower index and write just . Central to our paper are the two decision problems Self-Deleting --path and Shortest Self-Deleting --path. In Self-Deleting --path we are given a self-deleting graph and two vertices and the task is to decide if there is an -conforming - path in . In Shortest Self-Deleting --path we are in addition given a positive integer and the task is to decide if there is an -conforming - path in on at most vertices.
We assume that as otherwise the problems are trivial. Moreover, if appears in the base of an exponential or in a logarithm, should be replaced by in order to avoid degenerate cases. We stick to writing for the sake of readability.
Parameterized complexity.
We assume the reader is familiar with parameterized complexity. For definitions and comprehensive overview, refer to the monograph of Cygan et al. [10]. In our work we consider the following structural parameters: bandwidth (), distance to clique (), vertex cover number (), domination number (), maximum induced matching (), neighborhood diversity (), diameter (), cluster vertex deletion number (), feedback vertex set number (), distance to linear forest (), vertex integrity (), feedback edge number (), treedepth (), distance to cograph (), modular-width (), and shrub-depth (). Formal definitions of all the parameters can be found in the full version of this paper.
Exponential Time Hypothesis.
Exponential Time Hypothesis (ETH), introduced by Impagliazzo, Paturi and Zane [14, 15] asserts, roughly speaking, that there is no algorithm for Sat in time , where is the number of variables of the input formula. In fact, even algorithm is ruled out by using the Sparsification Lemma [15], where is the number of clauses of the input formula. We also utilize the result of Chen, Huang, Kanj, and Xia [7, 8] that there is no algorithm for (Multicolored) Clique for any computable function unless ETH fails.
Statements where proofs or details are omitted due to space constraints are marked with . The omitted material is available in the full version of this paper.
3 Classical Complexity
As observed by Carmesin et al. [5, Lemma 3], if every vertex deletes only its incident edges, Self-Deleting --path reduces to pathfinding in a directed graph: deleting at orients the edge from to , and if both endpoints delete it, the edge is removed entirely. Thus, Self-Deleting --path is solvable in linear time when all contain only edges incident to . Another scenario when the problem is tractable is that the graph has only a constant number of - paths, e.g., in trees or graphs of maximum degree . The problem becomes hard already on graphs of maximum degree . We show a polynomial-time reduction from Sat to Self-Deleting --path which we also utilize later with slight modifications.
Construction 3.1.
Let be a given CNF-formula over variables with clauses . Our construction of an instance of Self-Deleting --path consist of variable and clause gadgets that we now introduce. See Figure 3 for an example.
- Variable gadget
-
The variable gadget for a variable is a -cycle with vertices .
- Clause gadget
-
The clause gadget for a clause is the grid. The top left corner vertex is denoted (input) and the bottom right corner vertex is denoted (output). Each of the vertical edges correspond to a literal of . For a literal we denote its corresponding edge by .
Create one variable gadget for each variable and one clause gadget for each clause. Add edges of the form for every , add edge and finally the edges for every . We let and . It remains to specify the deletion function . For all vertices except inside the variable gadgets, we set . For a variable we set and . In other words, deletes the literal edges in clause gadgets corresponding to literals and deletes the literal edges corresponding to literals . The resulting Self-Deleting --path instance is .
Lemma 3.2 ().
Let be the formula and the Self-Deleting --path instance obtained by Construction 3.1 from . Then is satisfiable if and only if there is an -conforming - path in .
By using Construction 3.1 together with Lemma 3.2 we immediately obtain the following theorem.
Theorem 3.3.
Self-Deleting --path is NP-hard.
Corollary 3.4.
Self-Deleting --path is NP-hard even if the deletion function satisfies , i.e., .
Proof.
Use Construction 3.1 with the following modification. Replace the vertex (resp. ) by a path on (resp. ) vertices and delete one edge of the original set on each vertex of the path to obtain .
Remark 3.5.
Note that Construction 3.1 produces a graph with vertices and edges, where and are the number of variables and clauses in the original Sat formula.
Lemma 3.6 ().
grid has bandwidth , treedepth at most and vertex integrity at most .
Since the resulting graph of Construction 3.1 is a subgraph of a ladder of size , it is straightforward to obtain the following corollary:
Corollary 3.7.
Self-Deleting --path is NP-hard even when restricted to outerplanar bipartite graphs of maximum degree and bandwidth even with .
Corollary 3.8 ().
Self-Deleting --path remains NP-hard even when restricted to the classes of unit interval graphs, ladder graphs, or block graphs even when .
We can also easily obtain hardness on cliques by adding all non-existent incident edges to the deletion set of every vertex. However, as we will see later, we cannot hope to upper bound by a constant in cliques and preserve NP-hardness (˜4.21 and 5.3).
Corollary 3.9 ().
Self-Deleting --path is NP-hard even when restricted to cliques.
Cactus graphs.
Corollaries 3.7 and 3.8 show that even if we allow a slight generalization of trees, the problem becomes NP-hard. One particular non-trivial case that allows for a polynomial-time algorithm is the class of cactus graphs. We show that when restricted to cactus graphs, Self-Deleting --path becomes polynomial-time solvable (Theorem 3.10). Interestingly, deciding an existence of an -conforming path is easy, however Shortest Self-Deleting --path remains NP-hard even in cactus graphs (Theorem 3.11). Note that in cactus graphs each edge lies on at most cycle, whereas the graph resulting from Construction 3.1 has each edge on at most cycles so the problem becomes NP-hard in this case.
Theorem 3.10 ().
Self-Deleting --path can be solved in linear time if the underlying graph is a cactus.
Proof Sketch.
Consider the block-cut tree of and note that we can only restrict ourselves to the part of that contains the - path in the block-cut tree of . This part consists of cycles and bridges. In each cycle we have two options to choose from. Each choice possibly forbids some choices in the future. This can be encoded as an implication of the type if we choose this path, then we cannot choose some other path in the future. We can thus reduce the problem to Sat. Details can be found in the full version of this paper.
Theorem 3.11 ().
Shortest Self-Deleting --path is NP-hard even when restricted to cactus graphs, and .
Proof Sketch..
We provide a polynomial reduction from Independent Set. For each vertex we introduce one cycle on the designated --path (in the block-cut tree). One of the paths corresponds to taking the vertex and the other to not taking it. Inclusion of a vertex forbids inclusion of any of its neighbors by deleting an edge of the appropriate path. Crucially, the inclusion path is shorter, so the desired length of the path forces an appropriate number of vertices to be included in the independent set.
4 Parameterized complexity
In this section we focus on parameterized complexity of (Shortest) Self-Deleting --path. Note that the problem is para-NP-hard parameterized by bandwidth or maximum degree (hence also parameterized by treewidth) due to Corollary 3.7. Moreover, it is also para-NP-hard parameterized by any parameter that is constant on cliques (Corollary 3.9).
We show that Shortest Self-Deleting --path is W[1]-complete parameterized by (the number of vertices of the sought path) (Theorem 4.3) and that Self-Deleting --path is W[1]-hard parameterized by the vertex cover number. We then show that Self-Deleting --path is in fact W[1]-complete for parameters vertex cover number, vertex integrity, treedepth, distance to linear forest, and feedback vertex set number (Theorems 4.5 and 4.8).
The last hope for positive algorithmic results lies in the parameter feedback edge number (). Here, we observe that Self-Deleting --path parameterized by can be solved in time (Corollary 4.10). Later, in Section 5 we show that Self-Deleting --path even admits kernel with vertices and edges (however, this does not yield as fast algorithm). Refer to Figure 1 for a graphical overview of the results for structural parameters alone.
Then, in order to obtain algorithmic results, we combine structural parameters with the parameter . While Shortest Self-Deleting --path is para-NP-hard parameterized by alone (Corollary 3.4), and W[1]-complete parameterized by (Theorem 4.3), the problem becomes FPT parameterized by and combined (Theorem 4.17). This also yields many FPT results for Self-Deleting --path parameterized by structural parameters and combined (Theorem 4.24). Refer to Figure 2 for an overview of such results.
4.1 W[1]-completeness for length of the path
We begin with a reduction from Multicolored Clique to Self-Deleting --path. We developed this construction independently, although later we discovered that it is similar to the one of Bodlaender et al. [3, Theorem 9] for a related problem.
Construction 4.1.
Let be the input graph for Multicolored Clique and let be the partition of into color classes. We build an instance of Self-Deleting --path as follows. Create guard vertices . For every and add a vertex and connect it to and by edges and . We denote by the path . This completes the description of the graph . We let and . It remains to specify the deletion sets. The only vertices with nonempty deletion sets will be the vertices on the paths . We let .
Lemma 4.2 ().
Let be an instance of Multicolored Clique and be the instance of Self-Deleting --path obtained from it by Construction 4.1. There is a multicolored clique in if and only if there is an -conforming - path in .
Note that in the instance from Construction 4.1, any -conforming - path has at most vertices. We immediately obtain W[1]-hardness of Shortest Self-Deleting --path w.r.t. .
Theorem 4.3 ().
Shortest Self-Deleting --path is W[1]-complete w.r.t. .
4.2 Parameterization by structural parameters alone
Observe that the resulting graph from Construction 4.1 has vertex cover number at most , because is edgeless. We immediately obtain W[1]-hardness of Self-Deleting --path for the parameter vertex cover number.
We establish membership in W[1] of Self-Deleting --path parameterized by the feedback vertex set number (Theorem 4.4) and treedepth (˜4.7). These results together with W[1]-hardness for vertex cover number establish W[1]-completeness for the following parameters: vertex cover, distance to linear forest, feedback vertex set, vertex integrity, and treedepth (Theorems 4.5 and 4.8).
Theorem 4.4 ().
Self-Deleting --path parameterized by the feedback vertex set number is in W[1].
Proof Sketch.
If has a feedback vertex set , then any path in is split by into at most segments where the segments are uniquely determined by their endpoints, as is a forest. We can thus equivalently look for a path of length in a graph where we represent long paths in by paths of length two and reflect the deletions along these unique - paths in . Full proof can be found in the full version of this paper.
Theorem 4.5 ().
Self-Deleting --path parameterized by feedback vertex set, distance to linear forest, or vertex cover is W[1]-complete, solvable in time and unless ETH fails, there is no algorithm for any of the above parameters and any computable function .
Lemma 4.6 ().
Let be a graph with treedepth and vertex integrity . Then contains no path on more than or vertices.
Observation 4.7.
Self-Deleting --path parameterized by treedepth is in W[1].
Proof.
We provide a parameterized reduction from Self-Deleting --path parameterized by treedepth to Self-Deleting --path parameterized by , which is in W[1] by Theorem 4.3. Let be an instance of Self-Deleting --path, we return the instance where . Correctness follows from Lemma 4.6.
Theorem 4.8 ().
Self-Deleting --path is W[1]-complete parameterized by treedepth or vertex integrity. More precisely, Self-Deleting --path can be solved in and time. For any , algorithms for Self-Deleting --path with running times or violate ETH.
We complement the hardness results by a positive result for the parameter feedback edge number. Note that given a path in a self-deleting graph, it is easy to check whether is -conforming in time .
Lemma 4.9 ().
Let be a graph and two fixed vertices in . Then the number of --paths in is at most .
Corollary 4.10 ().
Self-Deleting --path can be solved in time. Moreover, -time algorithm for Self-Deleting --path violates ETH.
4.3 FPT algorithm for and combined
We demonstrate that Shortest Self-Deleting --path parameterized by and combined is in FPT. We utilize color-coding, introduced by Alon et al. [1]. We consider a colorful variant of the problem, where we consider coloring of the edges and we only distinguish edges based on their colors. The sought solution – an -conforming path on vertices interacts with the edges in the path and with the edges in the deletion sets . By assumption there are at most such edges in total. Hence if we can ensure that the coloring will behave nicely on the set , we will find the path even in the colorful variant. We now formally define the colorful variant of our problem, which we refer to as Shortest -compliant --path.
Definition 4.11.
Let be a self-deleting graph and let be a coloring of its edges. Let be a path in . We say that
-
1.
is -compliant if for any ,
-
2.
is half--rainbow if and is injective.
-
3.
is -rainbow if for the restriction is injective.
In the Shortest -compliant --path problem we are given a self-deleting graph , positive integer , coloring , vertices and the task is to decide whether there is a -compliant - path on at most vertices in .
Lemma 4.12 ().
The following holds for any path :
-
1.
is -rainbow is half--rainbow.
-
2.
is half--rainbow and -conforming is -compliant.
-
3.
is -compliant is -conforming.
Lemma 4.13 ().
Given an instance of Shortest -compliant --path and a set of colors , we can in time decide whether there exists a -compliant path on at most vertices using only colors from .
Lemma 4.14.
Shortest -compliant --path can be solved in or in time.
Proof.
We can either plug into the algorithm of Lemma 4.13 and obtain the running time or we can try all possible sets of colors and obtain the running time . Note that we seek a path on (at most) vertices, hence (at most) edges.
Theorem 4.15 ().
There is a randomized algorithm solving Shortest Self-Deleting --path with the following guarantees. Given , it runs in time. Moreover, if the input is a no-instance, the algorithm outputs no. If the input is a yes-instance, the algorithm outputs yes with probability at least .
Proof sketch..
Asume that as otherwise the problem is trivial. We use the algorithm from Lemma 4.14 with running time . We try a random edge coloring using colors. For a fixed coloring using colors, we lower bound the probability that a path is -compliant, given that is -conforming. Thus, we are equivalently lower bounding the probability that the algorithm succeeds in finding the -conforming path. Let . We lower bound the probability that is half--rainbow. Suppose that the edges in are colored by colors from the set . For to become half--rainbow, we need to ensure that the edges in are colored by one of the remaining colors and that the coloring is injective on . The probability of that happening for the edges is . Note that the last term lower bounds every other term and the last term is lower bounded by because given that . Hence the probability that is half--rainbow is at least .
We repeat the above for random choices of and the proof on the probability of error and running time follow. The full proof can be found in the full version of this paper.
There are two ways to derandomize the algorithm given in Theorem 4.15. Neither of the two algorithms is Pareto optimal with respect to and . Hence, each of them turns out to be more suitable in different scenarios.
Theorem 4.16 ().
Shortest Self-Deleting --path is solvable in time.
Theorem 4.17 ().
Shortest Self-Deleting --path is solvable in time.
4.4 Parameterization by structural parameters and combined
We utilize the FPT algorithms w.r.t. and combined to obtain several FPT algorithms for various structural parameters combined with . In the results that follow, we apply whichever of Theorem 4.17 or Theorem 4.16 yields the better asymptotic running time for the given parameters.
We start with the vertex cover number for which we prove similar bound as in Lemma 4.6.
Observation 4.18 ().
Let be a graph with vertex cover number . Then contains no path on more than vertices.
Corollary 4.19 ().
Self-Deleting --path can be solved in time, in time, or in time. Moreover, algorithms with running times , , or for Self-Deleting --path even for violate ETH.
Unless , the FPT algorithm for vertex cover cannot be extended already to the parameter distance to linear forest.
Theorem 4.20 ().
Self-Deleting --path is W[1]-complete parameterized by the distance to linear forest, even if .
Dense parameters and combined
In the remainder of this section we focus on parameters whose bounded values together with the existence of a long path imply dense structure of the graph in some sense. As a warmup example, recall that Self-Deleting --path is NP-hard on cliques (Corollary 3.9). Observe that there is always an -conforming path on at most vertices when the underlying graph is a clique, if there is any -conforming path at all. This is because the vertex cannot delete more than edges, so if the path is longer, then there is a shortcut that we can take. By plugging this upper bound into Theorem 4.17, we obtain the following:
Observation 4.21.
Self-Deleting --path is solvable in time on cliques.
We build upon this idea. In general, vertices of a -vertex path can delete at most edges. On the other hand, if we consider only shortest (-conforming) paths, any shortcut edge on the vertices of the path must be deleted as otherwise the path can be shortened, contradicting that it is the shortest path. We thus obtain the following:
Observation 4.22.
Let be a self-deleting graph and let be a shortest -conforming - path in . Let be the subgraph of induced by the vertices of . Then .
| parameter | lower bound | length of path | running time |
|---|---|---|---|
| distance to cograph | |||
| cluster vertex deletion number | |||
| neighborhood diversity | |||
| modular-width | |||
| maximum induced matching | |||
| shrub-depth |
We now utilize the results of Dvořák et al. [12]. They provide a lower bound on the number of edges in the input graph, given that it contains long (Hamiltonian) path. Recall that graphs containing a Hamiltonian path are also called traceable. By combining these bounds together with ˜4.22, we obtain an upper bound on the length of a shortest -conforming - path in the underlying graph in terms of and some structural parameter , see Table 1 for an overview. Recall that supresses polylogarithmic factors.
Lemma 4.23.
Let be a graph parameter monotone under taking induced subgraphs. Suppose there are global constants such that any traceable graph with vertices contains at least edges. Then Self-Deleting --path can be solved in time. In particular it is FPT parameterized by and combined.
Proof.
Let be the input instance of Self-Deleting --path and let be a shortest -conforming - path in . Let and let be the graph induced by vertices of . By assumption on , either (because is monotone), or . By ˜4.22 we also have . By combining these two bounds we obtain the bound . By plugging into Theorem 4.17 we obtain the promised algorithm with running time .
We could prove an analogous version of Lemma 4.23 also with the functions , , or with different running time of the algorithm (see Table 1).
Theorem 4.24.
Self-Deleting --path is FPT w.r.t. and combined where is one of the following parameters: cluster vertex deletion number, neighborhood diversity, distance to cograph, modular-width, maximum induced matching, shrub-depth.
Proof.
We prove the theorem for cluster vertex deletion number, the rest is proved similarly by using suitable lower bound from Table 1. If , the graph is a cluster and we can restrict ourselves to the clique where and lies and use ˜4.21. Otherwise, if , by the result of Dvořák et al. [12] any traceable graph on vertices contains at least edges. Invoke Lemma 4.23 for and to obtain the desired algorithm.
Domination Number.
FPT algorithms for distance to cograph, modular-width, or maximum induced matching cannot be extended to an FPT algorithm for the diameter of the graph (and combined). We show that Self-Deleting --path is para-NP-hard already for domination number and combined.
Theorem 4.25 ().
Self-Deleting --path remains NP-hard even when the self-deleting graph satisfies .
5 Kernels
In this section, we show that while Self-Deleting --path admits FPT algorithms for broad number of structural parameters with combined, it does not admit a polynomial kernel w.r.t. the vertex cover number and combined already in the class of -outerplanar graphs unless the polynomial hierarchy collapses. Moreover, there is no polynomial kernel in the class of cliques w.r.t. , but there is a linear Turing kernel w.r.t. in the class of cliques.
Theorem 5.1 ().
Unless , Self-Deleting --path does not admit a polynomial kernel with respect to
-
a)
and combined, even on -outerplanar graphs;
-
b)
even with and on -outerplanar graphs;
-
c)
on cliques.
Proof Sketch for a).
We provide an OR-cross-composition of Sat into Self-Deleting --path parameterized by and . The idea is to use Construction 3.1 for a formula with all clauses with auxiliary skip edges that allow to pass a clause for free. Before we prepend selector vertices for instances that will delete appropriate skip edges and thus modify the rest of the graph to look like the reduction for the given formula. Details can be found in the full version of this paper.
Theorem 5.2 ().
Self-Deleting --path admits
-
a)
an kernel;
-
b)
an kernel on outerplanar graphs;
-
c)
a Turing kernel with vertices on cliques.
Corollary 5.3 ().
Self-Deleting --path can be solved in time if the underlying graph is a clique and -time algorithm on cliques violates ETH.
6 Conclusion and open problems
We initiated a systematic study of complexity of finding a simple path in a self-deleting graph, which we call Self-Deleting --path. While the problem is hard on very restricted graph classes, we were able to design FPT algorithm(s) parameterized by the solution size and structure of the deletion function. This further allowed us to design FPT algorithms for various structural parameters combined with the structure of the deletion function.
Our derandomization of the color-coding algorithm yields running time of (Theorem 4.17) or (Theorem 4.16). We were unable to derandomize it in a way to match the randomized running time of from Theorem 4.15. We conjecture that with a suitable pseudorandom object, there is a way to derandomize the algorithm into a deterministic time.
Our framework for FPT algorithms parameterized by and together with lower bounds on the number of edges in traceable graphs with dense structure does not give optimal running times under ETH. For example, already for cliques, the framework gives running time (˜4.21) which is not optimal (Corollary 5.3). Assuming ETH, we cannot obtain an algorithm for Shortest Self-Deleting --path with running time (see Remark 3.5). Similarly, an algorithm with running time would imply that Shortest Self-Deleting --path parameterized by is in FPT (this is due to [4, Lemma 1]), which would then imply that . Note that Shortest Self-Deleting --path becomes FPT w.r.t. if by plugging into the algorithm from Theorem 4.17 and using the fact that is fpt-time.
Can the algorithms for structural parameters and be improved to match the above ETH lower bounds? For example, is it possible to solve Self-Deleting --path in deterministic time (note that we can achieve such a running time by a randomized algorithm)?
References
- [1] Noga Alon, Raphael Yuster, and Uri Zwick. Color-coding. Journal of the Association for Computing Machinery, 42(4):844–856, July 1995. doi:10.1145/210332.210337.
- [2] J. Añez, T. De La Barra, and B. Pérez. Dual graph representation of transport networks. Transportation Research Part B: Methodological, 30(3):209–216, 1996. doi:10.1016/0191-2615(95)00024-0.
- [3] Hans L. Bodlaender, Bart M. P. Jansen, and Stefan Kratsch. Kernel bounds for path and cycle problems. Theoretical Computer Science, 511:117–136, 2013. doi:10.1016/J.TCS.2012.09.006.
- [4] Liming Cai and David W. Juedes. Subexponential parameterized algorithms collapse the W-hierarchy. In Fernando Orejas, Paul G. Spirakis, and Jan van Leeuwen, editors, Automata, Languages and Programming, 28th International Colloquium, ICALP 2001, Crete, Greece, July 8-12, 2001, Proceedings, volume 2076 of Lecture Notes in Computer Science, pages 273–284. Springer, 2001. doi:10.1007/3-540-48224-5_23.
- [5] Sarah Carmesin, David Woller, David Parker, Miroslav Kulich, and Masoumeh Mansouri. The Hamiltonian cycle and travelling salesperson problems with traversal-dependent edge deletion. Journal of Computer Science, 74:102156, 2023. doi:10.1016/J.JOCS.2023.102156.
- [6] Raffaele Cerulli, Francesca Guerriero, Edoardo Scalzo, and Carmine Sorgente. Shortest paths with exclusive-disjunction arc pairs conflicts. Computers & Operations Research, 152:106158, 2023. doi:10.1016/J.COR.2023.106158.
- [7] Jianer Chen, Xiuzhen Huang, Iyad A. Kanj, and Ge Xia. Linear FPT reductions and computational lower bounds. In László Babai, editor, Proceedings of the 36th Annual ACM Symposium on Theory of Computing, Chicago, IL, USA, June 13-16, 2004, pages 212–221. ACM, 2004. doi:10.1145/1007352.1007391.
- [8] Jianer Chen, Xiuzhen Huang, Iyad A. Kanj, and Ge Xia. Strong computational lower bounds via parameterized complexity. Journal of Computer and System Sciences, 72(8):1346–1367, 2006. doi:10.1016/J.JCSS.2006.04.007.
- [9] Ting Chen, Ming-Yang Kao, Matthew Tepel, John Rush, and George M. Church. A dynamic programming approach to de novo peptide sequencing via tandem mass spectrometry. Journal of Computational Biology, 8(3):325–337, 2001. doi:10.1089/10665270152530872.
- [10] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Daniel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015.
- [11] Reinhard Diestel. Graph Theory, 4th Edition, volume 173 of Graduate texts in mathematics. Springer, 2012.
- [12] Michal Dvořák, Dušan Knop, Michal Opler, Jan Pokorný, Ondřej Suchý, and Krisztina Szilágyi. Density of traceable graphs, 2025. arXiv:2506.22269.
- [13] Harold N. Gabow, Shachindra N. Maheswari, and Leon J. Osterweil. On two problems in the generation of program test paths. IEEE Transactions on Software Engineering, 2(3):227–231, 1976. doi:10.1109/TSE.1976.233819.
- [14] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. Journal of Computer and System Sciences, 62(2):367–375, 2001. doi:10.1006/JCSS.2000.1727.
- [15] Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? Journal of Computer and System Sciences, 63(4):512–530, 2001. doi:10.1006/JCSS.2001.1774.
- [16] Ronald F. Kirby and Renfrey B. Potts. The minimum route problem for networks with turn penalties and prohibitions. Transportation Research, 3(3):397–408, 1969. doi:10.1016/S0041-1647(69)80022-5.
- [17] Petr Kolman and Ondřej Pangrác. On the complexity of paths avoiding forbidden pairs. Discrete Applied Mathematics, 157(13):2871–2876, 2009. doi:10.1016/J.DAM.2009.03.018.
- [18] Jakub Kováč. Complexity of the path avoiding forbidden pairs problem revisited. Discrete Applied Mathematics, 161(10):1506–1512, 2013. doi:10.1016/j.dam.2012.12.022.
- [19] K. Krause, R. Smith, and M. Goodwin. Optimal software test planning through automated network analysis. In Proceedings of the IEEE Symposium on Computer Software Reliability, pages 18–22, 1973.
- [20] Stefan Szeider. Finding paths in graphs avoiding forbidden transitions. Discrete Applied Mathematics, 126(2):261–273, 2003. doi:10.1016/S0166-218X(02)00251-2.
- [21] Piotr Wojciechowski, K. Subramani, and Alvaro Velasquez. Reachability in choice networks. Discrete Optimization, 48:100761, 2023. doi:10.1016/j.disopt.2023.100761.
- [22] Piotr Wojciechowski, M. Williamson, and K. Subramani. On the analysis of optimization problems in arc-dependent networks. Discrete Optimization, 45:100729, 2022. doi:10.1016/j.disopt.2022.100729.
- [23] Huanhuan Wu, James Cheng, Yiping Ke, Silu Huang, Yuzhen Huang, and Hejun Wu. Efficient algorithms for temporal path computation. IEEE Transactions on Knowledge and Data Engineering, 28(11):2927–2942, 2016. doi:10.1109/TKDE.2016.2594065.
- [24] Hananya Yinnone. On paths avoiding forbidden pairs of vertices in a graph. Discrete Applied Mathematics, 74(1):85–92, 1997. doi:10.1016/S0166-218X(96)00017-0.
- [25] Athanasios K. Ziliaskopoulos and Hani S. Mahmassani. A note on least time path computation considering delays and prohibitions for intersection movements. Transportation Research Part B: Methodological, 30(5):359–367, 1996. doi:10.1016/0191-2615(96)00001-X.
