Given the unoriented graph below, indicate the correct distances from node 1 to each node different from 1, in the numerical ascending order of nodes. Tip: you may use the BFS algorithm.
- 1, 2, 2, 3, 4, 4, 4
- 1, 2, 2, 4, 4, 4, 4
- 1, 1, 2, 2, 3, 3, 3
- 2, 2, 3, 3, 3, 4, 4
- None of the above.
Original idea by: André Nóbrega
No comments:
Post a Comment