Locally Rainbow Paths


  • Till Fluschnik TU Clausthal
  • Leon Kellerhals TU Berlin
  • Malte Renken TU Berlin




CSO: Other Foundations of Constraint Satisfaction, SO: Other Foundations of Search & Optimization


We introduce the algorithmic problem of finding a locally rainbow path of length l 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 leaset 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.




How to Cite

Fluschnik, T., Kellerhals, L., & Renken, M. (2024). Locally Rainbow Paths. Proceedings of the AAAI Conference on Artificial Intelligence, 38(8), 8013-8021. https://doi.org/10.1609/aaai.v38i8.28639



AAAI Technical Track on Constraint Satisfaction and Optimization