GATE CSE Greedy Algorithms – Algorithms Practice Test | Set 1

Questions 16-20 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 16

MCQ · Single Correct 2 mark

Suppose a connected weighted graph G has a unique edge e of minimum weight among all edges in G. Which statement is TRUE?

Answers for question 16

Question 17

MCQ · Single Correct 2 mark

If we add a constant positive value c to the weight of EVERY edge in a connected weighted graph G, how does the Minimum Spanning Tree (MST) change?

Answers for question 17

Question 18

MCQ · Single Correct 2 mark

If we SQUARE the weight of EVERY edge in a connected weighted graph G with all positive edge weights ($w_{i}$ > 1), what happens to its MST?

Answers for question 18

Question 19

MCQ · Single Correct 2 mark

Why can Dijkstra's algorithm fail on a weighted directed graph containing edges with NEGATIVE weights?

Answers for question 19

Question 20

MCQ · Single Correct 1 mark

What is the time complexity of Dijkstra's algorithm implemented with a Min-Heap priority queue on a graph with V vertices and E edges?

Answers for question 20
Scroll to Top