版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Backtracking and Branch-and-Bound,2,Expected Outcomes,Describe the ideas of backtracking and branch and bound techniques Solve some difficult problems by the backtracking technique,3,Exact Solutions,exhaustive search (brute force) Generate ALL candidate solutions and identify one with a desired prop
2、erty useful only for small instances Improvement over exhaustive search: backtracking and branch-and-bound The idea construct candidate solutions one component at a time based on a certain rule. If no potential values of the remaining components can lead to a solution, the remaining components are n
3、ot generated at all. Difference Apply to different problems (non-optimization and optimization problems) The way a new component is generated. Advantage and disadvantages cut down on the search space provide fast solutions for some instances the worst case is still exponential,4,Backtracking,Constru
4、ct the state space tree: Root represents an initial state Nodes reflect specific choices made for a solutions components. Promising and nonpromising nodes leaves Explore the state space tree using depth-first search “Prune” non-promising nodes dfs stops exploring subtree rooted at nodes leading to n
5、o solutions and. “backtracks” to its parent node,5,Example: The n-Queen problem,Place n queens on an n by n chess board so that no two of them are on the same row, column, or diagonal,6,State Space Tree of the Four-queens Problem,7,The m-Coloring Problem and Hamiltonian Problem,2-color 3-color Hamil
6、tonian Circuit (use alphabet order to break the ties),8,Comments,Exhaustive search and backtracking Exhaustive search is guaranteed to be very slow in every problem instance. Backtracking provides the hope to solve some problem instances of nontrivial sizes by pruning non-promising branches of the s
7、tate-space tree. The success of backtracking varies from problem to problem and from instance to instance. Backtracking possibly generates all possible candidates in an exponentially growing state-space tree. But still it provides a systematic technique to do so.,9,Branch and Bound,An enhancement of
8、 backtracking Similarity A state space tree is used to solve a problem. Difference The branch-and-bound algorithm does not limit us to any particular way of traversing the tree and is used only for optimization problems The backtracking algorithm requires the using of DFS traversal and is used for n
9、onoptimization problems.,10,Branch and Bound,The 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 than the value of the best soluton so far):
10、expand beyond the node. Nonpromising (if the bound is no better than the value of the best solution so far): not expand beyond the node (pruning the state-space tree).,11,Traveling Salesman Problem,An obvious way to construct the state-space tree A node: a node in the state-space tree; a vertex: a v
11、ertex in the graph. A node that is not a leaf represents all the tours that start with the path stored at that node; each leaf represents a tour (or nonpromising node). Branch-and-bound: we need to determine a lower bound for each node For example, to determine a lower bound for node 1, 2 means to d
12、etermine a lower bound on the length of any tour that starts with edge 12. Expand each promising node, and stop when all the promising nodes have been expanded. During this procedure, prune all the nonpromising nodes. Promising node: the nodes lower bound is less than current minimum tour length. No
13、npromising node: the nodes lower bound is NO less than current minimum tour length.,12,Traveling Salesman ProblemBounding Function 1,Because a tour must leave every vertex exactly once, a lower bound on the length of a tour is the sum of the minimum (lower bound)cost of leaving every vertex. The low
14、er bound on the cost of leaving vertex v1 is given by the minimum of all the nonzero entries in row 1 of the adjacency matrix. The lower bound on the cost of leaving vertex vn is given by the minimum of all the nonzero entries in row n of the adjacency matrix. Note: This is not to say that there is
15、a tour with this length. Rather, it says that there can be no shorter tour. Assume that the tour starts with v1.,13,Traveling Salesman ProblemBounding Function 2,Because every vertex must be entered and exited exactly once, a lower bound on the length of a tour is the sum of the minimum cost of ente
16、ring and leaving every vertex. For a given edge (u, v), think of half of its weight as the the exiting cost of u, and half of its weight as the entering cost of v. The total length of a tour = the total cost of visiting( entering and exiting) every vertex exactly once. The lower bound of the length of a tour = the lower bound of the total cost of visiting (entering and exiting ) every vertex exactly once. Calculation: for each vertex, pick top two shortest adja
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 廈門市新翔小學2026年頂崗教師招聘備考題庫及答案詳解參考
- 2025至2030中國電子化學品行業(yè)市場現(xiàn)狀發(fā)展趨勢及投資戰(zhàn)略規(guī)劃分析報告
- 2025-2030玻璃膠行業(yè)市場深度分析及競爭格局與投資價值研究報告
- 2026中國電動軸驅(qū)動行業(yè)未來趨勢與前景動態(tài)預測報告
- 2025至2030區(qū)域性空氣治理政策差異對設(shè)備需求影響研究報告
- 勒流中學面向2026屆畢業(yè)生公開招聘7人(第二批)備考題庫及參考答案詳解1套
- 2026年長春市清蒲中學語文教師招聘備考題庫及1套完整答案詳解
- 2025至2030中國智能穿戴設(shè)備市場發(fā)展趨勢及投資策略研究
- 2025-2030中國鎳鈦板行業(yè)運營規(guī)劃與投資價值評估研究報告
- 中共廣安市委組織部2026年度公開遴選工作人員備考題庫附答案詳解
- 日志監(jiān)控規(guī)程規(guī)范規(guī)定
- 2025年福建閩投永安抽水蓄能有限公司聯(lián)合招聘17人筆試參考題庫附帶答案詳解
- 充電站安全培訓課件
- 《機器學習》課件-第7章 神經(jīng)網(wǎng)絡與深度學習
- 2025-2030中國智能家居系統(tǒng)配置服務技術(shù)人才缺口評估報告
- 護士肺功能室進修匯報
- 物業(yè)工程維修培訓內(nèi)容
- 神經(jīng)外科規(guī)培結(jié)業(yè)考試題庫及答案
- 靜脈輸液十二種并發(fā)癥及防治措施
- 肺栓塞的急救處理
- T/CCAS 007-2019水泥產(chǎn)能核定標準
評論
0/150
提交評論