sexta-feira, 6 de setembro de 2024

 Consider an undirected graph G=(V,E), where V={A,B,C,D,E,F} and the edges are E={(A,B),(A,C),(B,D),(C,D),(C,E),(D,F),(E,F)}. Starting from vertex A, which of the following sequences represents the correct order of vertex visits by the BFS? 


a) A,B,C,D,E,F

b) A,C,B,E,D,F

c)A,B,C,D,F,E

d)A,C,B,D,F,E

e) A,B,C,E,D,F


Original idea by Thalia Anastácia da Silva Araujo

Um comentário:

 Consider a simple, undirected graph  G with n vertices and  m edges. Let  d ( v ) denote the degree of vertex v in  G . The degree distr...