local search toolbox so far
play

Local Search Toolbox so far Uninformed search BFS, DFS, - PowerPoint PPT Presentation

Local Search Toolbox so far Uninformed search BFS, DFS, Itera;ve deepening DFS, Uniform cost search Heuris;c search A* Review Search:


  1. Local ¡Search ¡

  2. Toolbox ¡so ¡far ¡ • Uninformed ¡search ¡ – BFS, ¡DFS, ¡Itera;ve ¡deepening ¡DFS, ¡Uniform ¡cost ¡ search ¡ • Heuris;c ¡search ¡ – A* ¡

  3. Review ¡ • Search: ¡ – Use ¡in ¡environments ¡that ¡are ¡sta;c, ¡discrete, ¡ 100% ¡observable, ¡determinis;c. ¡ • Things ¡we ¡care ¡about: ¡ – Completeness, ¡op;mality, ¡;me/space ¡complexity. ¡

  4. New ¡Idea: ¡ Local ¡Search ¡ • Can ¡be ¡used ¡when ¡path ¡from ¡start ¡state ¡to ¡ goal ¡doesn't ¡maOer ¡(only ¡the ¡goal ¡maOers). ¡ • Process ¡is ¡slightly ¡different ¡than ¡"normal" ¡ search: ¡ – Nodes/states ¡are ¡always ¡complete ¡solu;ons ¡to ¡ the ¡problem, ¡not ¡par;al ¡solu;ons. ¡ – One ¡ current ¡node ¡ is ¡maintained ¡that ¡has ¡the ¡best ¡ solu;on ¡at ¡the ¡moment. ¡ – Ac+ons ¡generate ¡new ¡nodes ¡with ¡new ¡complete ¡ solu;ons. ¡

  5. Local ¡Search ¡ • Benefits: ¡ – Use ¡very ¡liOle ¡memory, ¡oWen ¡constant. ¡ – Can ¡search ¡very ¡large ¡state ¡spaces ¡quickly. ¡ • Useful ¡in ¡op;miza;on ¡problems. ¡

  6. State-­‑space ¡landscape ¡

  7. State-­‑space ¡landscape ¡ Graph ¡that ¡shows ¡the ¡values ¡of ¡the ¡heuris;c ¡ cost ¡func;on ¡or ¡objec;ve ¡func;on ¡in ¡terms ¡ of ¡the ¡search ¡space ¡of ¡possible ¡states. ¡

  8. Hill ¡climbing ¡algorithm ¡ • Loop ¡that ¡looks ¡at ¡all ¡possible ¡neighbors ¡of ¡the ¡current ¡ state, ¡and ¡picks ¡the ¡one ¡that ¡increases ¡the ¡op;miza;on ¡ func;on ¡the ¡most. ¡

  9. 18 12 14 13 13 12 14 14 14 16 13 15 12 14 12 16 14 12 18 13 15 12 14 14 15 14 14 13 16 13 16 14 17 15 14 16 16 17 16 18 15 15 18 14 15 15 14 16 14 14 13 17 12 14 12 18

  10. Variants ¡ • Stochas;c ¡hill ¡climbing ¡ • Random-­‑restart ¡hill ¡climbing ¡

  11. Simulated ¡annealing ¡

  12. Temperature ¡ gets ¡lower ¡ over ¡;me ¡ Probability ¡is ¡lower ¡ with ¡smaller ¡T, ¡ and ¡lower ¡with ¡ bigger ¡abs(delta-­‑E) ¡

  13. Beam ¡search ¡ • Varia;on ¡of ¡hill ¡climbing ¡ – Use ¡k ¡current ¡states ¡ – Generate ¡all ¡of ¡their ¡successors ¡ – Take ¡k ¡best ¡ • Varia;on: ¡stochas;c ¡beam ¡search ¡ – Adds ¡in ¡probabilis;c ¡idea ¡from ¡simulated ¡ annealing. ¡ – Same ¡as ¡above, ¡but ¡take ¡k ¡best ¡successors ¡based ¡ on ¡probability. ¡

  14. Gene;c ¡algorithms ¡ • Varia;on ¡on ¡stochas;c ¡beam ¡search. ¡ • Successor ¡states ¡are ¡generated ¡using ¡two ¡ parent ¡states, ¡not ¡one. ¡ ¡(Crossover) ¡ • Muta;on: ¡Randomly ¡modifies ¡a ¡current ¡state. ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend