Abstract
Let T = (V,E,w) be an undirected and weighted tree with node set V and edge set E, where w(e) is an edge weight function for e ∈ E. The density of a path, say e1, e2,..., e k , is defined as ∑ki = 1 w(e i )/k. The length of a path is the number of its edges. Given a tree with n edges and a lower bound L where 1≤ L ≤ n, this paper presents two efficient algorithms for finding a maximum-density path of length at least L in O(nL) time. One of them is further modified to solve some special cases such as full m-ary trees in O(n) time.
Similar content being viewed by others
References
A. Arslan, Ö. Eğecioğlu, and P. Pevzner, “A new approach to sequence comparison: normalized sequence alignment,” Bioinformatics, vol. 17, pp. 327–337, 2001.
K.-M. Chao, R.C. Hardison, and W. Miller, “Recent developments in linear-space alignment methods: A survey,” Journal of Computational Biology, vol. 1, pp. 271–291, 1994.
K.-M. Chao, “On computing all suboptimal alignments,” Information Sciences, vol. 105, pp. 189–207, 1998.
M. Gardiner-Garden and M. Frommer, “CpG islands in vertebrate genomes,” J. Mol. Biol., vol. 196, pp. 261–282, 1987.
M.H. Goldwasser, M.-Y. Kao, and H.-I. Lu, “Fast algorithms for finding maximum-density segments of a sequence with applications to bioinformatics,” in Proceedings of the 2nd Workshop on Algorithms in Bioinformatics (WABI), 2002, pp. 157–171.
X. Huang, “An algorithm for identifying regions of a DNA sequence that satisfy a content requirement,” CABIOS, vol. 10, pp. 219–225, 1994.
S.K. Kim., “Linear-time algorithm for finding a maximum-density segment of a sequence,” Information Processing Letters, vol. 86, pp. 339–342, 2003.
Y.-L. Lin, T. Jiang, and K.-M. Chao, “Efficient algorithms for locating the length-constrained heaviest segments,” Journal of Computer and System Sciences, vol. 65, pp. 570–586, 2002.
Y.-L. Lin, X. Huang, T. Jiang, and K.-M. Chao, “MAVG, pp. Locating non-overlapping maximum average segments in a given sequence,” Bioinformatics, vol. 19, pp. 151–152, 2003.
N. Stojanovic, L. Florea, C. Riemer, D. Gumucio, J. Slightom, M. Goodman, W. Miller, and R.C. Hardison, “Comparison of five methods for finding conserved sequences in multiple alignments of gene regulatory regions,” Nucleic Acids Res., vol. 27, pp. 3899–3910, 1999.
D. Takai and P.A. Jones, “Comprehensive analysis of CpG islands in human chromosomes 21 and 22,” PNAS, vol. 99, pp. 3740–3745, 2002.
B.Y. Wu, K.-M. Chao and C.Y. Tang, “An efficient algorithm for the length-constrained heaviest path problem on a tree,” Information Processing Letters, vol. 69, pp. 63–67, 1999.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Lin, RR., Kuo, WH. & Chao, KM. Finding a Length-Constrained Maximum-Density Path in a Tree. J Comb Optim 9, 147–156 (2005). https://doi.org/10.1007/s10878-005-6853-7
Received:
Revised:
Accepted:
Issue Date:
DOI: https://doi.org/10.1007/s10878-005-6853-7