Skip to main content

Maximum-Average Segments

  • Reference work entry
  • First Online:
Encyclopedia of Algorithms
  • 109 Accesses

Years and Authors of Summarized Original Work

  • 1994; Huang

Problem Definition

Given a sequence of numbers, \(A=\langle a_{1},\!a_{2},\!\ldots ,a_{n}\!\rangle\), and two positive integers L, U, where 1 ≤ L ≤ U ≤ n, the maximum-density segment problem is to find a consecutive subsequence, i.e., a segment or substring, of A with length at least L and at most U such that the average value of the numbers in the subsequence is maximized.

Key Results

If there is no length constraint, then obviously the maximum-density segment is the maximum number in the sequence. Let’s first consider the problem where only the length lower bound L is imposed. By observing that the length of the shortest maximum-density segment with length at least L is at most 2L − 1, Huang [9] gave an O(nL)-time algorithm. Lin et al. [13] proposed a new technique, called the right-skew decomposition, to partition each suffix of A into right-skewsegments of strictly decreasing averages. The right-skew decomposition can be...

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 1,599.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 1,999.99
Price excludes VAT (USA)
  • Durable hardcover 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

Recommended Reading

  1. Arslan A, Eğecioğlu Ö, Pevzner P (2001) A new approach to sequence comparison: normalized sequence alignment. Bioinformatics 17:327–337

    Article  Google Scholar 

  2. Bergkvist A, Damaschke P (2005) Fast algorithms for finding disjoint subsequences with extremal densities. In: Proceedings of the 16th annual international symposium on algorithms and computation, Sanya. Lecture notes in computer science, vol 3827, pp 714–723

    Google Scholar 

  3. Burton BA (2011) Searching a bitstream in linear time for the longest substring of any given density. Algorithmica 61:555–579

    Article  MathSciNet  MATH  Google Scholar 

  4. Burton BA, Hiron M (2013) Locating regions in a sequence under density constraints. SIAM J Comput 42:1201–1215

    Article  MATH  Google Scholar 

  5. Chen YH, Lu HI, Tang CY (2005) Disjoint segments with maximum density. In: Proceedings of the 5th annual international conference on computational science, Atlanta, pp 845–850

    Google Scholar 

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

    Article  MathSciNet  MATH  Google Scholar 

  7. Fukuda T, Morimoto Y,Morishita S, Tokuyama T (1999) Mining optimized association rules for numeric attributes. J Comput Syst Sci 58:1–12

    Article  MathSciNet  MATH  Google Scholar 

  8. Goldwasser MH, Kao M-Y, Lu H-I (2005) Linear-time algorithms for computing maximum-density sequence segments with bioinformatics applications. J Comput Syst Sci 70:128–144

    Article  MathSciNet  MATH  Google Scholar 

  9. Hsieh Y-H, Yu C-C, Wang B-F (2008) Optimal algorithms for the interval location problem with range constraints on length and average. IEEE/ACM Trans Comput Biol Bioinform 5:281–290

    Article  Google Scholar 

  10. Huang X (1994) An algorithm for identifying regions of a DNA sequence that satisfy a content requirement. Comput Appl Biosci 10:219–225

    Google Scholar 

  11. Kim SK (2003) Linear-time algorithm for finding a maximum-density segment of a sequence. Inf Process Lett 86:339–342

    Article  MathSciNet  MATH  Google Scholar 

  12. Lin Y-L, Huang X, Jiang T, Chao K-M (2003) MAVG: locating non-overlapping maximum average segments in a given sequence. Bioinformatics 19:151–152

    Article  Google Scholar 

  13. Lin Y-L, Jiang T, Chao K-M (2002) Efficient algorithms for locating the length-constrained heaviest segments with applications to biomolecular sequence analysis. J Comput Syst Sci 65:570–586

    Article  MathSciNet  MATH  Google Scholar 

  14. Liu H-F, Chao K-M (2006) On locating disjoint segments with maximum sum of densities. In: Proceedings of the 17th annual international symposium on algorithms and computation, Kolkata. Lecture notes in computer science, vol 4288, pp 300–307

    Google Scholar 

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

    Article  Google Scholar 

  16. Stojanovic N, Dewar K (2005) Identifying multiple alignment regions satisfying simple formulas and patterns. Bioinformatics 20:2140–2142

    Article  Google Scholar 

  17. Stojanovic N, Florea L, Riemer C, Gumucio D, Slightom J, Goodman M, Miller W, Hardison R (1999) Comparison of five methods for finding conserved sequences in multiple alignments of gene regulatory regions. Nucl Acid Res 19:3899–3910

    Article  Google Scholar 

  18. Zhang Z, Berman P, Wiehe T, Miller W (1999) Post-processing long pairwise alignments. Bioinformatics 15:1012–1019

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kun-Mao Chao .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Science+Business Media New York

About this entry

Cite this entry

Chao, KM. (2016). Maximum-Average Segments. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, New York, NY. https://doi.org/10.1007/978-1-4939-2864-4_224

Download citation

Publish with us

Policies and ethics