




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)1 Branch-and-bound中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)2Branch and Boundo An enhancement of backtrackingn Similarityo A state space tree is used to solve a problemn Differenceo used only for optimization problems.o The backtracking requires the using of DFS traversal and is used for nonoptimization problems.o
2、Branch and bound: does not limit us to any particular way of traversing the tree (Best-first)中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)3Branch and bound (cont.)o Branching strategy:how to partition solution spaceo Node selection strategy:n sequence of exploring nodes:o depth first (tries to obtain a solution fast)o breadth/best
3、 bound first (tries to find the best solution)n which nodes to exploreoSelecting the node with the best estimated cost among all nodes.oCombine depth-first search and breadth-first search.中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)4Branch and Boundo Compared to backtracking ,branch-and-bound requires two additional items.n A way
4、 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.n The value of the best solution seen so far.中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)5The main ideap Set up a b
5、ounding 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 promisingp Promising (if the bound is better than the value of the best solution so far: expand beyond the node.p Nonpromising (if the bound is no bette
6、r 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).中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)6StartIb=10a1Ib=17a 2Ib=10a 3Ib=20a 4Ib=18b1Ib=13b 3Ib=14b 4Ib=17c 3Ib=13c 4Ib=20d 4Cost/p>
7、910o邊界(下界)的選擇:邊界(下界)的選擇:n初始節(jié)點(diǎn)邊界:包括最優(yōu)解在內(nèi),任何解的成本都不會(huì)小于矩陣每行中的最小元素的和。n節(jié)點(diǎn)其它邊界:實(shí)際產(chǎn)生的成本+還要付出的最小成本(估計(jì))中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)7o Given a set of points and their pairwise distances, the task is to find a shortest tour that visits each point exactly once. o It is NP-complete.The traveling salesperson optimization problem
8、中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)8Traveling Salesman ProblemBounding Functiono 邊界(下界)函數(shù)的選擇:邊界(下界)函數(shù)的選擇:n 初如節(jié)點(diǎn)邊界:對(duì)于每一個(gè)城市,求出該城市到距離其最近的另外兩個(gè)城市的距離之和,并把所有城市的該距離和除以2取整。n 其它節(jié)點(diǎn)邊界:實(shí)際產(chǎn)生的成本+還要付出的最小成本(估計(jì))中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)9Traveling salesmanaIb=14a,bIb=14a,ca,dIb=16a,eIb=19012345679a,b,cIb=16a,b,eIb=19a,b,dIb=168a,b,c,d,e,al=241011b is
9、not before ca,b,c,e,d,al=19a,b,d,c,e,aI=24a,b,d,e,c,aI=16中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)10Notesp Finding a good bounding is not a simple task.p On the one hand. We want this function to be easy to compute.p On the other hand, it cannt be too simplistic.otherwise, it would fail in its principal task to prune as many b
10、ranches of a state-space tree as soon as possible.中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)11The 0/1 knapsack problem o Positive integer P1, P2, , Pn (profit) W1, W2, , Wn (weight) M (capacity)中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)12Knapsack problemn 先按單位價(jià)值對(duì)待處理的物品進(jìn)行排序 v1/w1v2/w2 vn/wnn bound function(邊界函數(shù)(上界): ub=v+(W-w)(vi+1/wi+1)即即:已經(jīng)選擇物品的總價(jià)值v+背包的剩余承重W-w與剩下物品的最佳單位回報(bào)vi+1/wi+1的乘積。中南大學(xué)算法分析與設(shè)計(jì)復(fù)習(xí)13ExampleItem weight value value/weight1 4 40 102 7 42 63 5 25 5 4 3 12 4W=10中南大學(xué)算法分
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 廣東財(cái)貿(mào)職業(yè)學(xué)院《醫(yī)學(xué)統(tǒng)計(jì)學(xué)與流行病學(xué)》2023-2024學(xué)年第二學(xué)期期末試卷
- 商丘職業(yè)技術(shù)學(xué)院《稀有金屬冶金學(xué)》2023-2024學(xué)年第二學(xué)期期末試卷
- 蘇州衛(wèi)生職業(yè)技術(shù)學(xué)院《珠寶玉石材料學(xué)基礎(chǔ)》2023-2024學(xué)年第二學(xué)期期末試卷
- 長(zhǎng)春醫(yī)學(xué)高等??茖W(xué)?!洞髷?shù)據(jù)財(cái)務(wù)分析》2023-2024學(xué)年第二學(xué)期期末試卷
- 2025年上海松江區(qū)都城企業(yè)發(fā)展有限公司招聘筆試參考題庫附帶答案詳解
- 打造卓越酒店品牌-品牌形象與市場(chǎng)競(jìng)爭(zhēng)力的策略
- 室內(nèi)設(shè)計(jì)環(huán)節(jié)核心要素
- 云計(jì)算:賦能未來-理解、應(yīng)用與挑戰(zhàn)
- 知識(shí)產(chǎn)權(quán)保護(hù)與創(chuàng)新-知識(shí)產(chǎn)權(quán)專家演講
- 未來出行-無人駕駛的契機(jī)-交通運(yùn)輸專家的演講稿
- 山西煤矸石綜合開發(fā)利用項(xiàng)目可行性研究報(bào)告
- 加油站防雷制度檔案
- 《剪映專業(yè)版:短視頻創(chuàng)作案例教程(全彩慕課版)》 課件 第5章 創(chuàng)作城市宣傳片
- 手術(shù)分級(jí)目錄(2023年修訂)
- 期中 (試題) -2024-2025學(xué)年人教PEP版(2024)英語三年級(jí)上冊(cè)
- 深圳市業(yè)主共有資金監(jiān)督管理辦法
- 霧化吸入療法合理用藥專家共識(shí)(2024版)解讀
- 2024年四川省巴中市中考文科綜合試卷(含答案解析)
- 2024年全國(guó)職業(yè)院校技能大賽中職組(法律實(shí)務(wù)賽項(xiàng))考試題庫-上(單選題)
- 欠款抵車的協(xié)議書范本
- 設(shè)備購買合同模板示例
評(píng)論
0/150
提交評(píng)論