0 votes 0 votes there are multiple algorithm of DFS available and i cant figure out which one to follow for solving question asking for the nodes which aren’t pushed into the stack or the nodes which are pushed more than once, Tried to figure out from already asked question but still can’t get it, https://gateoverflow.in/98484/dfs-using-stack https://gateoverflow.in/161225/dfs-number-of-nodes-not-pushed-into-the-stack Algorithms depth-first-search algorithms graph-algorithms + – Shivam Kasat asked Dec 9, 2018 Shivam Kasat 442 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shivam Kasat commented Dec 9, 2018 reply Follow Share @srestha Mam! will you please help me out with this! 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Always use the standard algorithm which uses Stack until and unless mentioned the other way around. Na462 answered Dec 13, 2018 Na462 comment Share Follow See all 0 reply Please log in or register to add a comment.