Dijkstra's and A* Pathfinding Quiz

Dijkstra's and A* Pathfinding Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Graph Traversal Algorithms Quiz

Graph Traversal Algorithms Quiz

12th Grade - University

13 Qs

CSP - Vocab Quiz JAN2023

CSP - Vocab Quiz JAN2023

9th - 12th Grade

14 Qs

Shortest Path Algorithms and AI

Shortest Path Algorithms and AI

12th Grade - University

19 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

18.1 Artificial Intelligence (AI) Cambridge iA 9618

18.1 Artificial Intelligence (AI) Cambridge iA 9618

12th Grade

20 Qs

Code.org - Unit 6 Review

Code.org - Unit 6 Review

9th - 12th Grade

15 Qs

Exploring Search Algorithms and Heuristics

Exploring Search Algorithms and Heuristics

12th Grade

15 Qs

ONE 6th FORM Dijkstra v A* Search

ONE 6th FORM Dijkstra v A* Search

12th Grade

20 Qs

Dijkstra's and A* Pathfinding Quiz

Dijkstra's and A* Pathfinding Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

L Fanning

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of Dijkstra's algorithm?

To find the longest path in a graph

To find the shortest path in a graph

To sort nodes in a graph

To detect cycles in a graph

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is commonly used to implement Dijkstra's algorithm efficiently?

Stack

Queue

Priority Queue

Linked List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Dijkstra's algorithm, what is the initial distance assigned to the starting node?

0

1

Infinity

-1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between Dijkstra's algorithm and A* algorithm?

Dijkstra's uses a heuristic, A* does not

A* uses a heuristic, Dijkstra's does not

Dijkstra's is used for undirected graphs, A* for directed graphs

A* is used for undirected graphs, Dijkstra's for directed graphs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a common heuristic used in the A* algorithm?

Manhattan distance

Euclidean distance

Both A and B

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of Dijkstra's algorithm when implemented with a priority queue?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The total cost from the start node to the goal

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?

Discover more resources for Computers