Dijkstra and Shortest Path Algorithms - Implementations in Python - Applications

Download Q&A
Q. How does Dijkstra's algorithm update the tentative distances of neighboring nodes?
  • A. By adding the edge weights to the current node's distance
  • B. By multiplying the edge weights with the current node's distance
  • C. By subtracting the edge weights from the current node's distance
  • D. By ignoring the edge weights
Q. What is the initial value assigned to the tentative distance of the source node in Dijkstra's algorithm?
  • A. Infinity
  • B. Zero
  • C. One
  • D. Negative infinity
Q. Which of the following is an application of Dijkstra's algorithm?
  • A. Finding the shortest route in GPS navigation
  • B. Sorting a list of numbers
  • C. Searching for an element in a binary search tree
  • D. Calculating the factorial of a number
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely