+1 vote
in Data Structures & Algorithms I by (88.2k points)
What would be the number of zeros in the adjacency matrix of the given graph?

(a) 10

(b) 6

(c) 16

(d) 0

My question is from Adjacency Matrix in section Graph of Data Structures & Algorithms I

The question was posed to me in an interview for job.

1 Answer

+1 vote
by (737k points)
selected by
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.