第五部分 听力部分(另计约 2.5 分钟)

音频:听力Day021.mp3

🎧碎片·英语(問 1-2,同一段材料)

1.(听音·选择)Why did the two breadth-first searches produce different orders?

A. They started from different vertices.
B. Their adjacency lists stored neighbours in different orders.
C. One of them used a stack instead of a queue.
D. The graph had two connected components.

2.(听音·选择)According to the man, what must stay the same even when the orders differ?

A. The length of the queue.
B. The number of edges.
C. The connected components.
D. The depth of the recursion.


听力 · 本部分答案(共 2 题)
第 1 题

第 1 题 答案:B(英语)。男士点明“BFS visits neighbours in the order they are stored”,女士随后承认两人排序方式不同(一个按标号、一个按度),故次序不同的原因是邻接表存储顺序不同。

第 2 题

第 2 题 答案:C(英语)。男士末句“the connected components must still match”=连通分量必须一致。

听力文字稿(原文)

开场白:现在是每日英语碎片听力。本组两题同一段材料,材料播放前请先读题,播放后作答。

正式听力

🎧碎片·英语(問 1-2)

W: I ran breadth-first search on the component graph, but the order came out different from my teammate’s.
M: Did you both use the same adjacency list order? BFS visits neighbours in the order they are stored.
W: Ah, mine was sorted by label, his was sorted by degree.
M: Then the sequences differ, but the connected components must still match.

结束语:本组材料播放完毕,请核对答案。明日继续。

← 返回学习进阶