Minimizers in Semi-Dynamic Strings
Abstract
Minimizers sampling is one of the most widely-used mechanisms for sampling strings. Let be a string over an alphabet . In addition, let and be two integers and be a total order on . The minimizer of window is the smallest position in where the smallest length- substring of based on starts. The set of minimizers for all is the set of the minimizers of . The set can be computed in time. The folklore algorithm for this computation computes the minimizer of every window in amortized time using working space. It is thus natural to pose the following two questions: Question 1: Can we efficiently support other dynamic updates on the window? Question 2: Can we improve on the working space? We answer both questions in the affirmative: 1. We term a string semi-dynamic when one is allowed to insert or delete a letter at any of its ends. We show a data structure that maintains a semi-dynamic string and supports minimizer queries in in time with amortized time per update operation. 2. We show that this data structure can be modified to occupy strongly sublinear space without increasing the asymptotic complexity of its operations. To the best of our knowledge, this yields the first algorithm for computing in time using working space. We complement our theoretical results with a concrete application and an experimental evaluation.
Keywords
Cite
@article{arxiv.2502.17199,
title = {Minimizers in Semi-Dynamic Strings},
author = {Wiktor Zuba and Oded Lachish and Solon P. Pissis},
journal= {arXiv preprint arXiv:2502.17199},
year = {2025}
}
Comments
16 pages