500 likes | 590 Views
Breadth First Search. -. C. D. A. B. E. F. G. H. I. front. FIFO Queue. Breadth First Search. -. C. D. A. B. E. F. G. H. I. enqueue source node. A. front. FIFO Queue. Breadth First Search. -. C. D. A. B. E. F. G. H. I. dequeue next vertex. A. front.
E N D
Breadth First Search - C D A B E F G H I front FIFO Queue
Breadth First Search - C D A B E F G H I enqueue source node A front FIFO Queue
Breadth First Search - C D A B E F G H I dequeue next vertex A front FIFO Queue
Breadth First Search - C D A B E F G H I visit neighbors of A front FIFO Queue
Breadth First Search - C D A B E F G H I visit neighbors of A front FIFO Queue
Breadth First Search A - C D A B E F G H I B discovered B front FIFO Queue
Breadth First Search A - C D A B E F G H I visit neighbors of A B front FIFO Queue
Breadth First Search A - C D A B E F G H I A I discovered B I front FIFO Queue
Breadth First Search A - C D A B E F G H I A finished with A B I front FIFO Queue
Breadth First Search A - C D A B E F G H I A dequeue next vertex B I front FIFO Queue
Breadth First Search A - C D A B E F G H I A visit neighbors of B I front FIFO Queue
Breadth First Search A - C D A B E F G H I A visit neighbors of B I front FIFO Queue
Breadth First Search A - C D A B E F G H B I A F discovered I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A visit neighbors of B I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A A already discovered I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A finished with B I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A dequeue next vertex I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A visit neighbors of I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A visit neighbors of I F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A A already discovered F front FIFO Queue
Breadth First Search A - C D A B E F G H B I A visit neighbors of I F front FIFO Queue
Breadth First Search A - C D A B E F G H I B I A E discovered F E front FIFO Queue
Breadth First Search A - C D A B E F G H I B I A visit neighbors of I F E front FIFO Queue
Breadth First Search A - C D A B E F G H I B I A F already discovered F E front FIFO Queue
Breadth First Search A - C D A B E F G H I B I A I finished F E front FIFO Queue
Breadth First Search A - C D A B E F G H I B I A dequeue next vertex F E front FIFO Queue
Breadth First Search A - C D A B E F G H I B I A visit neighbors of F E front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A G discovered E G front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A F finished E G front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A dequeue next vertex E G front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A visit neighbors of E G front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A E finished G front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A dequeue next vertex G front FIFO Queue
Breadth First Search A - C D A B E F G H I B F I A visit neighbors of G front FIFO Queue
Breadth First Search G A - C D A B E F G H I B F I A C discovered C front FIFO Queue
Breadth First Search G A - C D A B E F G H I B F I A visit neighbors of G C front FIFO Queue
Breadth First Search G A - C D A B E F G H I B F G I A H discovered C H front FIFO Queue
Breadth First Search G A - C D A B E F G H I B F G I A G finished C H front FIFO Queue
Breadth First Search G A - C D A B E F G H I B F G I A dequeue next vertex C H front FIFO Queue
Breadth First Search G A - C D A B E F G H I B F G I A visit neighbors of C H front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A D discovered H D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A C finished H D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A get next vertex H D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A visit neighbors of H D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A finished H D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A dequeue next vertex D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A visit neighbors of D front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A D finished front FIFO Queue
Breadth First Search G A - C C D A B E F G H I B F G I A dequeue next vertex front FIFO Queue
G A - C C D A B E F G H I B F G I A Breadth First Search STOP front FIFO Queue