【24h】

Pattern Matching for Separable Permutations

机译:模式匹配可分离的排列

获取原文

摘要

Given a permutation π (called the text) of size n and another permutation σ (called the pattern) of size k, the NP-complete permutation pattern matching problem asks whether σ occurs in π as an order-isomorphic subsequence. In this paper, we focus on separable permutations (those permutations that avoid both 2413 and 3142, or, equiva-lently, that admit a separating tree). The main contributions presented in this paper are as follows. 1. We simplify the algorithm of Ibarra (Finding pattern matchings for permutations, Information Processing Letters 61 (1997), no. 6) to detect an occurrence of a separable permutation in a permutation and show how to reduce the space complexity from O(n~3κ) to O(n~3 log κ). 2. In case both the text and the pattern are separable permutations, we give a more practicable O(n~2κ) time and O(nκ) space algorithm. Furthermore, we show how to use this approach to decide in O(nκ~3 ℓ~2) time whether a separable permutation of size n is a disjoint union of two given permutations of size κ and ℓ. 3. Given a permutation of size n and a separable permutation of size κ, we propose an O(n~6κ) time and O(n~4 log κ) space algorithm to compute the largest common separable permutation that occurs in the two input permutations. This improves upon the existing O(n~8) time algorithm by Rossin and Bouvel (The longest common pattern problem for two permutations, Pure Mathematics and Applications 17 (2006)). 4. Finally, we give a O(n~6κ) time and space algorithm to detect an occurrence of a bivincular separable permutation in a permutation. (Bivincular patterns generalize classical permutations by requiring that positions and values involved in an occurrence may be forced to be adjacent).
机译:给定大小为n的置换π(称为文本)和大小为k的另一个置换σ(称为模式),NP完全置换模式匹配问题询问σ是否在π中作为阶同构子序列出现。在本文中,我们关注于可分离的排列(那些避免同时使用2413和3142的排列,或者等效地允许使用分离树的排列)。本文提出的主要贡献如下。 1.我们简化了Ibarra的算法(查找置换的模式匹配,Information Processing Letters 61(1997),第6号),以检测置换中可分离置换的发生,并说明如何从O(n 〜3κ)到O(n〜3 logκ)。 2.如果文本和模式都是可分离的排列,我们给出了更实用的O(n〜2κ)时间和O(nκ)空间算法。此外,我们展示了如何使用此方法在O(nκ〜3ℓ〜2)时间内确定大小为n的可分离排列是否是大小为κ和two的两个给定排列的不交集并。 3.给定大小为n的排列和大小为κ的可分离排列,我们提出了O(n〜6κ)时间和O(n〜4 logκ)空间算法来计算两个输入中出现的最大公共可分离排列排列。这对Rossin和Bouvel现有的O(n〜8)时间算法(两个置换的最长公共模式问题,Pure Mathematics and Applications 17(2006))进行了改进。 4.最后,我们给出了O(n〜6κ)时空算法,以检测置换中双目可分离置换的发生。 (双目模式通过要求发生事件中涉及的位置和值可能被迫相邻来概括经典排列)。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号