Abstract

In this work, we obtain the following new results: – Given a tree T = ( V , E ) with a length function ℓ : E → R and a weight function w : E → R , a positive integer k , and an interval [ L , U ] , the Weight-Constrained k Longest Paths problem is to find the k longest paths among all paths in T with weights in the interval [ L , U ] . We show that the Weight-Constrained k Longest Paths problem has a lower bound Ω ( V log V + k ) in the algebraic computation tree model and give an O ( V log V + k ) -time algorithm for it. – Given a sequence A = ( a 1 , a 2 , … , a n ) of numbers and an interval [ L , U ] , we define the sum and length of a segment A [ i , j ] to be a i + a i + 1 + ⋯ + a j and j − i + 1 , respectively. The Length-Constrained k Maximum-Sum Segments problem is to find the k maximum-sum segments among all segments of A with lengths in the interval [ L , U ] . We show that the Length-Constrained k Maximum-Sum Segments problem can be solved in O ( n + k ) time.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.