Testing k-binomial equivalence
Authors:
- Dominik D. FreydenbergerDFDominik D. Freydenberger
- Pawel GawrychowskiPGPawel Gawrychowski
- Juhani KarhumäkiJKJuhani Karhumäki
- Florin ManeaFMFlorin Manea
- Wojciech RytterWRWojciech Rytter
Preprint
Abstract
Two words $w_1$ and $w_2$ are said to be $k$-binomial equivalent if every non-empty word $x$ of length at most $k$ over the alphabet of $w_1$ and $w_2$ appears as a scattered factor of $w_1$ exactly as many times as it appears as a scattered factor of $w_2$. We give two different polynomial-time algorithms testing the $k$-binomial equivalence of two words. The first one is deterministic (but the degree of the corresponding polynomial is too high) and the second one is randomised (it is more direct and more efficient). These are the first known algorithms for the problem which run in polynomial time.
Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Another generalization of abelian equivalence: Binomial complexity of infinite wordsTheoretical Computer Science, 2015
- k-Abelian pattern matchingJournal of Discrete Algorithms, 2015
- Avoiding 2-binomial squares and cubesTheoretical Computer Science, 2015
- On a generalization of Abelian equivalence and complexity of infinite wordsJournal of Combinatorial Theory, Series A, 2013
- Modern Computer Algebra2013
- Local Squares, Periodicity and Finite AutomataLecture Notes in Computer Science, 2011
- Elements of Automata Theory2009
- Review of applied combinatorics on wordsACM SIGACT News, 2008
- A Polynomial-Time Algorithm for the Equivalence of Probabilistic AutomataSIAM Journal on Computing, 1992
- Probabilistic algorithm for testing primalityJournal of Number Theory, 1980