(Quiz week 4, sep 8th) Consider the Network defined bellow.


Starting from node 0, perform the BFS Algorithm proceeding in increasing order (labels of the nodes) throught the network. Then, choose which of the queues bellow corresponds to the correct visiting order:
  1. (0 1  11 12 8 10 2 7 9 3 4 6 5)
  2. (0 1  11 12 8 10 2 3 5 4 6 7 9)
  3. (0 1  12 11 8 10 2 3 5 4 6 7 9)
  4. (0 1  11 12 8 10 2 3 4 5 6 7 9)
  5. None of the above.
Original idea by: Fábio Assunção.

Comments

  1. Interesting question, but what is increasing order through the network? We need more specific directions here. Also, I don't understand what the queue is supposed to mean. Visiting order? Increasing order of starting times? Increasing order of finishing times? I will have to pass.

    ReplyDelete

Post a Comment