An Optimal Algorithm for the Maximum-Density Segment Problem
Abstract
We address a fundamental problem arising from analysis of biomolecular sequences. The input consists of two numbers and and a sequence of number pairs with . Let {\em segment} of be the consecutive subsequence of between indices and . The {\em density} of is . The {\em maximum-density segment problem} is to find a maximum-density segment over all segments with . The best previously known algorithm for the problem, due to Goldwasser, Kao, and Lu, runs in time. In the present paper, we solve the problem in O(n) time. Our approach bypasses the complicated {\em right-skew decomposition}, introduced by Lin, Jiang, and Chao. As a result, our algorithm has the capability to process the input sequence in an online manner, which is an important feature for dealing with genome-scale sequences. Moreover, for a type of input sequences representable in space, we show how to exploit the sparsity of and solve the maximum-density segment problem for in time.
Cite
@article{arxiv.cs/0311020,
title = {An Optimal Algorithm for the Maximum-Density Segment Problem},
author = {Kai-min Chung and Hsueh-I Lu},
journal= {arXiv preprint arXiv:cs/0311020},
year = {2007}
}
Comments
15 pages, 12 figures, an early version of this paper was presented at 11th Annual European Symposium on Algorithms (ESA 2003), Budapest, Hungary, September 15-20, 2003