If A[x+3][y+5] represents an adjacency matrix, which of these could be the value of x and y.

Category: QuestionsIf A[x+3][y+5] represents an adjacency matrix, which of these could be the value of x and y.
Editor">Editor Staff asked 1 month ago

If A[x+3][y+5] represents an adjacency matrix, which of these could be the value of x and y.
 
(a) x=5, y=3
 
(b) x=3, y=5
 
(c) x=3, y=3
 
(d) x=5, y=5
 
The question is from Adjacency Matrix topic in chapter Graph of Data Structures & Algorithms I
 
I have been asked this question by my college director while I was bunking the class.

1 Answers
Editor">Editor Staff answered 1 month ago

Correct choice is (a) x=5, y=3
 
The best I can explain: All adjacency matrices are square matrices.