Breadth-First Search (BFS) Posttest


Answer the multiple-choice questions below to test your understanding!


Multiple-Choice Questions:

  1. What is the primary purpose of Breadth-First Search (BFS)?





  2. Which data structure is commonly used to implement BFS?





  3. What is the time complexity of BFS for a graph with V vertices and E edges?





  4. In BFS, how are vertices visited?





  5. What type of graph can BFS be applied to?