A simple algorithm for checking equivalence of counting functions on free monoids
arXiv:2407.10569
Abstract
In this note we propose a new algorithm for checking whether two counting functions on a free monoid of rank are equivalent modulo a bounded function. The previously known algorithm has time complexity for all ranks , but for it was estimated only to be . We apply a new approach based on the explicit basis expansion and summation of weighted rectangles, which allows us to construct a much simpler algorithm with time complexity for any . We work in the multi-tape Turing machine model with non-constant-time arithmetic operations.
16 pages