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

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

11th Grade

15 Qs

quiz-placeholder

Similar activities

CP111 1st Online Live Quiz

CP111 1st Online Live Quiz

11th Grade

10 Qs

RO81 LO1 Mind maps and visualisations

RO81 LO1 Mind maps and visualisations

9th - 11th Grade

12 Qs

A-level Binary Trees (video)

A-level Binary Trees (video)

11th Grade

20 Qs

Data Structures

Data Structures

10th Grade - University

18 Qs

LO1- R081

LO1- R081

11th Grade

20 Qs

2.2.2 Computational methods

2.2.2 Computational methods

11th Grade

19 Qs

Data Structures - Trees

Data Structures - Trees

11th - 12th Grade

20 Qs

Revision - Communications & Networks

Revision - Communications & Networks

10th Grade - University

14 Qs

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

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

Assessment

Quiz

Computers

11th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?