GATE CSE Dynamic Programming – 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 1 mark

What is the time complexity of the Floyd-Warshall all-pairs shortest paths algorithm for a graph with V vertices and E edges?

Answers for question 16

Question 17

MCQ · Single Correct 2 mark

In Floyd-Warshall algorithm, what does the matrix entry $d^{k}$[i, j] represent?

Answers for question 17

Question 18

MCQ · Single Correct 2 mark

How can Floyd-Warshall algorithm detect the presence of a NEGATIVE WEIGHT CYCLE in a directed graph?

Answers for question 18

Question 19

MCQ · Single Correct 1 mark

What is the main advantage of the Bellman-Ford algorithm over Dijkstra's algorithm for single-source shortest paths?

Answers for question 19

Question 20

MCQ · Single Correct 1 mark

What is the worst-case time complexity of Bellman-Ford algorithm on a graph with V vertices and E edges?

Answers for question 20
Scroll to Top