1.

In which case adjacency list is preferred in front of an adjacency matrix?(a) Dense graph(b) Sparse graph(c) Adjacency list is always preferred(d) Complete graphThis interesting question is from Adjacency List in division Graph of Data Structures & Algorithms IThe question was asked in class test.

Answer»

Right answer is (B) Sparse graph

Easy explanation - In case of sparse graph most of the ENTRIES in the ADJACENCY matrix would be 0, HENCE adjacency LIST would be preferred.



Discussion

No Comment Found

Related InterviewSolutions