@@ -13,9 +13,34 @@ a:hover{
1313
1414## Extra Info
1515
16- -----
1716
1817Geeks for Geeks Link: [ ** Astar Algorithm** ] [ G4GLink ]
1918
19+ [ G4GLink ] : https://www.geeksforgeeks.org/a-search-algorithm/
20+
21+
22+ ## Exercises/Exploration
23+
24+ For Graph 1 (or any other graph) what is the longest path (choice of
25+ start and end nodes) for which the algorithm makes no "mistakes", that
26+ is, every node removed from the priority queue is on the shortest path?
27+ What are the characteristics of such paths?
28+
29+ The background says if Euclidean distance is used for weights and
30+ Manhattan distance is used for the heuristic, it is not admissible
31+ (so the shortest path may not be the one returned) whereas for other
32+ combinations of Manhattan/Euclidean the heuristic is admissible (so the
33+ shortest will be returned). Use the default settings (Graph1, start node
34+ 5, end node 12) to explore this. Can you come up with other examples
35+ to illustrate this?
36+
37+ AIA uses integer approximations to Euclidean distances for convenience.
38+ There was a choice of rounding to the closest integer, rounding up
39+ (ceiling) or rounding down (floor). By picking different node positions,
40+ try to determine which of these alternatives is used. Why was that
41+ alternative used? Can you think of an example that would not work so
42+ well if a different alternative was used. Hint: consider a graph in the
43+ shape of a right-angled triangle with edge lengths 10, 10 and 10 root 2
44+ (around 14.142137) with nodes at the corners and several nodes along
45+ the hypotenuse.
2046
21- [ G4GLink ] : https://www.geeksforgeeks.org/a-search-algorithm/
0 commit comments