中南大学算法分析与设计复习课件_第1页
中南大学算法分析与设计复习课件_第2页
中南大学算法分析与设计复习课件_第3页
中南大学算法分析与设计复习课件_第4页
中南大学算法分析与设计复习课件_第5页
已阅读5页,还剩10页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Jin Zheng, Central South University,1,Branch-and-bound,Jin Zheng, Central South University,2,Branch and Bound,An enhancement of backtracking Similarity A state space tree is used to solve a problem Difference used only for optimization problems. The backtracking requires the using of DFS traversal a

2、nd is used for nonoptimization problems. Branch and bound: does not limit us to any particular way of traversing the tree (Best-first),Jin Zheng, Central South University,3,Branch and bound (cont.),Branching strategy: how to partition solution space Node selection strategy: sequence of exploring nod

3、es: depth first (tries to obtain a solution fast) breadth/best bound first (tries to find the best solution) which nodes to explore,Selecting the node with the best estimated cost among all nodes.,Combine depth-first search and breadth-first search.,Jin Zheng, Central South University,4,Branch and B

4、ound,Compared to backtracking ,branch-and-bound requires two additional items. A way to provide, for every node of a state-space-tree ,a bound on the best value of the objective function on any solution that can be obtained by adding further omponents to the partial solution represented by the node.

5、 The value of the best solution seen so far.,Jin Zheng, Central South University,5,The main idea,Set up a bounding function, which is used to compute a bound (for the value of the objective function) at a node on a state-space tree and determine if it is promising Promising (if the bound is better t

6、han the value of the best solution so far: expand beyond the node. Nonpromising (if the bound is no better than the value of the best solution so far-:not smaller for a minimization problem and not larger for a maxmization problem ): not expand beyond the node (pruning the state-space tree).,Jin Zhe

7、ng, Central South University,6,边界(下界)的选择: 初始节点边界:包括最优解在内,任何解的成本都不会小于矩阵每行中的最小元素的和。 节点其它边界:实际产生的成本+还要付出的最小成本(估计),Jin Zheng, Central South University,7,Given a set of points and their pairwise distances, the task is to find a shortest tour that visits each point exactly once. It is NP-complete.,The tra

8、veling salesperson optimization problem,Jin Zheng, Central South University,8,Traveling Salesman ProblemBounding Function,边界(下界)函数的选择: 初如节点边界:对于每一个城市,求出该城市到距离其最近的另外两个城市的距离之和,并把所有城市的该距离和除以2取整。 其它节点边界:实际产生的成本+还要付出的最小成本(估计),Jin Zheng, Central South University,9,Traveling salesman,0,1,2,3,4,5,6,7,9,8,10

9、,11,b is not before c,Jin Zheng, Central South University,10,Notes,Finding a good bounding is not a simple task. On the one hand. We want this function to be easy to compute. On the other hand, it cannt be too simplistic.otherwise, it would fail in its principal task to prune as many branches of a s

10、tate-space tree as soon as possible.,Jin Zheng, Central South University,11,The 0/1 knapsack problem,Positive integer P1, P2, , Pn (profit) W1, W2, , Wn (weight) M (capacity),Jin Zheng, Central South University,12,Knapsack problem,先按单位价值对待处理的物品进行排序 v1/w1v2/w2 vn/wn bound function(边界函数(上界): ub=v+(W-w)(vi+1/wi+1),即:已经选择物品的总价值v+背包的剩余承重W-w与剩下物品的最佳单位回报vi+1/wi+1的乘积。,Jin Zheng, Central South University,13,Example,Item weight valu

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论