Skip to main navigation Skip to search Skip to main content

Minimizers in Semi-dynamic Strings

  • Wiktor Zuba*
  • , Oded Lachish
  • , Solon P. Pissis
  • *Corresponding author for this work

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

Abstract

Minimizers sampling is one of the most widely-used mechanisms for sampling strings. Let S=S[0]…S[n-1] be a string over an alphabet Σ. Further, let w≥2 and k≥1 be two integers and ρ=(Σk,≤) be a total order on Σk. The minimizer of window X=S[i..i+w+k-2] is the smallest position in [i,i+w-1] where the smallest length-k substring of X based on ρ starts. The set of minimizers for all i∈[0,n-w-k+1] is the set Mw,k,ρ(S) of the minimizers of S. The set Mw,k,ρ(S) can be computed in O(n) time. The folklore algorithm computes the minimizer of every window in O(1) amortized time using O(w) working space. It is thus natural to pose the following two questions: Can we efficiently support other dynamic updates on the window?Can we improve on theO(w)working space? Can we efficiently support other dynamic updates on the window? Can we improve on theO(w)working space? We answer both questions in the affirmative: We term a string Xsemi-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 X and supports minimizer queries in X in O(1) time with O(1) amortized time per update operation.We show that this data structure can be modified to occupy strongly sublinear space without increasing the time complexity of its operations. To the best of our knowledge, this yields the first algorithm for computing Mw,k,ρ(S) in O(n) time usingO(w)working space. We term a string Xsemi-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 X and supports minimizer queries in X in O(1) time with O(1) amortized time per update operation. We show that this data structure can be modified to occupy strongly sublinear space without increasing the time complexity of its operations. To the best of our knowledge, this yields the first algorithm for computing Mw,k,ρ(S) in O(n) time usingO(w)working space.

Original languageEnglish
Title of host publicationFundamentals of Computation Theory
Subtitle of host publication25th International Symposium, FCT 2025, Wrocław, Poland, September 15–17, 2025, Proceedings
EditorsArtur Jez, Jan Otop
PublisherSpringer Nature Switzerland AG
Pages434-447
Number of pages14
ISBN (Electronic)9783032047007
ISBN (Print)9783032046994
DOIs
Publication statusPublished - 2026
Event25th International Symposium on Fundamentals of Computation Theory, FCT 2025 - Wroclaw, Poland
Duration: 15 Sept 202517 Sept 2025

Publication series

NameLecture Notes in Computer Science
PublisherSpringer
Volume16106 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference25th International Symposium on Fundamentals of Computation Theory, FCT 2025
Country/TerritoryPoland
CityWroclaw
Period15/09/2517/09/25

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.

Keywords

  • Dynamic strings
  • Minimizers
  • Sampling
  • String algorithms

Fingerprint

Dive into the research topics of 'Minimizers in Semi-dynamic Strings'. Together they form a unique fingerprint.

Cite this