Tag: Breadth-First Search

With your own example explain breadth first traversal technique, and analyze its complexity

Breadth First Search (BFS) Breadth-first-search is a graph search algorithm that begins at the root node (or arbitrarily selected vertex in graph) and explores all the neighboring nodes. Then for each of those nearest nodes it explores their unexplored neighbo...

Read More

Tagged As: , , , ,

Draw a graph and illustrate how depth-first search and breadth-first search differ

This was the first question in Computer Officer Examination in 2010 conducted by Public Service Commission (Lok Sewa Aayog). This question is from the section ‘Data Structures and Algorithms’. The question carries 10 marks. Answer Breadth-first search (BFS...

Read More

Tagged As: , , , , , , , , ,

  • Review this blog on Bloggers.com