To implement Dijkstra's shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is-

To implement Dijkstra's shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is-

  1. a) Queue
  2. b) Stack
  3. c) Heap
  4. d) B-Tree

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 15 of 86.

More from this paper