+1 vote
in Data Structures & Algorithms I by (88.2k points)
Dijkstra’s Algorithm will work for both negative and positive weights?

(a) True

(b) False

The origin of the question is Directed Graph in division Graph of Data Structures & Algorithms I

The question was asked in examination.

1 Answer

+1 vote
by (737k points)
selected by
Best answer
Correct choice is (b) False

The explanation is: Dijkstra’s Algorithm assumes all weights to be non-negative.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.