Space-Efficient Online Computation of String Net Occurrences
Abstract
A substring of a string is said to be a repeat if occurs at least twice in . An occurrence of a repeat in is said to be a net occurrence if each of the substrings , , and occurs exactly once in . The occurrence of is said to be an extended net occurrence of . Let be an input string of length over an alphabet of size , and let denote the set of extended net occurrences of repeats in . Guo et al. [SPIRE 2024] presented an online algorithm which can report in in time, for each prefix of . Very recently, Inenaga [arXiv 2024] gave a faster online algorithm that can report in optimal time for each prefix of , where denotes the cardinality of a set . Both of the aforementioned data structures can be maintained in time and occupy space, where the -space requirement comes from the suffix tree data structure. In this paper, we propose the two following space-efficient alternatives: (1) A sliding-window algorithm of working space that can report in optimal time for each sliding window of size in . (2) A CDAWG-based online algorithm of working space that can report in optimal time for each prefix of , where is the number of edges in the CDAWG for . All of our proposed data structures can be maintained in time for the input online string . We also discuss that the extended net occurrences of repeats in can be fully characterized in terms of the minimal unique substrings (MUSs) in .
Keywords
Cite
@article{arxiv.2411.12160,
title = {Space-Efficient Online Computation of String Net Occurrences},
author = {Takuya Mieno and Shunsuke Inenaga},
journal= {arXiv preprint arXiv:2411.12160},
year = {2024}
}