• Title/Summary/Keyword: 길이 제한이 있는 가장 무거운 경로

Search Result 1, Processing Time 0.015 seconds

Algorithm for finding a length-constrained heaviest path of a tree (트리에서 길이 제한이 있는 가장 무거운 경로를 찾는 알고리즘)

  • Kim, Sung-Kwon
    • The KIPS Transactions:PartA
    • /
    • v.13A no.6 s.103
    • /
    • pp.541-544
    • /
    • 2006
  • In a tree with each edge associated with a length and a weight (positive, negative, or zero are possible) we develop an O(nlognloglogn) time algorithm for finding a path such that its sum of weights is maximized and its sum of lengths does not exceed a given value. The previously best-known result is O($nlog^2n$), where n is the number of nodes in the tree.