版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 封神线下营销方案(3篇)
- 平江庙会活动策划方案(3篇)
- 宿舍宠物活动方案策划(3篇)
- 外企渠道营销方案(3篇)
- 传媒全网营销方案(3篇)
- 提升施工方案质量(3篇)
- 施工方案讨论意见(3篇)
- 杆变施工方案(3篇)
- 毛石砌体施工方案(3篇)
- 法庭观摩活动方案策划(3篇)
- 人民防空法深度解读
- 瑞幸咖啡副店长述职报告
- 2025年江苏事业单位招聘考试综合类专业能力测试试卷(法律类)全真
- 消除艾滋病、梅毒和乙肝母婴传播乡村医生培训会-课件
- 加装电梯现浇施工方案
- 三校生政治试卷真题及答案
- 2025至2030中国特殊反应堆行业项目调研及市场前景预测评估报告
- 分接箱土建基础施工方案
- 数据资产管理实践白皮书(2025版)
- 2025年北京市水务局所属事业单位招聘工作人员(179人)模拟试卷附答案详解
- 建筑弱电工程方案设计
评论
0/150
提交评论