Quiz Question - March 13, 2026

 Consider the following graph and the subsequent statements:


1. The link (g, a) is a back edge when starting DFS from node d (alphabetical order).

2. The link (ga) is a back edge when starting DFS from node a (alphabetical order).

3. The number of tree edges is the same when applying DFS from node a and from node d.

4. If we remove nodes h and i, the remaining graph will have a hamiltonian path.


The correct statements are:

a) 1, 3 and 4.

b) 1, 2 and 3.

c) 2, 3 and 4.

d) Just 1 and 4.

e) None of the above.


Original idea by: Rafael Brusiquesi Martins

Comentários

  1. Nice question, but we have many already, and this one mixes Hamiltonian paths with DFS. I'm not sure we covered Hamiltonian paths.

    ResponderExcluir

Postar um comentário

Postagens mais visitadas deste blog

Quiz Question - March 27, 2026

Quiz Question - March 6, 2026