The complexity of computing the period and the exponent of a digraph

Stefan Kiefer,Andrew Ryzhikov
2024-08-11
Abstract:The period of a strongly connected digraph is the greatest common divisor of the lengths of all its cycles. The period of a digraph is the least common multiple of the periods of its strongly connected components that contain at least one cycle. These notions play an important role in the theory of Markov chains and the analysis of powers of nonnegative matrices. While the time complexity of computing the period is well-understood, little is known about its space complexity. We show that the problem of computing the period of a digraph is NL-complete, even if all its cycles are contained in the same strongly connected component. However, if the digraph is strongly connected, we show that this problem becomes L-complete. For primitive digraphs (that is, strongly connected digraphs of period one), there always exists a number $m$ such that there is a path of length exactly $m$ between every two vertices. We show that computing the smallest such $m$, called the exponent of a digraph, is NL-complete. The exponent of a primitive digraph is a particular case of the index of convergence of a nonnegative matrix, which we also show to be computable in NL, and thus NL-complete.
Discrete Mathematics,Combinatorics
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the complexity problem of calculating the period and exponent of a directed graph (digraph), especially the space complexity under different connectivity conditions. ### Main Problem Description 1. **Computational Complexity of the Period**: - The period refers to the greatest common divisor of all cycle lengths in a strongly - connected directed graph. For a general directed graph, the period is the least common multiple of the periods of its strongly - connected components. - The paper studies the space complexity of calculating the period and proves that under certain conditions, calculating the period is an NL - complete problem, and under other conditions it is an L - complete problem. 2. **Computational Complexity of the Exponent**: - The exponent refers to the minimum m value such that there is a path of length m between any two vertices in the original directed graph. The exponent is a special convergent exponent problem. - The paper proves that calculating the exponent is also an NL - complete problem. ### Specific Contributions - **Computational Complexity of the Period**: - For an almost strongly - connected directed graph (that is, there is only one non - trivial strongly - connected component), calculating the period is an NL - complete problem. - For a strongly - connected directed graph, calculating the period is an L - complete problem. - **Computational Complexity of the Exponent**: - Calculating the exponent of the original directed graph (that is, the convergent exponent) is an NL - complete problem. ### Methods and Results - **Calculation of the Period**: - Use the power sequence of the Boolean matrix to define the period and judge the period through the reachability property of the graph. - Calculate the periods of strongly - connected graphs and general graphs by L - algorithm and NL - algorithm respectively. - **Calculation of the Exponent**: - Prove the NL - completeness of exponent calculation by constructing a new directed graph and analyzing its path lengths. ### Summary The main objective of the paper is to deeply explore the complexity problems of calculating the period and exponent of a directed graph, especially the space complexity, and provide specific algorithms and complexity classifications. These results are helpful for understanding the basic computational problems in graph theory and matrix theory, especially the applications in Markov chains and combinatorial matrix theory.