Time Left - 10:00 mins

GATE CS 2018 - Algorithms Quiz 5 (Greedy Algorithms-1)

Attempt now to get your rank among 646 students!

Question 1


Dijkstra’s single source shortest path algorithm when run from vertex 'a' in the above graph, computes the correct shortest path distance to

Question 2

In an unweighted, undirected connected graph, the shortest path from a node S to every other node is computed most efficiently, in terms of time complexity, by

Question 3

Which of the following statement (s) is/are correct regarding Bellman-Ford shortest path algorithm?
P. Always finds a negative weighted cycle, if one exists.
Q. Finds whether any negative weighted cycle is reachable from the source.

Question 4

Let w be the minimum weight among all edge weights in an undirected connected graph. Let e be a specific edge of weight w. Which of the following is FALSE?

Question 5

Which among the following statements are incorrect in terms of Greedy approach?
  • 646 attempts
  • 4 upvotes
  • 11 comments
Mar 26GATE & PSU CS