Cho đồ thị như hình vẽ. Kết quả khi duyệt đồ thị theo thuật toán BFS(I) là:
Trả lời:
Đáp án đúng: A
The BFS algorithm explores the graph level by level. Starting from node I, it visits its neighbors A and B. Then, it visits the neighbors of A (E, C) and B (D). Next, it visits the neighbors of E (G), C (F), and D (H). Finally, it visits the neighbor of G (K). The correct traversal order is I, A, B, E, C, D, G, F, H, K. However, based on the provided options, none of them match this order. So no choice is correct.





