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 matrix?单项选择题

题目图片
A

θ(1)

B

θ(|V|)

C

θ(|E|)

D

θ(|V|+|E|)

E

θ(|V|^2)

F

θ(|E|^2)

G

θ(|V| log |V|)

H

θ(|E| log |E|)

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!