Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Friday, January 24, 2020

The data structure useful for the breadth first search of a

The data structure useful for the breadth first search of a graph is
Astack
Bqueue
Clinked list
Ddequeue

Answer: queue

Explanation:

BFS starts visiting vertices of a graph at an arbitrary vertex by marking it as
visited.
• It visits graph’s vertices by across to all the neighbors of the last visited vertex
• Instead of a stack, BFS uses a queue

Akilesh Kharvi
answered Dec 8 '2016 at 22:11

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories