Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
430881 | Journal of Discrete Algorithms | 2013 | 9 Pages |
Abstract
Given two permutations A and B of [1..n][1..n] and a fixed constant c, we introduce the notion of a longest common almost increasing subsequence (LCAIS) as a longest common subsequence that can be converted to an increasing subsequence by possibly adding a value, that is at most c , to each of the elements. We present an algorithm for computing LCAIS in O(n2)O(n2) space, O(n(n+c2))O(n(n+c2)) time.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Johra Muhammad Moosa, M. Sohel Rahman, Fatema Tuz Zohora,