MathJax


[MO412] Question 3

Given the following directed graphs, consider the Breadth-First Search (BFS) algorithm is used starting from node A and running until the queue is empty. Choose the alternative that correctly states the order in which the queue is built.

Consider that the neighbors of each node are lexicographically ordered.



    A.        i) A, B, C, D, E, F, G    ii) A, B, D, E, C, F, G

    B.        i) A, B, D, E, C, F, G    ii) A, B, C, D, E, F, G

    C.        i) A, B, C, D, F, E, G    ii) A, B, D, E, C, F, G

    D.        i) A, B, C, D, E, F, G    ii) A, B, D, C, E, F, G

    E. None of the above.


Original idea by: Vitor Antônio Pimenta Silva

Comentários

Postar um comentário

Postagens mais visitadas deste blog

[MO412] Question 1

[MO412] Question 4

[MO412] Question 2