aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 5 - Algorithms | Computer Science(CS)
  • Suppose we run Dijkstra's single source shortest-path alg...
Multiple choice

Suppose we run Dijkstra's single source shortest-path algorithm on the following edge-weighted directed graph with vertex P as the source.

In what order do the nodes get included into the set of vertices ofr which the shortest path distances are finalized?

  1. P,Q,R,S,T,U

  2. P,Q,R,U,S,T

  3. P,Q,R,U,T,S

  4. P,Q,T,R,U,S

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Keep practicing — related questions

  • Dijkstra's single source shortest path algorithm when run from vertex a in the above graph, computes the co...
  • Dijkstra's single source shortest path algorithm when run from vertex a in the above graph, computes the co...
  • Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S...
  • Let G = (V,E) be an undirected graph with a subgraph G1 = (V1, E1). Weights are assigned to edges of G as f...
  • Let G = (V,E) be an undirected graph with a subgraph G1 = (V1, E1). Weights are assigned to edges of G as f...
  • To implement Dijkstra's shortest path algorithm on un weighted graphs so that it runs in linear time, the d...
  • To implement Dijkstra's shortest path algorithm on un weighted graphs so that it runs in linear time, the d...
  • Let G (V,E) an undirected graph with positive edge weights. Dijkstra's single source-shortes path algorithm...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy