Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged dijkstras-algorithm
1
1 vote
1
1 answer
120
120 views
GO Classes DPP | GATE CS, DA | Algorithms | Dijkstra's Algorithm
Consider Dijkstra's algorithm on a graph having $V$ vertices and $E$ edges.Suppose an indexed priority queue is not used.Instead, the tentative distances are stored only ...
GO Classes
120
views
asked
Aug 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-261
goclasses-cs-dpp
goclasses-cs-dpp-day-359
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
time-complexity
dijkstras-algorithm
+
–
0
0 votes
1
1 answer
118
118 views
GO Classes DPP | GATE CS, DA | Algorithms | Dijkstra's Algorithm
Let $G=(V,E)$ be a directed graph with positive edge weights.Given vertices $s,w,t$ we want the length of the shortest path from $s$ to $t$ that must pass through $w$.Con...
GO Classes
118
views
asked
Aug 26
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-260
goclasses-cs-dpp
goclasses-cs-dpp-day-358
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dijkstras-algorithm
+
–
2
2 votes
1
1 answer
101
101 views
GO Classes DPP | GATE CS, DA | Algorithms | Floyd-Warshall
What is the primary reason to use Floyd's algorithm for the all-pairs shortest-path problem instead of Dijkstra's algorithm?Faster for dense graphs. Faster for sparse gra...
GO Classes
101
views
asked
Aug 26
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-260
goclasses-cs-dpp
goclasses-cs-dpp-day-358
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
floyd-warshall-algorithm
dijkstras-algorithm
+
–
1
1 vote
1
1 answer
137
137 views
GO Classes DPP | GATE CS, DA | Algorithms | Dijkstra's Algorithm
Let $G$ be a directed graph with nonnegative edge weights.Run Dijkstra's algorithm from source $s$. After the algorithm terminates, use the $\text{prev}$ pointers to cons...
GO Classes
137
views
asked
Aug 26
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-259
goclasses-cs-dpp
goclasses-cs-dpp-day-357
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
hashing
dijkstras-algorithm
+
–
0
0 votes
1
1 answer
77
77 views
GO Classes DPP | GATE CS, DA | Algorithms | Dijkstra's Algorithm
Suppose every edge weight of a graph is either:a positive integer, or exactly $-1$.Consider the statement:Dijkstra's algorithm will always compute the correct shortest-pa...
GO Classes
77
views
asked
Aug 25
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-258
goclasses-cs-dpp
goclasses-cs-dpp-day-356
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dijkstras-algorithm
+
–
3
3 votes
1
1 answer
163
163 views
GO Classes DPP | GATE CS, DA | Algorithms | Dijkstra's Algorithm
Consider the following code executed while processing vertex $v$:for each edge e in G.adj(v): w = e.to() if dist[w] dist[v] + e.weight(): dist[w] = dist[v] + e.weight() ...
GO Classes
163
views
asked
Aug 24
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-257
goclasses-cs-dpp
goclasses-cs-dpp-day-355
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dijkstras-algorithm
+
–
1
1 vote
1
1 answer
92
92 views
GO Classes DPP | GATE CS, DA | Algorithms | Distance vs Topological Order
Let $G=(V,E)$ be a dag, where each edge is annotated with some positive length. Let $s$ be a source vertex in $G$.Suppose we run Dijkstra's algorithm to compute the dista...
GO Classes
92
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
topological-ordering
distance-order
dijkstras-algorithm
+
–
0
0 votes
2
2 answers
945
945 views
Dijkstra’s algorithm on directed graph with negative edges – expected output?
Vishal_Huneria
945
views
asked
Dec 28, 2025
Algorithms
dijkstras-algorithm
shortest-path
graph-algorithms
algorithms
time-complexity
+
–
1
1 vote
3
3 answers
574
574 views
UGC NET CSE | June 2025 | Part 2 | Question: 66
Which of the following algorithms use Greedy strategy?Dijkstra's algorithmKruskal's algorithmHuffman codingBellman-Ford algorithmChoose the correct answer from the option...
Shubham Sharma 2
574
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-june2025
greedy-algorithms
algorithm-design
dijkstras-algorithm
kruskals-algorithm
huffman-code
bellman-ford
+
–
0
0 votes
1
1 answer
468
468 views
Dijkstra Algorithm
What is the Time Complexity of the Dijkstra when it is using Adjacency list + Array (sorted or unsorted ) ? If it is O( V^2 + E ) then ,According to the General form of A...
Neeraj_patel
468
views
asked
Nov 14, 2024
Algorithms
algorithms
dijkstras-algorithm
time-complexity
+
–
0
0 votes
2
2 answers
174
174 views
GO Classes Test Series | Data Structures and Algorithms | Basic graph algorithms: traversals and Shortest path | Question: 4
Consider the below weighted graph where weight of the edge $e$ is written as $w(e).$If we run Dijkstra's algorithm with $s=0$, in which order will the vertices be deleted...
GO Classes
174
views
asked
Oct 16, 2024
Algorithms
goclasses_da_dsa_tw6
goclasses
algorithms
dijkstras-algorithm
one-mark
+
–
0
0 votes
1
1 answer
232
232 views
GO Classes Test Series | Data Structures and Algorithms | Basic graph algorithms: traversals and Shortest path | Question: 8
Consider the following directed, weighted graph:Even though the graph has negative weight edges, we use Dijkstra’s algorithm to calculate supposedly shortest paths from A...
GO Classes
232
views
asked
Oct 16, 2024
Algorithms
goclasses_da_dsa_tw6
goclasses
algorithms
dijkstras-algorithm
two-marks
multiple-selects
+
–
0
0 votes
0
0 answers
377
377 views
Made easy test series
KrishnaVardhan
377
views
asked
Oct 6, 2024
Algorithms
algorithms
dijkstras-algorithm
made-easy-test-series
numerical-answers
+
–
3
3 votes
1
1 answer
2.3k
2.3k views
ISRO CSE 2023 | Question: 20
Match the following:(A) Floyd Warshall(i) shortest path between two vertices(B) Dijkstra(ii) single source shortest path(C) Kruskal's(iii) Minimum spanning tree(D) Bellma...
admin
2.3k
views
asked
Sep 28, 2024
Algorithms
isro-cse-2023
minimum-spanning-tree
dijkstras-algorithm
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
Consider the following strategy to convert an undirected graph with negative edge weights to one that does not have negative edge weights. Let the maximum magnitude negative edge weight in the graph be -k. Then, for each edge in the graph with weight w, update the weight to w+k+1. Consider the following claim: To solve the shortest path problem in the original graph, we can run Dijkstra's algorithm on the modified graph and subtract the added weights to get the original distances. Which of the following is not correct. The claim is not true in general. The claim is not true in general for graphs with cycles. The claim is true for connected acyclic graphs. The claim is true for all graphs.
sonalrawat
1.1k
views
asked
Aug 21, 2023
Algorithms
dijkstras-algorithm
shortest-path
+
–
0
0 votes
0
0 answers
480
480 views
UGCNET CSE December 2022: 72
Match $\text{List I}$ with $\text{List II}$$\text{List I}$$\text{List II}$$\text{A}$. Dijkstra's Algorithm$\text{I}$. Calculates path matrix$\text{B}$. Prim's Algorithm$\...
admin
480
views
asked
May 20, 2023
Others
ugcnetcse-dec2022
dijkstras-algorithm
prims-algorithm
warshall-algorithm
kruskals-algorithm
graph-algorithms
minimum-spanning-tree
+
–
Page:
1
2
3
4
5
next »