フリー問題

Neo4j Graph Data Science Certification のフリー問題 2 / 20 問目

問題文

A team plans to use the A* shortest path algorithm on their route graph. What does the implementation require of the data?

選択肢

  1. Node properties holding longitudes and latitudes, since the heuristic function is the haversine formula, and relationship weights that represent distance on the same scale.
  2. Nothing beyond positive relationship weights, since the heuristic is derived from the structure of the projected graph and the weights that it carries.
  3. A relationship property holding the estimated remaining cost for each relationship, which the algorithm combines with the distance already computed when it decides which node to continue the search from.
  4. A node property holding the exact distance to the target, so the heuristic can read it at each step of the search it performs.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。