哪种图的表达方法不能表示空图? Which graph representation cannot represent an empty graph?单项选择题
A
邻接矩阵 Adjacent matrix
B
邻接表 Adjacent list
C
边列表 Edge list
D
这些都不是 None of these.
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
Which graph representation is more space-efficient for sparse graphs?
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
Tick all statements about graph representations that are correct.
Consider a graph G with 4 vertices and 5 edges.For each of the three graph representations in C from the lecture (array of edges, adjacency matrix, adjacency list), calculate the storage costs for G under the same assumptions as in Exercise 3b. For the array-of-edges representation, assume that memory for the maximum possible number of edges, i.e. V·(V-1)/2, is allocated.How do the representations compare?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!