AQA A Level · Computer Science 7517

最佳化演算法:練習題

5 條多項選擇題即時批改,另有 5 條文字題附完整解題步驟,全部圍繞「最佳化演算法」。

10 條題目26 免費,無需登記
第 1 題
1

A programmer uses Dijkstra's shortest path algorithm to find the quickest route between two nodes in a network. Which of the following best describes how the algorithm handles a vertex once it has been 'visited'?

第 2 題
1

A specific graph-traversal algorithm is used to find the shortest path between a starting node and all other nodes in a weighted graph with non-negative edge weights. During the execution, the algorithm maintains a set of unvisited nodes and assigns each a 'tentative distance' value. Which of the following best describes the update step when the algorithm processes an unvisited neighbor \(V\) from the current node \(U\)?

第 3 題
1

An algorithm must find the shortest path between two nodes in a weighted graph with only positive edge weights. Which algorithm is most appropriate, and what is the typical graph-traversal strategy it employs?

第 4 題
1

Dijkstra's algorithm is used to find the shortest path in a graph. What is a specific requirement for the edge weights in the standard version of this algorithm?

第 5 題
1

In the context of optimisation algorithms, why might a heuristic method be used instead of an exact algorithm like Dijkstra's?

第 6 題
2

Dijkstra's algorithm is a well-known optimisation algorithm. Describe the specific condition that must be met by the edge weights in a graph for the standard version of Dijkstra's algorithm to successfully find the shortest path.

先自己寫一次答案,再對照解題步驟。

第 7 題
3

Explain the significance of Dijkstra's algorithm being categorized as an optimisation algorithm and state the primary goal it achieves when applied to a weighted graph.

先自己寫一次答案,再對照解題步驟。

第 8 題
5

A student is tracing Dijkstra's algorithm on a graph with nodes A, B, and C. If the current shortest distance to B is 10 and an edge (A, B) with weight 4 is processed while A has a distance of 3, describe the update step performed by the algorithm.

先自己寫一次答案,再對照解題步驟。

第 9 題
5

A researcher is using Dijkstra's algorithm to find the shortest path in a weighted graph representing a local delivery network.

(a) Describe the data structures required to implement Dijkstra's algorithm efficiently.
(b) Explain why Dijkstra's algorithm may fail to find the correct shortest path if the graph contains edges with negative weights.

先自己寫一次答案,再對照解題步驟。

第 10 題
6

Dijkstra's shortest path algorithm is a key optimisation algorithm for weighted graphs.

(a) Outline the general steps involved in Dijkstra's algorithm, focusing on how 'tentative distances' are updated.

(b) Explain the importance of using a priority queue (or similar data structure) to manage unvisited nodes to improve time complexity.

(c) Why does Dijkstra's algorithm require all edge weights to be non-negative? Explain what would happen if a negative edge weight were present.

先自己寫一次答案,再對照解題步驟。

* thinka提供的內容由AI生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。

你已看過標準答案,接下來輪到批改你的答案。

這一頁可以告訴你好答案的樣子,卻無法指出你的答案欠缺什麼。thinka 按真實評分準則批改你的文字答案,約 15 秒完成。

想多做幾條同類題目?立即開始練習呢個課題,即做即批改。

立即練習