中文
相关论文

相关论文: Fast Longest Common Extensions in Small Space

200 篇论文

Let two static sequences of strings $P$ and $S$, representing prefix and suffix conditions respectively, be given as input for preprocessing. For the query, let two positive integers $k_1$ and $k_2$ be given, as well as a string $T$ given…

数据结构与算法 · 计算机科学 2022-11-01 Laurentius Leonard , Shunsuke Inenaga , Hideo Bannai , Takuya Mieno

We introduce a data structure for counting pattern occurrences in texts compressed with any run-length context-free grammar. Our structure uses space proportional to the grammar size and counts the occurrences of a pattern of length $m$ in…

数据结构与算法 · 计算机科学 2025-01-30 Gonzalo Navarro , Alejandro Pacheco

Packing several characters into one computer word is a simple and natural way to compress the representation of a string and to speed up its processing. Exploiting this idea, we propose an index for a packed string, based on a {\em sparse…

数据结构与算法 · 计算机科学 2015-03-19 Roman Kolpakov , Gregory Kucherov , Tatiana Starikovskaya

We revisit the classic border tree data structure [Gu, Farach, Beigel, SODA 1994] that answers the following prefix-suffix queries on a string $T$ of length $n$ over an integer alphabet $\Sigma=[0,\sigma)$: for any $i,j \in [0,n)$ return…

数据结构与算法 · 计算机科学 2024-11-07 Solon P. Pissis

The longest common substring problem consists in finding a longest string that appears as a (contiguous) substring of two input strings. We consider the dynamic variant of this problem, in which we are to maintain two dynamic strings $S$…

数据结构与算法 · 计算机科学 2026-04-09 Panagiotis Charalampopoulos , Paweł Gawrychowski , Karol Pokorski

The constrained LCS problem asks one to find a longest common subsequence of two input strings $A$ and $B$ with some constraints. The STR-IC-LCS problem is a variant of the constrained LCS problem, where the solution must include a given…

数据结构与算法 · 计算机科学 2017-03-16 Keita Kuboi , Yuta Fujishige , Shunsuke Inenaga , Hideo Bannai , Masayuki Takeda

We introduce the first index that can be built in $o(n)$ time for a text of length $n$, and can also be queried in $o(q)$ time for a pattern of length $q$. On an alphabet of size $\sigma$, our index uses $O(n\sqrt{\log n\log\sigma})$ bits,…

数据结构与算法 · 计算机科学 2019-07-16 J. Ian Munro , Gonzalo Navarro , Yakov Nekrich

Longest common subsequence (LCS) is one of the most fundamental problems in combinatorial optimization. Apart from theoretical importance, LCS has enormous applications in bioinformatics, revision control systems, and data comparison…

数据结构与算法 · 计算机科学 2020-03-17 MohammadTaghi Hajiaghayi , Masoud Seddighin , Saeed Seddighin , Xiaorui Sun

Efficient optimal prefix coding has long been accomplished via the Huffman algorithm. However, there is still room for improvement and exploration regarding variants of the Huffman problem. Length-limited Huffman coding, useful for many…

信息论 · 计算机科学 2007-07-13 Michael B. Baer

We generalize Karp-Rabin string matching to handle multiple patterns in $\mathcal{O}(n \log n + m)$ time and $\mathcal{O}(s)$ space, where $n$ is the length of the text and $m$ is the total length of the $s$ patterns, returning correct…

数据结构与算法 · 计算机科学 2015-09-11 Johannes Fischer , Travis Gagie , Paweł Gawrychowski , Tomasz Kociumaka

The suffix array is a fundamental data structure for many applications that involve string searching and data compression. Designing time/space-efficient suffix array construction algorithms has attracted significant attention and…

数据结构与算法 · 计算机科学 2018-11-12 Zhize Li , Jian Li , Hongwei Huo

Real-world data often comes in compressed form. Analyzing compressed data directly (without decompressing it) can save space and time by orders of magnitude. In this work, we focus on fundamental sequence comparison problems and try to…

数据结构与算法 · 计算机科学 2021-12-14 Arun Ganesh , Tomasz Kociumaka , Andrea Lincoln , Barna Saha

The Longest Common Increasing Subsequence (LCIS) is a variant of the classical Longest Common Subsequence (LCS), in which we additionally require the common subsequence to be strictly increasing. While the well-known "Four Russians"…

数据结构与算法 · 计算机科学 2020-03-31 Anadi Agrawal , Paweł Gawrychowski

We propose efficient algorithms for enumerating maximal common subsequences (MCSs) of two strings. Efficiency of the algorithms are estimated by the preprocessing-time, space, and delay-time complexities. One algorithm prepares a…

数据结构与算法 · 计算机科学 2023-07-21 Miyuji Hirota , Yoshifumi Sakai

Let $\Sigma$ be an alphabet. For two strings $X$, $Y$, and a constrained string $P$ over the alphabet $\Sigma$, the constrained longest common subsequence and substring problem for two strings $X$ and $Y$ with respect to $P$ is to find a…

数据结构与算法 · 计算机科学 2023-08-04 R. Li , J. Deka , K. Deka , D. Li

Palindromes are strings that read the same forward and backward. Problems of computing palindromic structures in strings have been studied for many years with a motivation of their application to biology. The longest palindrome problem is…

数据结构与算法 · 计算机科学 2023-06-21 Kazuki Mitani , Takuya Mieno , Kazuhisa Seto , Takashi Horiyama

The well-known dictionary-based algorithms of the Lempel-Ziv (LZ) 77 family are the basis of several universal lossless compression techniques. These algorithms are asymmetric regarding encoding/decoding time and memory requirements, with…

数据结构与算法 · 计算机科学 2009-12-31 Artur Ferreira , Arlindo Oliveira , Mario Figueiredo

Indexing of very large collections of strings such as those produced by the widespread sequencing technologies, heavily relies on multi-string generalizations of the Burrows-Wheeler Transform (BWT), and for this problem various in-memory…

数据结构与算法 · 计算机科学 2016-07-29 Paola Bonizzoni , Gianluca Della Vedova , Serena Nicosia , Marco Previtali , Raffaella Rizzi

We consider the problem of indexing a string $t$ of length $n$ to report the occurrences of a query pattern $p$ containing $m$ characters and $j$ wildcards. Let $occ$ be the number of occurrences of $p$ in $t$, and $\sigma$ the size of the…

数据结构与算法 · 计算机科学 2012-09-07 Philip Bille , Inge Li Goertz , Hjalte Wedel Vildhøj , Søren Vind

It is widely assumed that $O(m+\lg \sigma)$ is the best one can do for finding a pattern of length $m$ in a compacted trie storing strings over an alphabet of size $\sigma$, if one insists on linear-size data structures and deterministic…

数据结构与算法 · 计算机科学 2013-02-15 Johannes Fischer , Pawel Gawrychowski