Question 8
Let M be an adjacency matrix of a graph G given below, where M[i][j] = 1 if there is an edge from i to j, otherwise 0. Study the given pseudocode and answer the given subquestions.
What will be the values of A and B at the end of execution of pseudocode given below?
A = 1, B = 1
A = 1, B = 0
A = 0, B = 1
A = 0, B = 0