Online algorithms for finding distinct substrings with length and multiple prefix and suffix conditions
Abstract
Let two static sequences of strings and , representing prefix and suffix conditions respectively, be given as input for preprocessing. For the query, let two positive integers and be given, as well as a string given in an online manner, such that represents the length- prefix of for . In this paper we are interested in computing the set of distinct substrings of such that , and contains some as a prefix and some as a suffix. More specifically, the counting problem is to output , whereas the reporting problem is to output all elements of , for each iteration . Let denote the alphabet size, and for a sequence of strings , . Then, we show that after -time preprocessing, the solutions for the counting and reporting problems for each iteration up to can be output in and total time. The preprocessing time can be reduced to for integer alphabets of size polynomial with regard to . Our algorithms have possible applications to network traffic classification.
Cite
@article{arxiv.2207.04194,
title = {Online algorithms for finding distinct substrings with length and multiple prefix and suffix conditions},
author = {Laurentius Leonard and Shunsuke Inenaga and Hideo Bannai and Takuya Mieno},
journal= {arXiv preprint arXiv:2207.04194},
year = {2022}
}
Comments
14 pages (including references and appendix), 3 figures, 1 table