cs.CC — Computational Complexity
Exact and Modular Counting Dichotomies for Group-Labeled Perfect Matchings
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.