Faster and Simpler Online Computation of String Net Frequency
October 09, 2024 Β· Declared Dead Β· π Information Processing Letters
"No code URL or promise found in abstract"
Evidence collected by the PWNC Scanner
Authors
Shunsuke Inenaga
arXiv ID
2410.06837
Category
cs.DS: Data Structures & Algorithms
Citations
3
Venue
Information Processing Letters
Last Checked
4 months ago
Abstract
An occurrence of a repeated substring $u$ in a string $S$ is called a net occurrence if extending the occurrence to the left or to the right decreases the number of occurrences to 1. The net frequency (NF) of a repeated substring $u$ in a string $S$ is the number of net occurrences of $u$ in $S$. Very recently, Guo et al. [SPIRE 2024] proposed an online $O(n \log Ο)$-time algorithm that maintains a data structure of $O(n)$ space which answers Single-NF queries in $O(m\log Ο+ Ο^2)$ time and reports all answers of the All-NF problem in $O(nΟ^2)$ time. Here, $n$ is the length of the input string $S$, $m$ is the query pattern length, and $Ο$ is the alphabet size. The $Ο^2$ term is a major drawback of their method since computing string net frequencies is originally motivated for Chinese language processing where $Ο$ can be thousands large. This paper presents an improved online $O(n \log Ο)$-time algorithm, which answers Single-NF queries in $O(m \log Ο)$ time and reports all answers to the All-NF problem in output-optimal $O(|\mathsf{NF}^+(S)|)$ time, where $\mathsf{NF}^+(S)$ is the set of substrings of $S$ paired with their positive NF values. We note that $|\mathsf{NF}^+(S)| = O(n)$ always holds. In contract to Guo et al.'s algorithm that is based on Ukkonen's suffix tree construction, our algorithm is based on Weiner's suffix tree construction.
Community Contributions
Found the code? Know the venue? Think something is wrong? Let us know!
π Similar Papers
In the same crypt β Data Structures & Algorithms
π
π
The Cartographer
R.I.P.
π»
Ghosted
Route Planning in Transportation Networks
R.I.P.
π»
Ghosted
Near-linear time approximation algorithms for optimal transport via Sinkhorn iteration
R.I.P.
π»
Ghosted
Hierarchical Clustering: Objective Functions and Algorithms
R.I.P.
π»
Ghosted
Graph Isomorphism in Quasipolynomial Time
π
π
The Cartographer
Simulation optimization: A review of algorithms and applications
Died the same way β π» Ghosted
R.I.P.
π»
Ghosted
Federated Learning: Strategies for Improving Communication Efficiency
R.I.P.
π»
Ghosted
In-Datacenter Performance Analysis of a Tensor Processing Unit
R.I.P.
π»
Ghosted
Deep Convolutional Neural Networks for Computer-Aided Detection: CNN Architectures, Dataset Characteristics and Transfer Learning
R.I.P.
π»
Ghosted