Tight complexity bounds for diagram commutativity verification
Abstract
A diagram D = (G, l) over a monoid M is an oriented graph G = (V, E) endowed with a labeling l E M. A diagram is commutative if and only if for any two oriented paths with the same endpoints, the products in M of their edge labels coincide. We propose the first asymptotically optimal algorithm for diagram commutativity verification applicable to all graph families. For graphs with V E V2, which covers most practically relevant cases, our algorithm runs in O(|V|\,|E|) · (Tequal + Tmulti) time; here Tequal and Tmulti denote the times to perform an equality check and a multiplication in M, respectively. We also establish new lower bounds on the numbers of equality checks and multiplications necessary for commutativity verification, which asymptotically match our algorithm's cost and thus prove its tightness.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.