Table of Contents
Fetching ...

Locally Rainbow Paths

Till Fluschnik, Leon Kellerhals, Malte Renken

TL;DR

The paper introduces Locally Rainbow Path and Locally Rainbow Walk in vertex-colored digraphs, where an r-rainbow path/walk requires every block of r+1 consecutive vertices to have distinct colors. It shows NP-hardness for Locally Rainbow Path with fixed r≥2, but proves fixed-parameter tractability for Locally Rainbow Walk parameterized by r using an ordered representative framework, with a near-optimal ETH-based lower bound. The authors further develop a detailed length-bounding and distance-separator approach to obtain FPT results also when combining the detour length k with r. They also relate the walk and path problems through reductions, discuss edge-colored variants, and outline broader implications for resource-constrained and temporal-graph settings. Overall, the work provides a nuanced landscape: efficient FPT algorithms for walks under locality constraints and strong hardness for paths, with precise lower bounds guiding what can be feasibly computed in practice.

Abstract

We introduce the algorithmic problem of finding a locally rainbow path of length $\ell$ connecting two distinguished vertices $s$ and $t$ in a vertex-colored directed graph. Herein, a path is locally rainbow if between any two visits of equally colored vertices, the path traverses consecutively at least $r$ differently colored vertices. This problem generalizes the well-known problem of finding a rainbow path. It finds natural applications whenever there are different types of resources that must be protected from overuse, such as crop sequence optimization or production process scheduling. We show that the problem is computationally intractable even if $r=2$ or if one looks for a locally rainbow among the shortest paths. On the positive side, if one looks for a path that takes only a short detour (i.e., it is slightly longer than the shortest path) and if $r$ is small, the problem can be solved efficiently. Indeed, the running time of the respective algorithm is near-optimal unless the ETH fails.

Locally Rainbow Paths

TL;DR

The paper introduces Locally Rainbow Path and Locally Rainbow Walk in vertex-colored digraphs, where an r-rainbow path/walk requires every block of r+1 consecutive vertices to have distinct colors. It shows NP-hardness for Locally Rainbow Path with fixed r≥2, but proves fixed-parameter tractability for Locally Rainbow Walk parameterized by r using an ordered representative framework, with a near-optimal ETH-based lower bound. The authors further develop a detailed length-bounding and distance-separator approach to obtain FPT results also when combining the detour length k with r. They also relate the walk and path problems through reductions, discuss edge-colored variants, and outline broader implications for resource-constrained and temporal-graph settings. Overall, the work provides a nuanced landscape: efficient FPT algorithms for walks under locality constraints and strong hardness for paths, with precise lower bounds guiding what can be feasibly computed in practice.

Abstract

We introduce the algorithmic problem of finding a locally rainbow path of length connecting two distinguished vertices and in a vertex-colored directed graph. Herein, a path is locally rainbow if between any two visits of equally colored vertices, the path traverses consecutively at least differently colored vertices. This problem generalizes the well-known problem of finding a rainbow path. It finds natural applications whenever there are different types of resources that must be protected from overuse, such as crop sequence optimization or production process scheduling. We show that the problem is computationally intractable even if or if one looks for a locally rainbow among the shortest paths. On the positive side, if one looks for a path that takes only a short detour (i.e., it is slightly longer than the shortest path) and if is small, the problem can be solved efficiently. Indeed, the running time of the respective algorithm is near-optimal unless the ETH fails.
Paper Structure (33 sections, 22 theorems, 20 equations, 4 figures)

This paper contains 33 sections, 22 theorems, 20 equations, 4 figures.

Key Result

Theorem 1

Locally Rainbow Walk can be solved in $\mathcal{O}((r\cdot e)^{\omega r} \cdot \ell m)$ time, where $m$ is the number of arcs in the input graph and $\omega$ is the matrix multiplication constant.

Figures (4)

  • Figure 1: A digraph whose vertices are colored with four colors, with a shortest $2$-rainbow (but not $3$-rainbow) $s$-$t$ path.
  • Figure 2: Example for \ref{['constr:r-eth']} on a $3\times 3$-grid with $\mathcal{F} = \{, , \dots, \}$. Gray (thin) arcs exist independently of the current subset $F_i \in \mathcal{F}$. Black arcs point to elements in $F_i$ and are the only way to reach the top copy. The highlighted path selects the hitting set $\{(1,2), (2,1), (3,3)\}$, thereby visiting, i.a., $w^{2,1}_1$, $v^{1,2}_2$, and $w^{3,3}_2$. The path visits one black arc for each $F_i \in \mathcal{F}$.
  • Figure 3: (a) The variable gadget and (b) the clause gadget in \ref{['constr:ufp']}. (c) An example showing how a literal path corresponding to literal $\bar{x}_i$ in clause $c_j$ is attached to the variable gadget at $\bar{v}_i^1$. (d) The connection between the last variable gadget and the first clause gadget.
  • Figure 4: An exemplary $s$-$t$ path $P$, circles marking distance separators. The $x$-axis shows the vertices of $P$ in the order of their appearance. The $y$-axis shows the distance of the current vertex to $t$. Our algorithm exploits the property that the subpaths between any two distance separators are short (i.e., of length at most $2k+1$) and internally vertex-disjoint.

Theorems & Definitions (49)

  • Theorem 1
  • Definition 2: Ordered representative
  • Definition 3: Unordered representative
  • Proposition 4: fomin2016representative
  • Lemma 6
  • proof
  • Corollary 7: \ref{['proof:thm:ordered-rep']}
  • proof
  • proof
  • Lemma 9
  • ...and 39 more