English

Locally Rainbow Paths

Data Structures and Algorithms 2024-02-21 v1

Abstract

We introduce the algorithmic problem of finding a locally rainbow path of length \ell connecting two distinguished vertices ss and tt 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 rr 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=2r=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 rr is small, the problem can be solved efficiently. Indeed, the running time of the respective algorithm is near-optimal unless the ETH fails.

Keywords

Cite

@article{arxiv.2402.12905,
  title  = {Locally Rainbow Paths},
  author = {Till Fluschnik and Leon Kellerhals and Malte Renken},
  journal= {arXiv preprint arXiv:2402.12905},
  year   = {2024}
}

Comments

Accepted at AAAI 2024

R2 v1 2026-06-28T14:54:20.495Z