首页> 外文期刊>Discrete Applied Mathematics >Weight-constrained and density-constrained paths in a tree: Enumerating, counting, and k-maximum density paths
【24h】

Weight-constrained and density-constrained paths in a tree: Enumerating, counting, and k-maximum density paths

机译:树中受重量限制和受密度限制的路径:枚举,计数和k最大密度路径

获取原文
获取原文并翻译 | 示例
           

摘要

Let T be a tree of n nodes in which each edge is associated with a value and a weight that are a real number and a positive integer, respectively. Given two integers W-min and W-max and two real numbers d(min) and d(max) a path P in a tree is feasible if the sum of the edge weights in P is between W-min and W-max and the ratio of the sum of the edge values in P to the sum of the edge weights in P is between dmin and dm. In this paper, we first present an O(n log(2) n+ h)time algorithm to find all feasible paths in a tree, where h = O(n(2)) if the output of a path is given by its end-nodes. Then, we present an O(n log(2) n)-time algorithm to count the number of all feasible paths in a tree. Finally, we present an O(n log(2) n + h)-time algorithm to find the k feasible paths whose densities are the k largest of all feasible paths. (C) 2014 Elsevier B.V. All rights reserved.
机译:令T为n个节点的树,其中每个边分别与一个值和一个权重关联,该值和权重分别为实数和正整数。给定两个整数W-min和W-max以及两个实数d(min)和d(max),如果P中的边权重之和在W-min和W-max之间,则树中的路径P是可行的。 P中的边缘值之和与P中的边缘权重之和之比在dmin和dm之间。在本文中,我们首先提出一种O(n log(2)n + h)时间算法,以查找树中所有可行的路径,如果路径的输出是由其末端给出的,则h = O(n(2)) -节点。然后,我们提出O(n log(2)n)-时间算法,以计算树中所有可行路径的数量。最后,我们提出一种O(n log(2)n + h)时间算法,以找到k条可行路径,其密度为所有可行路径中的k个最大。 (C)2014 Elsevier B.V.保留所有权利。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号