Question6 Tick all statements about graph representations that are correct.Select one or more alternatives: Given an adjacency-matrix representation of a graph, printing all the edges of the graph can always be achieved in [math] time, where [math] is the number of edges. For a complete graph, the storage cost for the array-of-edges representation is always [math], where [math] is the number of vertices. It is always the case that if a node [math] belongs to a clique of 5 nodes, then there are at least 5 elements in the adjacency list for [math] given an adjacency-list representation of the graph. Deleting all the edges incident on vertex [math] in a graph is achieved in [math] time in the array-of-edges representation, where [math] is the number of edges. ResetMaximum marks: 2 Flag question undefined多项选择题

A

Given an adjacency-matrix representation of a graph, printing all the edges of the graph can always be achieved in 𝑂 ( 𝐸 ) time, where 𝐸 is the number of edges.

B

For a complete graph, the storage cost for the array-of-edges representation is always 𝑂 ( 𝑉 2 ) , where  𝑉 is the number of vertices.

C

It is always the case that if a node 𝑣 belongs to a clique of 5 nodes, then there are at least 5 elements in the adjacency list for 𝑣 given an adjacency-list representation of the graph.

D

Deleting all the edges incident on vertex 𝑣 in a graph is achieved in 𝑂 ( 𝐸 ) time in the array-of-edges representation, where 𝐸 is the number of edges.

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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