arad
play

Arad Neamt 366 Bucharest 0 87 Zerind 151 Craiova 160 75 - PowerPoint PPT Presentation

Straightline distance Oradea to Bucharest 71 Arad Neamt 366 Bucharest 0 87 Zerind 151 Craiova 160 75 Dobreta 242 Iasi Eforie Arad 161 140 92 Fagaras 178 Sibiu Fagaras 99 Giurgiu 77 118 Hirsova 151 Vaslui 80 Iasi


  1. Straight−line distance Oradea to Bucharest 71 Arad Neamt 366 Bucharest 0 87 Zerind 151 Craiova 160 75 Dobreta 242 Iasi Eforie Arad 161 140 92 Fagaras 178 Sibiu Fagaras 99 Giurgiu 77 118 Hirsova 151 Vaslui 80 Iasi 226 Rimnicu Vilcea Lugoj 244 Timisoara Mehadia 241 142 211 111 Neamt 234 Pitesti 97 Lugoj Oradea 380 70 98 Pitesti 98 Hirsova 85 146 Rimnicu Vilcea 101 193 Mehadia Urziceni Sibiu 86 253 75 138 Timisoara Bucharest 329 120 Urziceni Dobreta 80 90 Vaslui 199 Craiova Eforie Giurgiu Zerind 374

  2. Arad 366

  3. Arad Sibiu Timisoara Zerind 253 329 374

  4. Arad Sibiu Timisoara Zerind 329 374 Arad Fagaras Oradea Rimnicu Vilcea 366 176 380 193

  5. Arad Sibiu Timisoara Zerind 329 374 Arad Fagaras Oradea Rimnicu Vilcea 366 380 193 Sibiu Bucharest 253 0

  6. Arad 366=0+366

  7. Arad Sibiu Timisoara Zerind 393=140+253 447=118+329 449=75+374

  8. Arad Sibiu Timisoara Zerind 447=118+329 449=75+374 Arad Fagaras Oradea Rimnicu Vilcea 646=280+366 415=239+176 671=291+380 413=220+193

  9. Arad Sibiu Timisoara Zerind 447=118+329 449=75+374 Arad Fagaras Oradea Rimnicu Vilcea 646=280+366 415=239+176 671=291+380 Craiova Pitesti Sibiu 526=366+160 417=317+100 553=300+253

  10. Arad Sibiu Timisoara Zerind 447=118+329 449=75+374 Arad Fagaras Oradea Rimnicu Vilcea 646=280+366 671=291+380 Sibiu Bucharest Craiova Pitesti Sibiu 526=366+160 417=317+100 591=338+253 450=450+0 553=300+253

  11. Arad Sibiu Timisoara Zerind 447=118+329 449=75+374 Fagaras Arad Oradea Rimnicu Vilcea 646=280+366 671=291+380 Sibiu Bucharest Craiova Pitesti Sibiu 526=366+160 591=338+253 450=450+0 553=300+253 Bucharest Craiova Rimnicu Vilcea 418=418+0 615=455+160 607=414+193

  12. Start n G G 2

  13. Next: Example Up: l3 Previous: Optimality of A* IDA* Series of Depth-First Searches Like Iterative Deepening Search, except use A* cost threshold instead of depth threshold Ensures optimal solution queueing-fn is enqueue-at-front if f(child) threshold Threshold is h(root) for first pass Next threshold is f(min_child), where min_child is cutoff child with minimum f value This conservative increase ensures cannot look past optimal cost solution

  14. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  15. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  16. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  17. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  18. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  19. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  20. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  21. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  22. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  23. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  24. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  25. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  26. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  27. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  28. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  29. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  30. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  31. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  32. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  33. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  34. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  35. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  36. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  37. Next: Eight Puzzle Example Up: l3 Previous: IDA* Example Click mouse to advance to next frame.

  38. Next: RBFS Up: l3 Previous: Eight Puzzle Example Analysis Some redundant search, but small amount compared to work done on last iteration Dangerous if f values are very close If threshold = 21.1 and next value is 21.2, probably only include 1 new node each iteration Time: Space: SMA* search can be used to remember some nodes from one iteration to the next.

  39. n c(n,a,n’) h(n) n’ h(n’) G

  40. 5 7 2 4 1 2 3 5 6 4 5 6 8 3 1 7 8 Start State Goal State

  41. 5 7 2 4 1 2 3 5 6 4 5 6 8 3 1 7 8 Start State Goal State

Recommend


More recommend