中文
相关论文

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

200 篇论文

The longest common subsequence (LCS) problem is a central problem in stringology that finds the longest common subsequence of given two strings $A$ and $B$. More recently, a set of four constrained LCS problems (called generalized…

数据结构与算法 · 计算机科学 2020-01-17 Kohei Yamada , Yuto Nakashima , Shunsuke Inenaga , Hideo Bannai , Masayuki Takeda

We prove that longest common prefix (LCP) information can be stored in much less space than previously known. More precisely, we show that in the presence of the text and the suffix array, o(n) additional bits are sufficient to answer…

数据结构与算法 · 计算机科学 2010-02-19 Johannes Fischer

We study the Longest Common Extension (LCE) problem in a string containing wildcards. Wildcards (also called "don't cares" or "holes") are special characters that match any other character in the alphabet, similar to the character "?" in…

数据结构与算法 · 计算机科学 2025-05-23 Gabriel Bathie , Itai Boneh , Panagiotis Charalampopoulos , Jonas Ellert , Tatiana Starikovskaya

Let $A$ and $B$ be two number sequences of length $n$ and $m$, respectively, where $m\le n$. Given a positive number $\delta$, a common almost increasing sequence $s_1\ldots s_k$ is a common subsequence for both $A$ and $B$ such that for…

数据结构与算法 · 计算机科学 2025-05-08 Md Tanzeem Rahat , Md. Manzurul Hasan , Debajyoti Mondal

This paper reformulates the problem of finding a longest common increasing subsequence of the two given input sequences in a very succinct way. An extremely simple linear space algorithm based on the new formula can find a longest common…

数据结构与算法 · 计算机科学 2016-08-26 Daxin Zhu , Lei Wang , Tinran Wang , Xiaodong Wang

We give a near-optimal quantum algorithm for the longest common substring (LCS) problem between two run-length encoded (RLE) strings, with the assumption that the prefix-sums of the run-lengths are given. Our algorithm costs…

量子物理 · 物理学 2024-11-06 Tzu-Ching Lee , Han-Hsuan Lin

The notions of synchronizing and partitioning sets are recently introduced variants of locally consistent parsings with great potential in problem-solving. In this paper we propose a deterministic algorithm that constructs for a given…

数据结构与算法 · 计算机科学 2024-04-23 Dmitry Kosolobov , Nikita Sivukhin

The Karp-Rabin fingerprint of a string is a type of hash value that due to its strong properties has been used in many string algorithms. In this paper we show how to construct a data structure for a string $S$ of size $N$ compressed by a…

数据结构与算法 · 计算机科学 2013-05-17 Philip Bille , Patrick Hagge Cording , Inge Li Gørtz , Benjamin Sach , Hjalte Wedel Vildhøj , Søren Vind

Given two random finite sequences from $[k]^n$ such that a prefix of the first sequence is a suffix of the second, we examine the length of their longest common subsequence. If $\ell$ is the length of the overlap, we prove that the expected…

概率论 · 数学 2018-03-12 Boris Bukh , Raymond Hogenson

We consider the communication complexity of fundamental longest common prefix (Lcp) problems. In the simplest version, two parties, Alice and Bob, each hold a string, $A$ and $B$, and we want to determine the length of their longest common…

数据结构与算法 · 计算机科学 2018-06-11 Philip Bille , Mikko Berggreen Ettienne , Roberto Grossi , Inge Li Gørtz , Eva Rotenberg

When augmented with the longest common prefix (LCP) array and some other structures, the suffix array can solve many string processing problems in optimal time and space. A compressed representation of the LCP array is also one of the main…

数据结构与算法 · 计算机科学 2010-06-30 Jouni Sirén

We consider the problem of maintaining a collection of strings while efficiently supporting splits and concatenations on them, as well as comparing two substrings, and computing the longest common prefix between two suffixes. This problem…

数据结构与算法 · 计算机科学 2024-08-15 Zsuzsanna Lipták , Francesco Masillo , Gonzalo Navarro

We consider the Abelian longest common factor problem in two scenarios: when input strings are uncompressed and are of size $n$, and when the input strings are run-length encoded and their compressed representations have size at most $m$.…

数据结构与算法 · 计算机科学 2018-04-19 Szymon Grabowski , Tomasz Kociumaka , Jakub Radoszewski

In the problem of the longest common substring with $k$ mismatches we are given two strings $X, Y$ and must find the maximal length $\ell$ such that there is a length-$\ell$ substring of $X$ and a length-$\ell$ substring of $Y$ that differ…

数据结构与算法 · 计算机科学 2020-04-29 Garance Gourdel , Tomasz Kociumaka , Jakub Radoszewski , Tatiana Starikovskaya

We give a sublinear quantum algorithm for the longest common substring (LCS) problem on the run-length encoded (RLE) inputs, under the assumption that the prefix-sums of the runs are given. Our algorithm costs $\tilde{O}(n^{5/6})\cdot…

量子物理 · 物理学 2023-10-03 Tzu-Ching Lee , Han-Hsuan Lin

For many kinds of prefix-free codes there are efficient and compact alternatives to the traditional tree-based representation. Since these put the codes into canonical form, however, they can only be used when we can choose the order in…

数据结构与算法 · 计算机科学 2021-04-02 Antonio Fariña , Travis Gagie , Szymon Grabowski , Giovanni Manzini , Gonzalo Navarro , Alberto Ordóñez

In this paper we define a new problem, motivated by computational biology, $LCSk$ aiming at finding the maximal number of $k$ length $substrings$, matching in both input strings while preserving their order of appearance. The traditional…

数据结构与算法 · 计算机科学 2014-02-11 Gary Benson , Avivit Levy , Riva Shalom

For a partial word $w$ the longest common compatible prefix of two positions $i,j$, denoted $lccp(i,j)$, is the largest $k$ such that $w[i,i+k-1]\uparrow w[j,j+k-1]$, where $\uparrow$ is the compatibility relation of partial words (it is…

Given a set of $k$ strings $I$, their longest common subsequence (LCS) is the string with the maximum length that is a subset of all the strings in $I$. A data-structure for this problem preprocesses $I$ into a data-structure such that the…

数据结构与算法 · 计算机科学 2021-01-13 Sepideh Aghamolaei

Given a set of strings, the shortest common superstring problem is to find the shortest possible string that contains all the input strings. The problem is NP-hard, but a lot of work has gone into designing approximation algorithms for…

数据结构与算法 · 计算机科学 2019-12-04 Jarno Alanko , Tuukka Norri