Select all the following that are true:
We can apply BFS algorithm to the graph represented by the adjacency matrix
[[0,1,2,2],[1,0,2,4],[2,2,0,2],[2,4,2,0]] to constructa tree.
We can apply the Kruskal's algorithm to the graph represented by the
adjacency matrix [[0,1,2,2],[1,0,2,4],[2,2,0,2],[2,4,2,0]] to determine the maximum spanning
tree
We can apply DFS algorithm to the graph represented by the adjacency matrix
[[0,1,2,2],[1,0,2,4],[2,2,0,2],[2,4,2,0]] to constructa a tree.
We can apply Prim's algorithm to the graph represented by the adjacency matrix
[[0,1,2,2],[1,0,2,4],[2,2,0,2],[2,4,2,0]] to determine the minimum spanning tree.
Question 2 (1 point)
V Saved
Select all the following that are true:
We can apply BFS algorithm to the graph represented by the adjacency matrix 0 1 2 2 1 0 2 4 to construct a tree. 2 2 0 2 2 4 2 0]
VWe can apply the Kruskal's algorithm to the graph represented by the 1 2 2] 1 0 2 4 adjacency matrix to determine the maximum spanning 2 2 0 2
2 4 2 0
tree
We can apply DFS algorithm to the graph represented by the adjacency matrix 1 2 2
1 0 2 4 to construct a tree. 2 2 0 2 2 4 2
We can apply Prim's algorithm to the graph represented by the adjacency matrix 10 1 2 2]
1 0 2 4 to determine the minimum spanning tree. 2 2 0 2 [2 4 2 0