Efficiently Testing Simon's Congruence
Formal Languages and Automata Theory
2021-03-16 v2 Data Structures and Algorithms
Abstract
Simon's congruence is defined as follows: two words are -equivalent if they have the same set of subsequences of length at most . We propose an algorithm which computes, given two words and , the largest for which . Our algorithm runs in linear time when the input words are over the integer alphabet (or other alphabets which can be sorted in linear time). This approach leads to an optimal algorithm in the case of general alphabets as well. Our results are based on a novel combinatorial approach and a series of efficient data structures.
Cite
@article{arxiv.2005.01112,
title = {Efficiently Testing Simon's Congruence},
author = {Pawel Gawrychowski and Maria Kosche and Tore Koss and Florin Manea and Stefan Siemer},
journal= {arXiv preprint arXiv:2005.01112},
year = {2021}
}