![Local Searchwalksat,ant colonies,and genetic algorith:当地searchwalksat蚁群算法与遗传算法_第1页](http://file4.renrendoc.com/view/996e56031580a743ed7abd2f4ca519c9/996e56031580a743ed7abd2f4ca519c91.gif)
![Local Searchwalksat,ant colonies,and genetic algorith:当地searchwalksat蚁群算法与遗传算法_第2页](http://file4.renrendoc.com/view/996e56031580a743ed7abd2f4ca519c9/996e56031580a743ed7abd2f4ca519c92.gif)
![Local Searchwalksat,ant colonies,and genetic algorith:当地searchwalksat蚁群算法与遗传算法_第3页](http://file4.renrendoc.com/view/996e56031580a743ed7abd2f4ca519c9/996e56031580a743ed7abd2f4ca519c93.gif)
![Local Searchwalksat,ant colonies,and genetic algorith:当地searchwalksat蚁群算法与遗传算法_第4页](http://file4.renrendoc.com/view/996e56031580a743ed7abd2f4ca519c9/996e56031580a743ed7abd2f4ca519c94.gif)
![Local Searchwalksat,ant colonies,and genetic algorith:当地searchwalksat蚁群算法与遗传算法_第5页](http://file4.renrendoc.com/view/996e56031580a743ed7abd2f4ca519c9/996e56031580a743ed7abd2f4ca519c95.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Local Search:walksat, ant colonies, and genetic algorithmsTonightCourse evaluationsLocal searchFinal examIssueHow to search really large spaces1030,000 + statessystematic search hopeless!Local searchiterative repair, hill climbing, gradient descent, guess a start staterepeat until satisfied: make sm
2、all changemove to a local neighborExamplesLearning weights in a neural networkSpace: set of weightsNeighborhood: small deltaLearning CPTs in a Bayesian networkEM algorithmThese are optimization problems what about local search for decision problems?N-QueensN-Queens DemoGSATGuess a random truth assig
3、nmentwhile (#unsat clauses 0)flip a variable that minimizes number of unsatisfied clausesRoom for improvementLess dramatic performance on structured problems (e.g. planning)Too greedy can become stuck in local minimaSolution: allow some “uphill” moves many different strategies possibleSimulated anne
4、alingTabu listsAlternate GSAT + random flipsRandom WalkGuess a random truth assignmentwhile (#unsat clauses 0)pick an unsat clauseflip any variable in the clause Suppose clauses are of length 2; what is probably a flip is “correct”?Solves 2-SAT in O(n2) time!Greediness + RandomnessIf clause length 2
5、, then pure random walk is very unlikely to convergeSuppose we random walk greedily?WalksatGuess a random truth assignmentwhile (#unsat clauses 0)pick an unsat clausewith probability p flip a variable that minimizes number of newly-unsatisfied clauses otherwise flip any variable in clause Walksat re
6、sultsBest known method for many problemsgraph coloring(certain) planning problemshard random problemsFor many (all?) other domains, can mix random walk & backtrack searchrun backtrack DPLL until time outrestart with new random seed for choosing branching variablesStochastic Backtrack SearchQuasigrou
7、p Completion DemoParallel local searchTechniques considered so far only look at one point on the search space at a timeEasy to run many copies in parallel with different random seedsCalled portfolio approachOften gives super-linear speedup!Run time distributionsOften there is a great variability in
8、run time depending on random seedsAs parallel processes are added, probability of getting a “lucky” short run can increase quickly!Informed parallel searchCan we further improve performance by exchanging information between the parallel processes?Genetic algorithmsAnt colony algorithmsGenetic algori
9、thmsIdea: the genetic code of an individual is a point in the search spacea gene = a dimension in the search spaceReproduction = local movesAsexual reproduction (mutation) = create a child by a small change in the parentSexual reproduction = create a child by mixing genes of two parentsThe GA Cycle
10、of Reproductionreproductionpopulationevaluationmodificationdiscarddeleted membersparentschildrenmodifiedchildrenevaluated childrenA Simple ExampleThe Traveling Salesman Problem:Find a tour of a given set of cities so that each city is visited only oncethe total distance traveled is minimizedRepresen
11、tationRepresentation is an ordered list of citynumbers known as an order-based GA.1) London 3) Dunedin 5) Beijing 7) Tokyo2) Venice 4) Singapore 6) Phoenix 8) VictoriaCityList1 (3 5 7 2 1 6 4 8)CityList2 (2 5 7 6 8 1 3 4)CrossoverCrossover combines inversion andrecombination: * *Parent1 (3 5 7 2 1 6
12、 4 8)Parent2 (2 5 7 6 8 1 3 4)Child (5 8 7 2 1 6 3 4)This operator is called the Order1 crossover.Mutation involves reordering of the list: * *Before: (5 8 7 2 1 6 3 4)After: (5 8 6 2 1 7 3 4)MutationTSP GA Demo TSP Example: 30 CitiesSolution i (Distance = 941)Solution j(Distance = 800)Solution k(Di
13、stance = 652)Best Solution (Distance = 420)Overview of PerformancePractical ApplicationsDesign of small sorting circuitsOptimization of code fragmentsUsed in Windows kernel?Training neural networksCan outperform backpropAirport scheduling(Generally) unanswered questions:Would other local search tech
14、niques work just as well?Is crossover really key?Ant colony optimizationIdea: Each ant in a colony is local search processAnts (processes) communicate by laying down phenoromes at visited states (“this place looked good to me”)When deciding where to move, ants prefer (with some probability) to follo
15、w trail left by other antsPhenorome eventually “evaporates”Real antsWhy might it work?More “intelligent” noiseAnt B t10Ant A t3gradientgradientnot gradient, but a good alternativeBeyond phenomeronesCombine local gradients to get more global viewAnt B t10Ant A t10gradientgradientmove by weighted sum
16、of Bs own gradient and As gradientDoes it work?Many successful applications in engineering & scienceAppears to outperform single-thread local search procedures for quadratic programmingMore work needed to determine exactly why metaphor works when it does!SummaryLocal search is an important tool for
17、large, complex optimization and decision problemsIdeas: Iterative repairNoise to escape local optimaMuch work on parallel local searchPortfoliosGenetic algorithmsAnt colony optimizationSo.End of the course.Is that all there is?Where was the artificial intelligence?! In my viewAI is the study of gene
18、ral problem-solving strategies“Meta” algorithms 101Life: one damned problem after anotherStrategies evolve at many levelsGenetic “real” evolutionIndividual human logical thinkingSociety spread of innovation UnityA relatively small number of conceptsvarious state-space search strategiessyntactic structure (both formal logic & natural language)learning strategies minimizing entropy, error, complexityarise over and over again in
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2023八年级数学上册 第2章 三角形2.5 全等三角形第5课时 SSS说课稿 (新版)湘教版
- 2024年九年级语文上册 第五单元 第17课《草房子》说课稿 鄂教版
- 25《慢性子裁缝和急性子顾客》(说课稿)-2023-2024学年统编版语文三年级下册
- 2024-2025学年高中物理 第一章 电磁感应 4 楞次定律说课稿 教科版选修3-2
- 2025深圳市途安汽车租赁有限公司租赁合同
- 2025地区代理合同样式详细版
- 2024年四年级英语下册 Unit 5 What will you do this weekend Lesson 27说课稿 人教精通版(三起)
- 2023八年级生物下册 第七单元 生物圈中生命的延续和发展第一章 生物的生殖和发育第2节 昆虫的生殖和发育说课稿 (新版)新人教版
- 个人消防安装合同范例
- 俄罗斯电梯采购合同范例
- 胎儿性别鉴定报告模板
- 大学生就业指导PPT(第2版)全套完整教学课件
- 家具安装工培训教案优质资料
- 湖南大一型抽水蓄能电站施工及质量创优汇报
- 耳穴疗法治疗失眠
- 少儿财商教育少儿篇
- GB 1886.114-2015食品安全国家标准食品添加剂紫胶(又名虫胶)
- 初二上册期末数学试卷含答案
- envi二次开发素材包-idl培训
- 2022年上海市初中语文课程终结性评价指南
- 西门子starter软件简易使用手册
评论
0/150
提交评论