Up to four searches of aima-python go from Arad to Bucharest on the road map of Romania of the book, side by side: breadth-first, uniform cost, greedy best-first and A* with the straight-line distance (RBFS can be chosen in place of one of them). A city rises when the search expands it and turns gold when it is on the path found, so that one sees breadth-first search spread over the map, uniform cost grow by distance, the greedy search run straight to the goal along a path that is not the shortest, and A* expand only the cities whose f stays under the cost of the optimal path; the traces were recorded by running the code of aima-python with its functions wrapped.
Fino a quattro ricerche di aima-python vanno da Arad a Bucarest sulla mappa stradale della Romania del libro, affiancate: in ampiezza, a costo uniforme, best-first greedy e A* con la distanza in linea d'aria (RBFS si può scegliere al posto di una di esse). Una città si alza quando la ricerca la espande e diventa oro quando è sul cammino trovato, quindi si vede la ricerca in ampiezza allargarsi sulla mappa, quella a costo uniforme crescere per distanza, la greedy correre verso l'obiettivo lungo un cammino che non è il più corto, e A* espandere solo le città la cui f resta sotto il costo del cammino ottimo; le tracce sono state registrate eseguendo il codice di aima-python con le sue funzioni avvolte.