Skip to main content

Algorithms for Problems on Maximum Density Segment

  • Conference paper
Algorithms and Discrete Applied Mathematics (CALDAM 2016)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9602))

Included in the following conference series:

  • 1203 Accesses

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[ij], sum s[ij] and density d[ij] of a segment A[ij] 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[ij] 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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. 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)

    MATH  Google Scholar 

  2. Bentley, J.: Programming pearls: perspective on performance. Commun. ACM 27, 1087–1092 (1984)

    Article  Google Scholar 

  3. 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)

    Article  MathSciNet  MATH  Google Scholar 

  4. Chung, K.-M., Lu, H.-I.: An optimal algorithm for the maximum-density segment problem. SIAM J. Comput. 34(2), 373–387 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  5. 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)

    Article  Google Scholar 

  6. Frederickson, G.N.: An optimal algorithm for selection in a min-heap. Inf. Comput. 104(2), 197–214 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  7. 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)

    Chapter  Google Scholar 

  8. 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)

    Article  MathSciNet  MATH  Google Scholar 

  9. Kim, S.K.: Linear-time algorithm for finding a maximum-density segment of a sequence. Inf. Process. Lett. 86(6), 339–342 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  10. Lee, D., Lin, T.-C., Lu, H.-I.: Fast algorithms for the density finding problem. Algorithmica 53, 298–313 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  11. 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)

    Article  MathSciNet  MATH  Google Scholar 

  12. Nekrutenko, A., Li, W.H.: Assessment of compositional heterogeneity within and between eukaryotic genomes. Genome Res. 10(12), 1986–1995 (2000)

    Article  Google Scholar 

  13. Overmars, M.H., van Leeuwen, J.: Maintenance of configurations in the plane. J. Comput. Syst. Sci. 23(2), 166–204 (1981)

    Article  MathSciNet  MATH  Google Scholar 

  14. 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)

    Article  Google Scholar 

  15. 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)

    Article  Google Scholar 

  16. 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)

    Google Scholar 

  17. Zoubak, S., Clay, O., Bernardi, G.: The gene distribution of the human genome. Gene 174(1), 95–102 (1996)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Asish Mukhopadhyay .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics