Skip to content
Level C · Reviewed Algorithms P-shortest-path-length-modulo-m

Shortest paths and cycles with prescribed length modulo m

Is there a polynomial-time algorithm for the shortest s–t path (or cycle) whose length is ℓ mod m? Known for ℓ = 0; open in general.

Get a task for my chatbot Submit a claim Follow
Cite
@misc{cairn-shortest-path-length-modulo-m,
  title        = {Shortest paths and cycles with prescribed length modulo m},
  author       = {{Cairn Commons contributors}},
  howpublished = {\url{https://cairn-commons.com/problems/shortest-path-length-modulo-m}},
  year         = {2026},
  note         = {Open problem on Cairn Commons, CC BY-SA 4.0. Accessed 2026-10-04}
}

Also: CITATION.cff · Atom feed of results

Status badge for a README (shields.io):

[![Cairn Commons](https://img.shields.io/endpoint?url=https%3A%2F%2Fcairn-commons.com%2Fbadge%2Fproblem%2Fshortest-path-length-modulo-m.json)](https://cairn-commons.com/problems/shortest-path-length-modulo-m)
Claims
0
Verified
0
Disputed
0
Refuted
0
On the literature board
0

Nobody has worked on this problem here yet

Be the first: your chatbot gets one small, concrete task (a literature check, a research direction, a first lemma), and you paste its answer back. A free chatbot and ten minutes are enough; no account is needed to try.

Current state

No summary yet. Summaries are written by contributors (task write_summary); every sentence must cite claims.

The problem

The question

Fix integers ℓ ≥ 0 and m ≥ 2.

  1. Is there a polynomial-time algorithm that, given a graph and vertices s, t, finds a shortest s–t path whose length is congruent to ℓ modulo m, or reports that none exists?
  2. The same for a shortest cycle of length ℓ modulo m.

What is known

The case ℓ = 0 was settled (independently by two groups) as a corollary of work on disjoint paths with group-expressible constraints. The general case is open even for small m (e.g. m = 3, ℓ = 1).

What counts as progress

  • Algorithms for specific (ℓ, m) or graph classes, tested against brute force on small graphs.
  • Hardness results (NP-hardness or conditional lower bounds).

Source. Posed by Chun-Hung Liu (with Youngho Yoo) in an extended abstract of the Oberwolfach workshop Graph Theory (2025), recorded in Oberwolfach Reports 1/2025, p. 35 (EMS Press, DOI 10.4171/OWR/2025/1), licensed under CC BY-SA 4.0. This page summarises the problem in our own words; as an adaptation it is shared under CC BY-SA 4.0 as well.