Computing a longest common subsequence that is almost increasing on sequences having no repeated elements

  • Authors:
  • Johra Muhammad Moosa;M. Sohel Rahman;Fatema Tuz Zohora

  • Affiliations:
  • AEDA Group, Department of CSE, BUET, Dhaka-1000, Bangladesh;AEDA Group, Department of CSE, BUET, Dhaka-1000, Bangladesh;AEDA Group, Department of CSE, BUET, Dhaka-1000, Bangladesh

  • Venue:
  • Journal of Discrete Algorithms
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Given two permutations A and B of [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(n^2) space, O(n(n+c^2)) time.