1 votes 1 votes Which of the following is useful in traversing a given graph by breadth first search? Stack Set List Queue DS nielit2017oct-assistanta-it data-structures queue + – admin asked Apr 1, 2020 • edited Sep 30, 2020 by soujanyareddy13 admin 696 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes option D is correct. Queue is used in Breadth First Search Stack is used in Depth First Search. Vipin Tiwari answered Apr 2, 2020 Vipin Tiwari comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Answer is D QUEUE is for BFS STACK is for DFS Amey Nikam answered Apr 20, 2020 Amey Nikam comment Share Follow See all 0 reply Please log in or register to add a comment.