
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
Test Formatif Informatika Kelas 11

Quiz
•
11th Grade
15 questions
Week 11 Networks and Routing

Quiz
•
10th Grade - Professi...
15 questions
Operating Systems Quiz 01

Quiz
•
11th Grade
10 questions
TOPOLOGI JARINGAN

Quiz
•
11th Grade
10 questions
Exploring Graphs and Their Properties

Quiz
•
11th Grade
20 questions
CS Paper 2 Quiz

Quiz
•
11th Grade
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
12 questions
Selection Sequence Iteration

Quiz
•
7th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade