
157. OCR A Level (H446) SLR26 – 2.3 Dijkstra’s shortest path

Quiz
•
Computers
•
11th Grade
•
Medium

James Cole
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of Dijkstra's shortest path algorithm?
To perform a depth-first search on a graph
To identify negative weight cycles in a graph
To calculate the total weight of a graph
To find the shortest path between one node and all other nodes on a weighted graph
Answer explanation
Dijkstra's algorithm is used to find the shortest path between one node and all other nodes on a weighted graph.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which algorithm is considered a special case of the A* algorithm with no heuristics?
Depth-first search
Dijkstra's shortest path algorithm
Breadth-first search
Bellman-Ford algorithm
Answer explanation
Dijkstra's shortest path algorithm is considered a special case of the A* algorithm with no heuristics.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a limitation of Dijkstra's shortest path algorithm?
It cannot find the shortest path in unweighted graphs
It doesn't work for edges with a negative weight value
It requires the graph to be acyclic
It can only find the shortest path to adjacent nodes
Answer explanation
Dijkstra's algorithm cannot handle negative edge weights, making it unsuitable for graphs with negative weight values.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For what problem did Dijkstra develop his algorithm?
To find the shortest route of travel between Rotterdam and Groningen
To improve efficiency in sorting algorithms
To optimize database search queries
To solve the traveling salesman problem
Answer explanation
Dijkstra developed his algorithm to find the shortest route of travel between Rotterdam and Groningen.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure can be used to implement Dijkstra's shortest path algorithm?
Table or array
Queue
Stack
Binary tree
Answer explanation
Table or array is the correct choice as it allows for efficient storage and retrieval of distances in Dijkstra's algorithm.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What initial value is set for each node's distance from the start in Dijkstra's algorithm?
Zero
The weight of the edge connecting it to the start node
Infinity
One
Answer explanation
In Dijkstra's algorithm, each node's distance from the start is initially set to Infinity until it is updated during the algorithm execution.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the algorithm do when it finds a shorter path to a node?
It restarts the algorithm from the current node
It discards the new path as irrelevant
It updates the node's distance and marks it as visited
It updates the node's distance from the start to the newly calculated distance
Answer explanation
When the algorithm finds a shorter path to a node, it updates the node's distance from the start to the newly calculated distance.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Networks - topologies, lan, wan - year 11

Quiz
•
10th - 11th Grade
15 questions
Sorting Algorithms Quiz

Quiz
•
11th Grade
17 questions
ITF Networking Vocabulary

Quiz
•
7th - 12th Grade
18 questions
Linked List

Quiz
•
KG - University
20 questions
Computer Science Challenge

Quiz
•
11th Grade
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
15 questions
147. OCR A Level (H046-H446) SLR25 – 2.3 Standard algorithms

Quiz
•
11th Grade
20 questions
A-level Binary Trees (video)

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade