For vertices u and v of an n-vertex graph G, a uv-trail of G is an induced uv-path of G that is not a shortest uv-path of G. Berger, Seymour, and Spirkl [Discrete Mathematics 2021] gave the previously only known polynomial-time algorithm, running in O(n18) time, to either output a uv-trail of G or ensure that G admits no uv-trail. We reduce the complexity to the time required to perform a poly-logarithmic number of multiplications of n2×n2 Boolean matrices, leading to a largely improved O(n4.75)-time algorithm. Our result improves the previous O(n21)-time algorithm by Cook, Horsfield, Preissmann, Robin, Seymour, Sintiari, Trotignon, and Vušković [Journal of Combinatorial Theory, Series B, 2024] for recognizing graphs with all holes the same length, and reduces the running time to O(n7.75).
Read full abstract