PATTERN-MATCHING FOR PERMUTATIONS

Citation
P. Bose et al., PATTERN-MATCHING FOR PERMUTATIONS, Information processing letters, 65(5), 1998, pp. 277-283
Citations number
17
Categorie Soggetti
Computer Science Information Systems","Computer Science Information Systems
ISSN journal
00200190
Volume
65
Issue
5
Year of publication
1998
Pages
277 - 283
Database
ISI
SICI code
0020-0190(1998)65:5<277:PFP>2.0.ZU;2-K
Abstract
Given a permutation T of 1 to n, and a permutation P of 1 to k, for k less than or equal to n, we wish to find a k-element subsequence of T whose elements are ordered according to the permutation P. For example , if P is (1,2,...,k), then we wish to find an increasing subsequence of length k in T; this special case was done in time O(n log log n) by Chang and Wang. We prove that the general problem is NP-complete. We give a polynomial time algorithm for the decision problem, and the cor responding counting problem, in the case that P is separable - i.e., c ontains neither the subpattern (3, 1,4, 2) nor its reverse, the subpat tem (2,4, 1,3). (C) 1998 Published by Elsevier Science B.V.