版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年大学(工程造价)工程管理模拟真题及解析
- 2025年大学大二(文物与博物馆学)文物学概论试题及答案
- 2026年职业知识(知识考核)考题及答案
- 2026年注册公用设备工程师(动力基础考试上)试题及答案
- 2025年大学第三学年(高分子材料与工程)高分子合成技术阶段测试试题及答案
- 火电厂热工自动化
- 深度解析(2026)《GBT 18286-2000信息技术 文本通信用控制功能》(2026年)深度解析
- 深度解析(2026)《GBT 18017.2-1999订舱确认报文 第2部分订舱确认报文子集 订舱确认报文》
- 深度解析(2026)《GBT 17848-1999牺牲阳极电化学性能试验方法》
- 深度解析(2026)《GBT 17706-1999销售预测报文》
- 厂中厂安全管理规定
- 2026年中考英语复习必背新课标1600个词汇表(音序版带音标)
- 一年级看图说话全集教案
- T-ZZB 2956-2022 充气床垫用及类似用途离心式电动充气泵
- 天车安全教育培训课件
- 2026届广东省佛山市南海区桂城街道七年级数学第一学期期末达标检测试题含解析
- 2025年卫生院基本公共卫生服务宣传方案
- 2025年合肥轨道招聘笔试题库
- 风电场冬季安全培训课件
- 2025年武汉东西湖分局招聘警务辅助人员招聘73人考试参考试题及答案解析
- DB32-T 5181-2025 装配式混凝土结构减震隔震技术规程
评论
0/150
提交评论