1.

What is the maximum number of possible non zero values in an adjacency matrix of a simple graph with n vertices?(a) (n*(n-1))/2(b) (n*(n+1))/2(c) n*(n-1)(d) n*(n+1)Query is from Adjacency Matrix in section Graph of Data Structures & Algorithms II had been asked this question in examination.

Answer» CORRECT option is (C) n*(n-1)

For explanation: Out of n*n possible VALUES for a simple graph the DIAGONAL values will always be zero.


Discussion

No Comment Found

Related InterviewSolutions