2075 2

CSC211 ยท 2075 ยท 10 marks

Discuss depth first and breadth first traversal of a graph with suitable example.

Discuss depth first and breadth first traversal of a graph with suitable example.[10]

Data Structures and AlgorithmsChapter 8: Trees and GraphsDefinition and Representation of Graphs, Graph Traversal, Mi

Graph traversal means visiting every vertex of a graph exactly once in a systematic manner. The two standard traversal techniques are: 1. Breadth First Search (BFS) 2. Depth First Search (DFS) --- BFS is one of the simplest methods of graph searching. A vertex is chosen arbitrarily as a root. All...