Fast algorithms for finding disjoint subsequences with extremal densities ?
We derive fast algorithms for the following problem: given a set of n n points on the real line and two parameters s s and p p , find s s disjoint intervals of maximum total length that contain at most p p of the given points. Our main contribution consists of algorithms whose time bounds improve upon a straightforward dynamic programming algorithm, in the relevant case that input size n n is much bigger than parameters s s and p p . These results are achieved by selecting a few candidate intervals that are provably sufficient for building an optimal solution via dynamic programming. As a byproduct of this idea we improve an algorithm for a similar subsequence problem of Chen et al. [Disjoint segments with maximum density, in: International Workshop on Bioinformatics Research and Applications IWBRA 2005, (within ICCS 2005), Lecture Notes in Computer Science, vol. 3515, Springer, Berlin, pp. 845850]. The problems are motivated by the search for significant patterns in biological data. Finally, we propose several heuristics that further reduce the time complexity in typical instances. One of them leads to an apparently open subsequence sum problem of independent interest.
dynamic programming time complexity holes in data range prediction protein torsion angle protein structure prediction selection algorithms