1.

What would be the number of zeros in the adjacency matrix of the given graph?(a) 10(b) 6(c) 16(d) 0My question is from Adjacency Matrix in section Graph of Data Structures & Algorithms IThe question was posed to me in an interview for job.

Answer»

Correct choice is (b) 6

The best I can explain: Total number of values in the MATRIX is 4*4=16, out of which 6 ENTRIES are NON zero.



Discussion

No Comment Found

Related InterviewSolutions