All-Pairs Suffix-Prefix on Fully Dynamic Set of Strings
Abstract
The all-pairs suffix-prefix (APSP) problem is a classical problem in string processing which has important applications in bioinformatics. Given a set of strings, the APSP problem asks one to compute the longest suffix of that is a prefix of for all ordered pairs of strings in . In this paper, we consider the dynamic version of the APSP problem that allows for insertions of new strings to the set of strings. Our objective is, each time a new string arrives to the current set of strings, to compute (1) the longest suffix of that is a prefix of and (2) the longest prefix of that is a suffix of for all . We propose an -space data structure which computes (1) and (2) in time for each new given string , where is the total length of the strings. Further, we show how to extend our methods to the fully dynamic version of the APSP problem allowing for both insertions and deletions of strings.
Keywords
Cite
@article{arxiv.2407.17814,
title = {All-Pairs Suffix-Prefix on Fully Dynamic Set of Strings},
author = {Masaru Kikuchi and Shunsuke Inenaga},
journal= {arXiv preprint arXiv:2407.17814},
year = {2025}
}
Comments
Preliminary version appeared in SPIRE 2024