Counting Subwords and Regular Languages
Formal Languages and Automata Theory
2018-06-22 v2
Abstract
Let and be words. We consider the languages whose words are those for which the numbers of occurrences of and , as subwords of , are the same (resp., the number of 's is less than the number of 's, resp., is less than or equal). We give a necessary and sufficient condition on and for these languages to be regular, and we show how to check this condition efficiently.
Keywords
Cite
@article{arxiv.1804.11175,
title = {Counting Subwords and Regular Languages},
author = {Charles J. Colbourn and Ryan E. Dougherty and Thomas F. Lidbetter and Jeffrey Shallit},
journal= {arXiv preprint arXiv:1804.11175},
year = {2018}
}