Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings
Version 1 / Nov 30, 2026 / CC BY-SA 4.0
Abstract
We introduce and classify the counting complexity of edge-ordered group-labeled perfect matchings. Fix a finite group and an integer modulus . Given a simple graph with edge labels , a target , and a global edge ordering , let count the perfect matchings of whose ordered product equals . The order is arbitrary and may interleave edges across distinct components. While Kasteleyn's Pfaffian method solves this problem in polynomial time for abelian groups on planar graphs, the non-abelian case has not been classified. We establish two complete complexity classifications across every finite group and every modulus . First, on planar, bounded-treewidth (, ), and -genus graphs (given a cellular embedding), modular counting obeys a complete trichotomy: (I) for abelian , exact and modular counting lie in deterministic (planar and bounded treewidth) and (genus ); (II) for non-abelian (having a normal Sylow -subgroup with abelian quotient), counting modulo lies in deterministic (planar and bounded treewidth) and (genus ) via Galois rings and division-free Pfaffians, whereas any divisible by a prime is -hard even on simple planar bipartite treewidth- graphs; and (III) for every , there is no tractable modulus: counting modulo every is -hard for every prime , already on simple planar bipartite treewidth- graphs, via Frobenius's (1907) normal -complement theorem. Second, on -regular outerplanar bipartite graphs (to which maximum degree reduces), exact integer counting lies in if is abelian or a nilpotency-class- -group of exponent at most , and is -hard for every other finite group; at maximum degree , every non-abelian group becomes -hard via disjoint copies of a -vertex chorded cycle.
Provenance statement
References
- E. Aichinger and S. Grünbacher, On the complexity of solving equations over , preprint (2025), https://arxiv.org/abs/2503.07285link
- V. Arvind and S. Srinivasan, On the hardness of the noncommutative determinant , in 42nd Annual ACM Symposium on Theory of Computing (STOC 2010), ACM, 2010, pp. 677--686.
- D. A. Barrington, Bounded-width polynomial-size branching programs recognize exactly those languages in , J. Comput. System Sci. 38 (1989), no. 1, 150--164.
- M. Bläser, Noncommutativity makes determinants hard , Inform. and Comput. 243 (2015), 133--144 (preliminary version in ICALP 2013, pp. 172--183).
- H. L. Bodlaender and T. Hagerup, Parallel algorithms with optimal speedup for bounded treewidth , SIAM J. Comput. 27 (1998), no. 6, 1725--1746.
- J.-Y. Cai and X. Chen, Complexity of counting CSP with complex weights , J. ACM 64 (2017), no. 3, Art. 19, 19:1--19:39.
- J.-Y. Cai, X. Chen, R. J. Lipton, and P. Lu, On tractable exponential sums , in 4th International Workshop on Frontiers in Algorithmics (FAW 2010), LNCS 6213 , Springer, 2010, pp. 148--159.
- J.-Y. Cai, P. Lu, and M. Xia, Computational complexity of Holant problems , SIAM J. Comput. 40 (2011), no. 4, 1101--1132.
- S. Chien, P. Harsha, A. Sinclair, and S. Srinivasan, Almost settling the hardness of noncommutative determinant , in 43rd Annual ACM Symposium on Theory of Computing (STOC 2011), ACM, 2011, pp. 499--508.
- A. Chiu, G. Davida, and B. Litow, Division in logspace-uniform , RAIRO Theor. Inform. Appl. 35 (2001), no. 3, 259--275.
Show all 38 referencesShow fewer references
- N. Creignou and M. Hermann, Complexity of generalized satisfiability counting problems , Inform. and Comput. 125 (1996), no. 1, 1--12.
- R. Curticapean, H. Dell, and T. Husfeldt, Modular counting of subgraphs: Matchings, matching-splittable graphs, and paths , in 29th Annual European Symposium on Algorithms (ESA 2021), LIPIcs 204 , Schloss Dagstuhl, 2021, pp. 34:1--34:17.
- J. Dehaene and B. De Moor, The Clifford group, stabilizer states, and linear and quadratic operations over , Phys. Rev. A 68 (2003), 042318, 9 pp.
- L. E. Dickson, Linear Groups: With an Exposition of the Galois Field Theory , Teubner, Leipzig, 1901.
- A. Ehrenfeucht and M. Karpinski, The computational complexity of (XOR, AND)-counting problems , Technical Report 8543-CS, Universität Bonn, 1990.
- M. Elberfeld, A. Jakoby, and T. Tantau, Logspace versions of the theorems of Bodlaender and Courcelle , in 51st Annual IEEE Symposium on Foundations of Computer Science (FOCS 2010), IEEE, 2010, pp. 143--152.
- A. Földvári and G. Horváth, The complexity of the equation solvability and equivalence problems over finite groups , Internat. J. Algebra Comput. 30 (2020), no. 3, 607--623.
- F. G. Frobenius, Über einen Fundamentalsatz der Gruppentheorie, II , Sitzungsber. Preuss. Akad. Wiss. Berlin (1907), 428--437.
- A. Galluccio and M. Loebl, On the theory of Pfaffian orientations. I. Perfect matchings and permanents , Electron. J. Combin. 6 (1999), Research Paper R6, 18 pp.
- D. Goel, Exact Matching in Subexponential Time , Hexagon Math (2026), https://hexagonmath.org/2611.01193hexagon
- D. Goel, Expanded Version of ``Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings'' , Zenodo (2026), https://doi.org/10.5281/zenodo.24677022DOI
- M. Goldmann and A. Russell, The complexity of solving equations over finite groups , Inform. and Comput. 178 (2002), no. 1, 253--262.
- B. Huppert, Endliche Gruppen. I , Grundlehren der mathematischen Wissenschaften 134 , Springer, Berlin, 1967.
- T. Huynh, The -disjoint paths problem for group-labelled graphs , preprint (2026), https://arxiv.org/abs/2611.34307link
- P. M. Idziak, P. Kawał ek, J. Krzaczkowski, and A. Weiß, Equation satisfiability in solvable groups , Theory Comput. Syst. 68 (2024), no. 4, 740--757.
- F. Jaeger, D. L. Vertigan, and D. J. A. Welsh, On the computational complexity of the Jones and Tutte polynomials , Math. Proc. Cambridge Philos. Soc. 108 (1990), no. 1, 35--53.
- M. Jerrum and A. Sinclair, Polynomial-time approximation algorithms for the Ising model , SIAM J. Comput. 22 (1993), no. 5, 1087--1116.
- P. W. Kasteleyn, Graph theory and crystal physics , in Graph Theory and Theoretical Physics , Academic Press, London, 1967, pp. 43--110.
- M. Mahajan, P. R. Subramanya, and V. Vinay, The combinatorial approach yields an NC algorithm for computing Pfaffians , Discrete Appl. Math. 143 (2004), no. 1--3, 1--16.
- G. Nordh and P. Jonsson, The complexity of counting solutions to systems of equations over finite semigroups , in 10th Annual International Computing and Combinatorics Conference (COCOON 2004), LNCS 3106 , Springer, 2004, pp. 370--379.
- D. J. S. Robinson, A Course in the Theory of Groups , 2nd ed., Graduate Texts in Mathematics 80 , Springer, New York, 1996.
- T. J. Schaefer, The complexity of satisfiability problems , in 10th Annual ACM Symposium on Theory of Computing (STOC 1978), ACM, 1978, pp. 216--226.
- O. Yu. Schmidt, Groups all of whose subgroups are special , Mat. Sb. 31 (1924), 366--372.
- J. G. Thompson, Nonsolvable finite groups all of whose local subgroups are solvable , Bull. Amer. Math. Soc. 74 (1968), no. 3, 383--437.
- L. G. Valiant, The complexity of computing the permanent , Theor. Comput. Sci. 8 (1979), no. 2, 189--201.
- L. G. Valiant, The complexity of enumeration and reliability problems , SIAM J. Comput. 8 (1979), no. 3, 410--421.
- L. G. Valiant, Accidental algorithms , in 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), IEEE, 2006, pp. 509--517.
- V. V. Vazirani, NC algorithms for computing the number of perfect matchings in -free graphs and related problems , Inform. and Comput. 80 (1989), no. 2, 152--164.
Version history
- v1 · 22 pagesSubmitted by Dave GoelFirst version: November 29, 2026. An expanded version, with further results on all-field planar mimicking rank laws, bounded-apex and clique-sum algorithmic lifts, and bounded-treewidth derandomization, is posted on Hexagon (https://hexagonmath.org/2611.01449) and Zenodo (https://doi.org/10.5281/zenodo.24677022).CurrentNov 30, 2026