Modular counting of subgraphs: Matchings, matching-splittable graphs, and paths
arXiv:2107.00629
Abstract
We systematically investigate the complexity of counting subgraph patterns modulo fixed integers. For example, it is known that the parity of the number of -matchings can be determined in polynomial time by a simple reduction to the determinant. We generalize this to an -time algorithm to compute modulo the number of subgraph occurrences of patterns that are vertices away from being matchings. This shows that the known polynomial-time cases of subgraph detection (Jansen and Marx, SODA 2015) carry over into the setting of counting modulo . Complementing our algorithm, we also give a simple and self-contained proof that counting -matchings modulo odd integers is Mod_q-W[1]-complete and prove that counting -paths modulo is Parity-W[1]-complete, answering an open question by Björklund, Dell, and Husfeldt (ICALP 2015).
23 pages, to appear at ESA 2021