Questions on Dijkstra’s Algorithm

Questions:

  1. At most, how many times is the priority queue’s “push” method called?
    Answer
  2. At most, how many times is the priority queue’s “reduce_priority” method called?
    Answer
  3. If implemented with a heap, what is the big-O runtime of “push?”
    Answer
  4. If implemented with a heap, what is the big-O runtime of “reduce_priority?”
    Answer
  5. If we assume that these calls are all the work Dijkstra’s algorithm does, what is the overall runtime of Dijkstra’s algorithm?
    Answer