Search Header Logo

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

Authored by James Cole

Computers

11th Grade

Used 5+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?