1 / 42

INC 551 Artificial Intelligence

INC 551 Artificial Intelligence. Lecture 3. Search technique. Uninformed search Breadth first Uniform cost search Depth first Depth-limit search Bidirectional search Informed search Greedy best-first A* search. Depth-limited Search.

mriley
Download Presentation

INC 551 Artificial Intelligence

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INC 551 Artificial Intelligence Lecture 3

  2. Search technique • Uninformed search • Breadth first • Uniform cost search • Depth first • Depth-limit search • Bidirectional search • Informed search • Greedy best-first • A* search

  3. Depth-limited Search Depth-first ที่มีการกำหนด depth มากสุดในการ search

  4. Characteristicof Depth-limit search Complete – no Search Time – มาก Space – น้อย (linear space) Optimal – no

  5. Iterative Deepening Depth-first Search มีการกำหนด depth มากสุดซึ่งจะทำซ้ำโดยเพิ่ม depth ขึ้นเรื่อยๆ ถ้ายังไม่ถึง goal

  6. Characteristic ของ Iterative Deepening Depth-first search Complete – yes Search Time – มาก Space – น้อย (linear space) Optimal – no(yes ถ้า path cost = 1 ทุกอัน)

  7. Real Number:Iterative Deepening Depth-first search Depth-first B=10, d=5 1+10+100+1,000+..+100,000=111,111 Iterative Deepening Depth-first B=10, d=5 6+50+400+3,000+..+100,000=123,456

  8. Search technique • Uninformed search • Breadth first • Uniform cost search • Depth first • Depth-limit search • Bidirectional search • Informed search • Greedy best-first • A* search

  9. Bidirectional Search จะ search จากทั้ง start และ goal เพื่อลดจำนวน state จาก bdเป็น bd/2+ bd/2

  10. Expand ทั้ง start และ goal จนมาชนกัน

  11. Water Jug Puzzle 11 , 9 , 0 10 , 10 , 0

  12. Search Strategies • Data Driven Search • (Start from the origin and work forward) • Goal Driven Search • (Start from the goal and work backward)

  13. Search technique • Uninformed search • Breadth first • Uniform cost search • Depth first • Depth-limit search • Bidirectional search • Informed search • Greedy best-first • A* search

  14. Informed?? ด้วยข้อมูลอะไร? ข้อมูลนี้เรียก “heuristic” Heuristic คือ แนวทางในการแก้ปัญหาซึ่งมาจาก ความฉลาดและประสบการณ์ของมนุษย์ Heuristic function h(n) Take input = state ใดๆ output = คะแนนบอกว่า state นั้นดีแค่ไหน

  15. คุณสมบัติของ Heuristic • มาจากความฉลาดของมนุษย์ในการแก้ปัญหาใดๆ • ขึ้นกับปัญหานั้นๆ / มีได้หลายแบบ • อาจผิดหรือถูกก็ได้

  16. Example Heuristic ใน navigation problems ส่วนมากจะใช้ “Euclidian distance to goal” a Goal b Start c

  17. Heuristic ไม่จำเป็นต้องดี/ถูกเสมอไป ทางขาด a Goal b Start c

  18. Search technique • Uninformed search • Breadth first • Uniform cost search • Depth first • Depth-limit search • Bidirectional search • Informed search • Greedy best-first • A* search

  19. Greedy Best-first Search จะ expand node ที่มีค่า heuristic มากที่สุด (node ที่ใกล้ goal ที่สุดใน navigation problem) f(n) = h(n)

  20. Example Start Goal

  21. Straight-line Distance

  22. CharacteristicofGreedy Best-first Search Complete – no Search Time – depend on heuristics Space – depend on heuristics Optimal – no

  23. Search technique • Uninformed search • Breadth first • Uniform cost search • Depth first • Depth-limit search • Bidirectional search • Informed search • Greedy best-first • A* search

  24. A* search Idea: avoid expanding the nodes that are already expensive f(n) = g(n)+h(n) f(n) = evaluation function decide which node to expand g(n) = cumulative cost h(n) = heuristic Note: A* is optimal

  25. A* Termination Criterion Stop when A* chooses to expand the goal node. (different from others where the search ends when goal node is found)

  26. Characteristicof A* search Complete – yes Search Time – depend on heuristics Space – depend on heuristics Optimal – yes

  27. Proof of Optimality

  28. Different Heuristics on A* H1 = จำนวนชิ้นที่อยู่ผิดตำแหน่ง H2 = ผลรวม Manhattan distance ของตำแหน่งปัจจุบันถึงตำแหน่งที่ต้องการของแต่ละชิ้น

  29. Depth=14 IDS = 3473941 nodes A*(h1) = 539 nodes A*(h2) = 113 nodes Depth=24 IDS = ?? A*(h1) = 39135 nodes A*(h2) = 1641 nodes เรียก h2 dominates h1

More Related