Self-adjusting binary search trees
Journal of the ACM (JACM)
New clique and independent set algorithms for circle graphs
Discrete Applied Mathematics
A fast algorithm for computing longest common subsequences
Communications of the ACM
Introduction to Algorithms
Longest increasing subsequences in sliding windows
Theoretical Computer Science
Nordic Journal of Computing
On the longest increasing subsequence of a circular list
Information Processing Letters
Hi-index | 0.00 |
Given a sequence of n elements, we introduce the notion of an almost-increasing subsequence in two contexts. The first notion is the longest subsequence that can be converted to an increasing subsequence by possibly adding a value, that is at most a fixed constant c, to each of the elements. We show how to optimally construct such subsequence in O(n log k) time, where k is the length of the output subsequence. As an exercise, we show how to produce in O(n2 log k) time a special type of subsequences, that we call subsequences obeying the triangle inequality, by using as a subroutine our algorithm for the above case. The second notion is the longest subsequence where every element is at least the value of a monotonically non-decreasing function in terms of the r preceding elements (or even with respect to every r elements among those preceding it). We show how to construct such subsequence in O(nr log k) time.