wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Shortest Path Algorithms and AI

Total questions: 13

Worksheet time: 8mins

Name
Class
Date
1.

Using the figure above, what is the shortest path of D for the Dijkstra algorithm? (imagine that this map is to scale)

a)

C

b)

E

2.

Using Dijkstra Algorithm, that is the shortest path of C?

a)

A

b)

B

c)

E

d)

D

3.

Using Dijkstra Algorithm, that is the shortest path of C?

a)

A

b)

B

c)

E

d)

D

4.

Select all correct applications of a shortest-path algorithm

a)

Navigation

b)

NPC control in gaming

c)

Sending data packets

d)

Buying Crypto

e)

Targeted advertising

5.

Optimisation algorithms are designed to find the (a)   path from a start node to any other node

6.

Starting at node S, what is the minimum cost to reach node G?

a)

S-A-B-F-G

b)

S-A-B-C-G

c)

S-A-B-C-H-G

d)

S-A-B-C-E-H-G

7.

Starting at node S, what is the value of the shortest path to node G?

(a)  

8.

Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijstra?s shortest path algorithm? Assume that, in any iteration, the shortest path to a vertex v is updated only when a strictly shorter path to v is discovered.

a)

SDT

b)

SBDT

c)

SACDT

d)

SACET

9.

Dijkstra’s single source shortest path algorithm when run from vertex a in the below graph, computes the correct shortest path distance to

a)

only vertex a

b)

only vertices a,e,f,g,h

c)

only vertices a,b,c,d

d)

all the vertices

10.

What is the Dijkstra's algorithm cost for traveling from A to C

(a)  

11.

How do you spell this guy's surname (no Googling!)

(a)  

12.

5. What kind of datasets are primarily used by neural networks for solving problems?

a)

Mentioned

b)

Visual

c)

Continuous

d)

Large

13.

7. In machine learning classification, you teach the machine to perform with what kind of data?

a)

Labelled

b)

Large

c)

Complex

d)

Continuous