Abstract
Let A be a sequence of n ordered pairs of real numbers \((a_i, l_i)\) \((i=1, \ldots , n)\) with \(l_i>0\), and L and U be two positive real numbers with \(0 < L\leqslant U\). A segment, denoted by \(A[i, j], 1\leqslant i\leqslant j \leqslant n\), of A is a consecutive subsequence of A between the indices i and j (i and j included). The length l[i, j], sum s[i, j] and density d[i, j] of a segment A[i, j] are \(l[i, j]=\sum ^j_{t=i}{l_t}\), \(s[i, j]=\sum ^j_{t=i}{a_t}\) and \(d[i, j]=\frac{s[i, j]}{ l[i, j]}\) respectively. A segment A[i, j] is feasible if \(L\leqslant l[i, j] \leqslant U\). The length-constrained maximum density segment problem is to find a feasible segment of maximum density. We present a simple geometric algorithm for this problem for the uniform length case (\(l_i = 1\) for all i), with time and space complexities in O(n) and \(O(U-L+1)\) respectively. The k length-constrained maximum density segments problem is to find the k most dense length-constrained segments. For the uniform length case, we propose an algorithm for this problem with time complexity in \(O(\min \{nk, n\lg (U-L+1) + k\lg ^2(U-L+2), n(U-L+1)\})\).
A. Mukhopadhyay—Research supported by an NSERC discovery grant awarded to this author.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Aho, A., Hopcroft, J., Ullman, J.: The Design and Analysis of Computer Algorithms. Addison-Wesley Series in Computer Science and Information Processing. Addison-Wesley Pub. Co., Boston (1974)
Bentley, J.: Programming pearls: perspective on performance. Commun. ACM 27, 1087–1092 (1984)
Blum, M., Floyd, R.W., Pratt, V., Rivest, R.L., Tarjan, R.E.: Time bounds for selection. J. Comput. Syst. Sci. 7(4), 448–461 (1973)
Chung, K.-M., Lu, H.-I.: An optimal algorithm for the maximum-density segment problem. SIAM J. Comput. 34(2), 373–387 (2005)
Duret, L., Mouchiroud, D., Gautier, C.: Statistical analysis of vertebrate sequences reveals that long genes are scarce in gc-rich isochores. J. Mol. Evol. 40, 308–317 (1995)
Frederickson, G.N.: An optimal algorithm for selection in a min-heap. Inf. Comput. 104(2), 197–214 (1993)
Goldwasser, M.H., Kao, M.-Y., Lu, H.-I.: Fast algorithms for finding maximum-density segments of a sequence with applications to bioinformatics. In: Guigó, R., Gusfield, D. (eds.) WABI 2002. LNCS, vol. 2452, pp. 157–171. Springer, Heidelberg (2002)
Goldwasser, M.H., Kao, M.-Y., Lu, H.-I.: Linear-time algorithms for computing maximum-density sequence segments with bioinformatics applications. J. Comput. Syst. Sci. 70(2), 128–144 (2005)
Kim, S.K.: Linear-time algorithm for finding a maximum-density segment of a sequence. Inf. Process. Lett. 86(6), 339–342 (2003)
Lee, D., Lin, T.-C., Lu, H.-I.: Fast algorithms for the density finding problem. Algorithmica 53, 298–313 (2009)
Lin, Y.-L., Jiang, T., Chao, K.-M.: Efficient algorithms for locating the length-constrained heaviest segments with applications to biomolecular sequence analysis. J. Comput. Syst. Sci. 65(3), 570–586 (2002)
Nekrutenko, A., Li, W.H.: Assessment of compositional heterogeneity within and between eukaryotic genomes. Genome Res. 10(12), 1986–1995 (2000)
Overmars, M.H., van Leeuwen, J.: Maintenance of configurations in the plane. J. Comput. Syst. Sci. 23(2), 166–204 (1981)
Sharp, P.M., Averof, M., Lloyd, A.T., Matassi, G., Peden, J.F.: DNA Sequence evolution: the sounds of silence. R. Soc. Lond. Philos. Trans. B 349, 241–247 (1995)
Stojanovic, N., Florea, L., Riemer, C., Gumucio, D., Slightom, J., Goodman, M., Miller, W., Hardison, R.: Comparison of five methods for finding conserved sequences in multiple alignments of gene regulatory regions. Nucleic Acids Res. 27(19), 3899–3910 (1999)
Tamaki, H., Tokuyama, T.: Algorithms for the maximum subarray problem based on matrix multiplication. In: Proceedings of the Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 1998, pp. 446–452. Society for Industrial and Applied Mathematics, Philadelphia (1998)
Zoubak, S., Clay, O., Bernardi, G.: The gene distribution of the human genome. Gene 174(1), 95–102 (1996)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this paper
Cite this paper
Shafiul Alam, M., Mukhopadhyay, A. (2016). Algorithms for Problems on Maximum Density Segment. In: Govindarajan, S., Maheshwari, A. (eds) Algorithms and Discrete Applied Mathematics. CALDAM 2016. Lecture Notes in Computer Science(), vol 9602. Springer, Cham. https://doi.org/10.1007/978-3-319-29221-2_2
Download citation
DOI: https://doi.org/10.1007/978-3-319-29221-2_2
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-29220-5
Online ISBN: 978-3-319-29221-2
eBook Packages: Computer ScienceComputer Science (R0)