On the Reachability Problem on Monoid-Labelled Undirected Graphs
Abstract
The labelled reachability problem for undirected graphs with edges labelled by elements of a monoid M (more generally, groupoids or magmas) captures the classes L and NL. Given a graph G(V, E) labelled by ϕ~ E M, s,t ∈ V and an accepting subset F ⊂eq M, the problem asks to test whether there is a walk P from s to t in G where ϕ(P) ∈ F. Ramaswamy et al. (2019) studied the variant where the accepting element is part of the input for aperiodic monoids and groups. Motivated by the success in designing space-bounded algorithms for the undirected graph reachability problem, we study the labelled reachability problem when the accepting set is also fixed. This reveals finer complexity bounds and dichotomies for the problem based on the monoid and the accepting set. Previous results imply that the problem is in L for any finite accepting subset when M is a group or belongs to DA. We prove the following (for finite monoids): 1) For any monoid M, the problem is in L when the accepting element is the identity of M. If the accepting element is an idempotent, under suitable constraints, the problem is NL-hard. 2) For any commutative monoid M, the problem is in L for all F ⊂eq M. 3) For any L(R)-commutative union-of-groups (UoG) monoid M, the problem is in L for all F⊂eq M. We show deterministic logspace algorithms for UoG monoids that are neither L-commutative nor R-commutative, under certain constraints. 4) For the monoids BA2 and U, we show a dichotomy: for all F ⊂eq M, the problem is either NL-complete or in L. Our results exploit the connection between Green's relations in the UoG monoids and the properties of the product graph (a graph introduced by Ramaswamy et al. (2019)).
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.