English

A simple algorithm for checking equivalence of counting functions on free monoids

Discrete Mathematics 2026-02-24 v3 Combinatorics Group Theory

Abstract

In this note we propose a new algorithm for checking whether two counting functions on a free monoid MrM_r of rank rr are equivalent modulo a bounded function. The previously known algorithm has time complexity O(n)O(n) for all ranks r>2r>2, but for r=2r=2 it was estimated only to be O(n2)O(n^2). 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 O(n)O(n) for any r2r\geq 2. We work in the multi-tape Turing machine model with non-constant-time arithmetic operations.

Keywords

Cite

@article{arxiv.2407.10569,
  title  = {A simple algorithm for checking equivalence of counting functions on free monoids},
  author = {Petr Kiyashko and Alexey Talambutsa},
  journal= {arXiv preprint arXiv:2407.10569},
  year   = {2026}
}

Comments

16 pages

R2 v1 2026-06-28T17:40:55.949Z