中文
相关论文

相关论文: Longest Common Pattern between two Permutations

200 篇论文

We consider the well-studied pattern counting problem: given a permutation $\pi \in \mathbb{S}_n$ and an integer $k > 1$, count the number of order-isomorphic occurrences of every pattern $\tau \in \mathbb{S}_k$ in $\pi$. Our first result…

数据结构与算法 · 计算机科学 2024-07-09 Gal Beniamini , Nir Lavee

In this paper, two approximation algorithms are given. Let N be an odd composite number. The algorithms give new directions regarding primality test of given N. The first algorithm is given using a new method called digital coding method.…

数论 · 数学 2014-02-25 Lakshmi Prabha S , T. N. Janakiraman

We describe an algorithm, implemented in Python, which can enumerate any permutation class with polynomial enumeration from a structural description of the class. In particular, this allows us to find formulas for the number of permutations…

组合数学 · 数学 2015-11-17 Cheyne Homberger , Vince Vatter

Let $\pi_n$ be a uniformly chosen random permutation on $[n]$. Using an analysis of the probability that two overlapping consecutive $k$-permutations are order isomorphic, we show that the expected number of distinct consecutive patterns in…

It is an open question whether there exists a polynomial-time algorithm for computing the rotation distances between pairs of extended ordered binary trees. The problem of computing the rotation distance between an arbitrary pair of trees,…

数据结构与算法 · 计算机科学 2020-01-20 Sean Cleary , Roland Maio

The {\em longest common subsequence (LCS)} problem is a classic and well-studied problem in computer science. LCS is a central problem in stringology and finds broad applications in text compression, error-detecting codes and biological…

数据结构与算法 · 计算机科学 2010-04-20 Shihabur Rahman Chowdhury , Masud Hasan , Sumaiya Iqbal , M. Sohel Rahman

Permutation is the different arrangements that can be made with a given number of things taking some or all of them at a time. The notation P(n,r) is used to denote the number of permutations of n things taken r at a time. Permutation is…

数据结构与算法 · 计算机科学 2012-05-15 Youssef Bassil

In the last years, different types of patterns in permutations have been studied: vincular, bivincular and mesh patterns, just to name a few. Every type of permutation pattern naturally defines a corresponding computational problem: Given a…

计算复杂性 · 计算机科学 2015-06-23 Marie-Louise Bruner , Martin Lackner

We use a probabilistic method to produce some combinatorial inequalities by considering pattern containment in permutations and words.

组合数学 · 数学 2007-05-23 Alexander I. Burstein

The reconstruction problem for permutations on $n$ elements from their erroneous patterns which are distorted by transpositions is presented in this paper. It is shown that for any $n \geq 3$ an unknown permutation is uniquely…

组合数学 · 数学 2007-05-23 Elena Konstantinova , Vladimir Levenshtein , Johannes Siemons

We consider the longest common subsequence (LCS) problem with the restriction that the common subsequence is required to consist of at least $k$ length substrings. First, we show an $O(mn)$ time algorithm for the problem which gives a…

A permutation is \it separable \rm if it can be obtained from the singleton permutation by iterating direct sums and skew sums. Equivalently, it is separable if and only it avoids the patterns 2413 and 3142. Under the uniform probability on…

概率论 · 数学 2023-10-31 Ross G. Pinsky

We study a generalization of the recently introduced order-preserving pattern matching, where instead of looking for an exact copy of the pattern, we only require that the relative order between the elements is the same. In our variant, we…

数据结构与算法 · 计算机科学 2014-03-07 Pawel Gawrychowski , Przemyslaw Uznanski

Squares (fragments of the form $xx$, for some string $x$) are arguably the most natural type of repetition in strings. The basic algorithmic question concerning squares is to check if a given string of length $n$ is square-free, that is,…

数据结构与算法 · 计算机科学 2023-03-14 Jonas Ellert , Paweł Gawrychowski , Garance Gourdel

We calculate the large deviations for the length of the longest alternating subsequence and for the length of the longest increasing subsequence in a uniformly random permutation that avoids a pattern of length three. We treat all six…

概率论 · 数学 2023-09-04 Ross G. Pinsky

In this paper, we revisit the much studied LCS problem for two given sequences. Based on the algorithm of Iliopoulos and Rahman for solving the LCS problem, we have suggested 3 new improved algorithms. We first reformulate the problem in a…

数据结构与算法 · 计算机科学 2015-08-25 Daxin Zhu , Lei Wang , Yingjie Wu , Xiaodong Wang

Superpermutations are words over a finite alphabet containing every permutation as a factor. Finding the minimal length of a superpermutation is still an open problem. In this article, we introduce superpermutations matrices. We establish a…

组合数学 · 数学 2019-08-14 Guillaume Dumas

Longest common extension queries (often called longest common prefix queries) constitute a fundamental building block in multiple string algorithms, for example computing runs and approximate pattern matching. We show that a sequence of $q$…

数据结构与算法 · 计算机科学 2016-04-08 Paweł Gawrychowski , Tomasz Kociumaka , Wojciech Rytter , Tomasz Waleń

We propose a simple O([n^5/\log n]L) algorithm for linear programming feasibility, that can be considered as a polynomial-time implementation of the relaxation method. Our work draws from Chubanov's "Divide-and-Conquer" algorithm [4], where…

最优化与控制 · 数学 2013-12-09 László A. Végh , Giacomo Zambelli

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