Minimal Absent Words on Run-Length Encoded Strings
Abstract
A string is called a minimal absent word (MAW) for another string if does not occur (as a substring) in and any proper substring of occurs in . State-of-the-art data structures for reporting the set of MAWs from a given string of length require space, can be built in time, and can report all MAWs in time upon a query. This paper initiates the problem of computing MAWs from a compressed representation of a string. In particular, we focus on the most basic compressed representation of a string, run-length encoding (RLE), which represents each maximal run of the same characters by where is the length of the run. Let be the RLE-size of string . After categorizing the MAWs into five disjoint sets , , , , using RLE, we present matching upper and lower bounds for the number of MAWs in for in terms of RLE-size , except for whose size is unbounded by . We then present a compact -space data structure that can report all MAWs in optimal time.
Keywords
Cite
@article{arxiv.2202.13591,
title = {Minimal Absent Words on Run-Length Encoded Strings},
author = {Tooru Akagi and Kouta Okabe and Takuya Mieno and Yuto Nakashima and Shunsuke Inenaga},
journal= {arXiv preprint arXiv:2202.13591},
year = {2022}
}
Comments
Accepted for CPM 2022