- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
BackTracking Algorithms.ppt
BackTracking Algorithms Briana B. Morrison With thanks to Dr. Hung Topics What is Backtracking N-Queens Problem Sum of Subsets Graph Coloring Hamiltonian Circuits Other Problems Backtracking Problems Find your way through the well-known maze of hedges by Hampton Court Palace in England? Until you reached a dead end. 0-1 Knapsack problem – exponential time complexity. N-Queens problem. Backtracking Suppose you have to make a series of decisions, among various choices, where You don’t have enough information to know what to choose Each decision leads to a new set of choices Some sequence of choices (possibly more than one) may be a solution to your problem Backtracking is a methodical way of trying out various sequences of decisions, until you find one that “works” Introduction Backtracking is used to solve problems in which a sequence of objects is chosen from a specified set so that the sequence satisfies some criterion. Backtracking is a modified depth-first search of a tree. Backtracking involves only a tree search. Backtracking is the procedure whereby, after determining that a node can lead to nothing but dead nodes, we go back (“backtrack”) to the node’s parent and proceed with the search on the next child. Introduction … We call a node nonpromising if when visiting the node we determine that it cannot possibly lead to a solution. Otherwise, we call it promising. In summary, backtracking consists of Doing a depth-first search of a state space tree, Checking whether each node is promising, and, if it is nonpromising, backtracking to the node’s parent. This is called pruning the state space tree, and the subtree consisting of the visited nodes is called the pruned state space tree. Solving a maze Given a maze, find a path from start to finish At each intersection, you have to decide between three or fewer choices: Go straight Go left Go right You don’t have enough information to choose correctly Each choice leads to another set of choices One or more sequen
您可能关注的文档
- Active LearningTechnology Tools!.ppt
- Ad Hoc IP Address Autoconfiguration.ppt
- Address Decoding.ppt
- Address Generation for Nanowire Decoders.ppt
- Address Lookup and Classification.ppt
- Address Resolution Protocol(ARP).ppt
- Address Space Layout Permutation.ppt
- Address Spoofing and Denial of Service.ppt
- Administrators and Program Managers.ppt
- ADOLESCENT HEALTHSTRATEGIC PLAN.ppt
- baihui001-情景探究:.ppt
- Balance of Payments.ppt
- Balance Sheet.ppt
- Bank Cards and E-payments.ppt
- Bank Collections, Trade Finance and Letters of Credit.ppt
- Bank Performance and Ratio Analysis.ppt
- BANNERNew Student Information System FACULTY WEB.ppt
- Basic 4-H Rabbit Showmanship.ppt
- Basic Bioinformatics.ppt
- Basic Electrical Theory.ppt
文档评论(0)