1. Home
  2. Engineering
  3. Computer Engineering
  4. Which statement is correct? Dijkstra's algorithm

Added 28 Nov 2026

Which statement is correct? Dijkstra's algorithm

  1. Has a time complexity of O(log n) and needs a sorted array
  2. Finds the shortest paths from a source in a graph with non-negative weights Correct answer
  3. Allows easy insertion and deletion but has no direct access to elements
  4. Connects all vertices without forming a cycle

Correct answer

B. Finds the shortest paths from a source in a graph with non-negative weights

MCQSEXAM

Explanation

Dijkstra's algorithm finds the shortest paths from a source in a graph with non-negative weights.

Reference

Asked in: Engineering Computer Engineering Practice

https://en.wikipedia.org/wiki/Data_structure

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Engineering MCQs

Practise all Computer Engineering MCQs

Similar MCQs