中文
相关论文

相关论文: Longest Common Pattern between two Permutations

200 篇论文

We provide a simple and natural solution to the problem of generating all $2^n \cdot n!$ signed permutations of $[n] = \{1,2,\ldots,n\}$. Our solution provides a pleasing generalization of the most famous ordering of permutations: plain…

数据结构与算法 · 计算机科学 2024-06-17 Yuan , Qiu , Aaron Williams

We investigate the variance of the length of the longest common subsequences of two independent random words of size $n$, where the letters of one word are i.i.d. uniformly drawn from $\{\alpha_1, \alpha_2, \cdots, \alpha_m\}$, while the…

概率论 · 数学 2018-12-27 Christian Houdré , Qingqing Liu

An old open problem in graph drawing asks for the size of a universal point set, a set of points that can be used as vertices for straight-line drawings of all n-vertex planar graphs. We connect this problem to the theory of permutation…

计算几何 · 计算机科学 2015-07-16 Michael J. Bannister , Zhanpeng Cheng , William E. Devanny , David Eppstein

In graph theory, the longest path problem is the problem of finding a simple path of maximum length in a given graph. For some small classes of graphs, the problem can be solved in polynomial time [2, 4], but it remains NP-hard on general…

数据结构与算法 · 计算机科学 2014-09-15 Lajos L. Pongrácz

We present an algorithm running in time O(n ln n) which decides if a wreath-closed permutation class Av(B) given by its finite basis B contains a finite number of simple permutations. The method we use is based on an article of Brignall,…

数据结构与算法 · 计算机科学 2011-03-30 Frédérique Bassino , Mathilde Bouvel , Adeline Pierrot , Dominique Rossin

In binary jumbled pattern matching we wish to preprocess a binary string $S$ in order to answer queries $(i,j)$ which ask for a substring of $S$ that is of size $i$ and has exactly $j$ 1-bits. The problem naturally generalizes to…

数据结构与算法 · 计算机科学 2014-07-01 Danny Hermelin , Gad M. Landau , Yuri Rabinovich , Oren Weimann

Let $LA_{n}(\tau)$ be the length of the longest alternating subsequence of a uniform random permutation $\tau\in[n]$. Classical probabilistic arguments are used to rederive the asymptotic mean, variance and limiting law of $LA_{n}(\tau)$.…

概率论 · 数学 2012-09-11 Christian Houdré , Ricardo Restrepo

The most fundamental problem considered in algorithms for text processing is pattern matching: given a pattern $p$ of length $m$ and a text $t$ of length $n$, does $p$ occur in $t$? Multiple versions of this basic question have been…

数据结构与算法 · 计算机科学 2021-11-10 Moses Ganardi , Paweł Gawrychowski

Many algorithms have been developed for enumerating various combinatorial objects in time exponentially less than the number of objects. Two common classes of algorithms are dynamic programming and the transfer matrix method. This paper…

组合数学 · 数学 2017-05-16 Andrew R. Conway

Maximum bipartite matching is a fundamental algorithmic problem which can be solved in polynomial time. We consider a natural variant in which there is a separation constraint: the vertices on one side lie on a path or a grid, and two…

数据结构与算法 · 计算机科学 2023-03-20 Pasin Manurangsi , Erel Segal-Halevi , Warut Suksompong

This article presents a methodology that automatically derives a combinatorial specification for a permutation class C, given its basis B of excluded patterns and the set of simple permutations in C, when these sets are both finite. This is…

Finding the minimum distance of linear codes is an NP-hard problem. Traditionally, this computation has been addressed by means of the design of algorithms that find, by a clever exhaustive search, a linear combination of some generating…

信息论 · 计算机科学 2020-11-02 M. P. Cuéllar , J. Gómez-Torrecillas , F. J. Lobillo , G. Navarro

The currently fastest algorithm for regular expression pattern matching and membership improves the classical O(nm) time algorithm by a factor of about log^{3/2}n. Instead of focussing on general patterns we analyse homogeneous patterns of…

计算复杂性 · 计算机科学 2020-09-22 Philipp Schepper

We characterize separable multidimensional permutations in terms of forbidden patterns and enumerate them by means of generating function, recursive formula and explicit formula. We find a connection between multidimensional permutations…

组合数学 · 数学 2008-03-25 Andrei Asinowski , Toufik Mansour

Comtet introduced the notion of indecomposable permutations in 1972. A permutation is indecomposable if and only if it has no proper prefix which is itself a permutation. Indecomposable permutations were studied in the literature in various…

组合数学 · 数学 2016-05-24 Alice L. L. Gao , Sergey Kitaev , Philip B. Zhang

We prove that the combinatorial distance between any two reduced expressions of a given permutation of {1, ..., n} in terms of transpositions lies in O(n^4), a sharp bound. Using a connection with the intersection numbers of certain curves…

组合数学 · 数学 2009-02-19 Marc Autord , Patrick Dehornoy

The number of n-gram features grows exponentially in n, making it computationally demanding to compute the most frequent n-grams even for n as small as 3. Motivated by our production machine learning system built on n-gram features, we ask:…

数据结构与算法 · 计算机科学 2025-11-20 Ryan R. Curtin , Fred Lu , Edward Raff , Priyanka Ranade

We present a randomized parallel algorithm that computes the greatest common divisor of two integers of n bits in length with probability 1-o(1) that takes O(n loglog n / log n) expected time using n^{6+\epsilon} processors on the EREW PRAM…

数据结构与算法 · 计算机科学 2010-01-15 Jonathan P. Sorenson

An algorithm is demonstrated that finds an ordinary intersection in an arrangement of $n$ lines in $\mathbb{R}^2$, not all parallel and not all passing through a common point, in time $O(n \log{n})$. The algorithm is then extended to find…

计算几何 · 计算机科学 2009-10-05 George B. Purdy , Justin W. Smith

The Ulam distance of two permutations on $[n]$ is $n$ minus the length of their longest common subsequence. In this paper, we show that for every $\varepsilon>0$, there exists some $\alpha>0$, and an infinite set $\Gamma\subseteq…

信息论 · 计算机科学 2024-05-14 Elazar Goldenberg , Mursalin Habib , Karthik C. S