Question 28
Consider the following graph with five nodes. A is the 5 × 5 adjacency matrix corresponding to this graph.
Consider the following graph with five nodes. A is the 5 × 5 adjacency matrix corresponding to this graph. Based on the above data, answer the given subquestions.
What will be the value of S after executing the given pseudocode?
S = [0, 4, 1, 3, 2]
S = [0, 2, 3, 1, 4]
S = [0, 2, 1, 4, 3]
S = [0, 2, 1, 3, 4]