English

A fast algorithm for Stallings foldings over virtually free groups

Group Theory 2025-06-18 v2

Abstract

We give a simple algorithm to solve the subgroup membership problem for virtually free groups. For a fixed virtually free group with a fixed generating set XX, the subgroup membership problem is uniformly solvable in time O(nlog(n))O(n\log^*(n)) where nn is the sum of the word lengths of the inputs with respect to XX. For practical purposes, this can be considered to be linear time. The algorithm itself is simple and concrete examples are given to show how it can be used for computations in SL(2,Z)\mathrm{SL}(2,\mathbb Z) and GL(2,Z)\mathrm{GL}(2,\mathbb Z). We also give an algorithm to decide whether a finitely generated subgroup is isomorphic to a free group.

Keywords

Cite

@article{arxiv.2309.00421,
  title  = {A fast algorithm for Stallings foldings over virtually free groups},
  author = {Sam Cookson and Nicholas Touikan},
  journal= {arXiv preprint arXiv:2309.00421},
  year   = {2025}
}

Comments

29 pages, 9 Figures. Revised after referee comments

R2 v1 2026-06-28T12:10:19.110Z