请输入您要查询的字词:

 

单词 branch and bound method(of solving the knapsack problem)
释义
branch and bound method(of solving the knapsack problem)

Mathematics
  • This procedure constructs a branching method that terminates each branch once the constraint limit has been reached and by allowing items to be added in an order which is determined at the start. This reduces considerably the number of combinations that have to be tried. The following simple example will be used to illustrate the detailed method.

    A knapsack has maximum weight of 15, and the following items are available: A has weight (w) 5 and value (v) 10, written A (5, 10) with B (7, 11), C (4, 8) and D (4, 12).

    Method. Place the items in decreasing order of value per unit weight, i.e. D, A, C, B (A and C could be reversed). Then construct a vector (x1, x2, x3, x4) where xi = 0 if the item is not being taken and xi = 1 if it is. Start with (0, 0, 0, 0). At each stage, if a branch has not been terminated, and there are n zeros at the end of the vector, construct n branches which change exactly one of those zeros to a one and for which the total weight does not exceed the limit so the first stage will have four branches (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0) and (0, 0, 0, 1). Calculate the total weight (w) for each new branch created, and the value (v), and repeat the process.

    branch and bound method

    Example illustrating the branch and bound method

    From the figure we see that the optimal solution is to choose items B, C, D with total weight 15 and value 31.


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/7/1 0:39:18