Skip to main navigation Skip to search Skip to main content

Size-Constrained Weighted Ancestors with Applications

  • Michigan Technological University
  • Vrije Universiteit Amsterdam

Research output: Chapter in Book/Report/Conference proceeding › Article in proceedings › Research › peer-review

33 Downloads (Orbit)

Abstract

The weighted ancestor problem on a rooted node-weighted tree T is a generalization of the classic predecessor problem: construct a data structure for a set of integers that supports fast predecessor queries. Both problems are known to require Ω(log log n) time for queries provided 𝒪(n poly log n) space is available, where n is the input size. The weighted ancestor problem has attracted a lot of attention by the combinatorial pattern matching community due to its direct application to suffix trees. In this formulation of the problem, the nodes are weighted by string depth. This research has culminated in a data structure for weighted ancestors in suffix trees with 𝒪(1) query time and an 𝒪(n)-time construction algorithm [Belazzougui et al., CPM 2021]. In this paper, we consider a different version of the weighted ancestor problem, where the nodes are weighted by any function weight that maps each node of T to a positive integer, such that weight(u) ≤ size(u) for any node u and weight(u₁) ≤ weight(u₂) if node u₁ is a descendant of node u₂, where size(u) is the number of nodes in the subtree rooted at u. In the size-constrained weighted ancestor (SWA) problem, for any node u of T and any integer k, we are asked to return the lowest ancestor w of u with weight at least k. We show that for any rooted tree with n nodes, we can locate node w in 𝒪(1) time after 𝒪(n)-time preprocessing. In particular, this implies a data structure for the SWA problem in suffix trees with 𝒪(1) query time and 𝒪(n)-time preprocessing, when the nodes are weighted by weight. We also show several string-processing applications of this result.
Original languageEnglish
Title of host publicationProceedings of the 19th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2024)
Volume294
PublisherSchloss Dagstuhl - Leibniz-Zentrum für Informatik
Publication date2024
Pages14:1-14:12
ISBN (Print)978-3-95977-318-8
DOIs
Publication statusPublished - 2024
Event19th Scandinavian Symposium and Workshops on Algorithm Theory - Helsinki, Finland
Duration: 12 Jun 2024 → 14 Jun 2024

Conference

Conference19th Scandinavian Symposium and Workshops on Algorithm Theory
Country/TerritoryFinland
CityHelsinki
Period12/06/2024 → 14/06/2024

Keywords

  • Weighted ancestors
  • String indexing
  • Data structures

Fingerprint

Dive into the research topics of 'Size-Constrained Weighted Ancestors with Applications'. Together they form a unique fingerprint.

Cite this