Problem
Given two number sequences and a positive threshold, find a longest common subsequence that is almost increasing. The problem blends LCS-style matching with a relaxed monotonicity constraint.
IWOCA 2025 ยท Lecture Notes in Computer Science
A combinatorial algorithms paper by Md Tanzeem Rahat, Md. Manzurul Hasan, and Debajyoti Mondal, published at IWOCA 2025.
Given two number sequences and a positive threshold, find a longest common subsequence that is almost increasing. The problem blends LCS-style matching with a relaxed monotonicity constraint.
LCaIS exposes a useful boundary between dense dynamic programming and structure-aware sequence algorithms, where matching pairs and compatibility relationships can be exploited.
The work reduces the memory burden of exact LCaIS computation and develops a match-sensitive algorithm that can be faster when the input is sparse in the right way.
The paper gives an O(nmL)-time, O(n + mL)-space algorithm, and a second algorithm whose time depends on matching and compatible matching pairs.
The central difficulty is keeping enough state to recover the constrained common subsequence without carrying the full dense dynamic-programming table.