Which of the following is true about BFS traversal (from a given source) of an unweighted, connected and undirected graph?单项选择题
A
The paths found in the BFS traversal are the shortest paths from source to every other vertex
B
A recursive BFS traversal would perform better than the iterative BFS.
C
The BFS traversal find transitive closure of the graph
D
The sequences of vertices explored by BFS and DFS are always same
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
In a breadth-first search of an undirected graph G, starting at vertex v, which of the following is true when the vertex w is found in level i?
In a breadth-first search of an undirected graph G, starting at vertex v, which of the following is true?
A complete graph is one where every two vertices are connected with an edge. Suppose we run BFS on a complete graph G(V,E) starting from some vertex s in V . What would the BFS layers look like?
Given a graph-G that has |V| vertices and |E| edges, that is:Connected. Directed. Weighted What is the worst case time complexity to run Breadth-First Search (BFS), if G is implemented using adjacency list?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!