GATE CSE Graphs & Graph Algorithms – Data Structures Practice Test | Set 1

Questions 21-25 of 100

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

Question 21

MCQ · Single Correct 1 mark

What is the time complexity of Prim's algorithm using a Binary Min-Heap for a graph with V vertices and E edges?

Answers for question 21

Question 22

MCQ · Single Correct 1 mark

Dijkstra's single-source shortest path algorithm fails or may produce incorrect results when the graph contains:

Answers for question 22

Question 23

MCQ · Single Correct 1 mark

Which algorithm can detect negative weight cycles in a directed weighted graph?

Answers for question 23

Question 24

MCQ · Single Correct 1 mark

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

Answers for question 24

Question 25

MCQ · Single Correct 1 mark

Which algorithm computes all-pairs shortest paths in a directed weighted graph using dynamic programming?

Answers for question 25
Scroll to Top