adplus-dvertising
frame-decoration

Question

Which of the following is an advantage of adjacency list representation over adjacency matrix representation of a graph?

a.

In adjacency list representation, space is saved for sparse graphs.

b.

DFS and BSF can be done in O(V + E) time for adjacency list representation. These operations take O(V²) time in adjacency matrix representation. Here is V and E are number of vertices and edges respectively.

c.

Adding a vertex in adjacency list representation is easier than adjacency matrix representation.

d.

All of the above

Answer: (d).All of the above

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is an advantage of adjacency list representation over adjacency matrix representation of a graph?

Similar Questions

Discover Related MCQs

Q. In BFS, how many times a node is visited?

Q. Regarding implementation of Breadth First Search using queues, what is the maximum distance between two nodes present in the queue? (considering each edge length 1)

Q. When the Breadth First Search of a graph is unique?

Q. What can be the applications of Breadth First Search?

Q. A person wants to visit some places. He starts from a vertex and then wants to visit every place connected to this vertex and so on. What algorithm he should use?

Q. The Breadth First Search traversal of a graph will result into?

Q. Time Complexity of Breadth First Search is? (V – number of vertices, E – number of edges)

Q. Breadth First Search is equivalent to which of the traversal in the Binary Trees?

Q. In Depth First Search, how many times a node is visited?

Q. Regarding implementation of Depth First Search using stacks, what is the maximum distance between two nodes present in the stack? (considering each edge length 1)

Q. When the Depth First Search of a graph is unique?

Q. What can be the applications of Depth First Search?

Q. A person wants to visit some places. He starts from a vertex and then wants to visit every vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex. What algorithm he should use?

Q. The Depth First Search traversal of a graph will result into?

Q. The Data structure used in standard implementation of Breadth First Search is?

Q. Time Complexity of DFS is? (V – number of vertices, E – number of edges)

Q. Depth First Search is equivalent to which of the traversal in the Binary Trees?

Q. Which of the following logical operation can be implemented by polynomial time graph manipulation algorithms using Binary Decision Diagrams?

Q. The And Inverter Graph representation of a Boolean function is more efficient than the Binary Decision Diagram.

Q. And Inverter Graph is a type of __________