1 votes 1 votes Which of the following algorithms can be used to most efficiently find whether a cycle is present in a given graph? Prim’s Minimum Spanning Tree Algorithm Breadth First Search Depth First Search Kruskal’s Minimum Spanning Tree Algorithm Algorithms nielit-sta-2020 algorithms graph-algorithms + – gatecse asked Dec 9, 2020 • recategorized Jul 5, 2022 by Lakshman Bhaiya gatecse 633 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Option C Reference:- https://stackoverflow.com/questions/2869647/why-dfs-and-not-bfs-for-finding-cycle-in-graphs Asim Siddiqui 4 answered Mar 16, 2021 Asim Siddiqui 4 comment Share Follow See all 2 Comments See all 2 2 Comments reply Rahulji commented Nov 14, 2023 reply Follow Share why not breadth first search is the answer 0 votes 0 votes ArturoGangwar commented Feb 15 reply Follow Share @Rahulji Because they asked for efficient algo. 0 votes 0 votes Please log in or register to add a comment.