ONE 6th FORM Dijkstra v A* Search

ONE 6th FORM Dijkstra v A* Search

12th Grade

20 Qs

quiz-placeholder

Similar activities

CSP Unit 10 Vocab V2

CSP Unit 10 Vocab V2

12th Grade

18 Qs

Code.org Unit 6 Discoveries

Code.org Unit 6 Discoveries

9th - 12th Grade

15 Qs

Code.org AP Computer Science Principles Unit 6

Code.org AP Computer Science Principles Unit 6

9th - 12th Grade

15 Qs

Intro to Algorithms

Intro to Algorithms

9th - 12th Grade

23 Qs

SLR5 | Algorithms

SLR5 | Algorithms

12th Grade

15 Qs

18.1 Artificial Intelligence (AI) Cambridge iA 9618

18.1 Artificial Intelligence (AI) Cambridge iA 9618

12th Grade

20 Qs

Mobile CSP Unit 5 Vocab

Mobile CSP Unit 5 Vocab

10th - 12th Grade

15 Qs

ONE 6th FORM A*Search

ONE 6th FORM A*Search

12th Grade

17 Qs

ONE 6th FORM Dijkstra v A* Search

ONE 6th FORM Dijkstra v A* Search

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Lorna Jarrett

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Dijkstra's algorithm is faster than A* search.
A* search only works on unweighted graphs.
Dijkstra's algorithm is uninformed and explores all paths, while A* uses heuristics to optimize the search towards the goal.
Dijkstra's algorithm uses heuristics to find the shortest path.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a heuristic in the context of A* search?

A heuristic is the exact cost to reach the goal from a node.
A heuristic is a random guess about the goal.
A heuristic is an estimate of the cost to reach the goal from a node.
A heuristic is a method to find all possible paths in the search.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does A* search behave exactly like Dijkstra's algorithm?

When the heuristic function h(n) is zero for all nodes.
When the algorithm is modified to use a random heuristic function.
When the search space is fully connected with equal edge weights.
When the heuristic function h(n) is equal to the actual cost for all nodes.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Dijkstra's algorithm, which data structure is commonly used to select the next node to visit?

Stack
Linked list
Array
Priority queue

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about A* search?

A* search is only optimal if the heuristic is consistent.
A* search can be incomplete if the search space is infinite.
A* search is optimal and complete when the heuristic is admissible.
A* search is faster than Dijkstra's algorithm in all cases.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does A* aim to minimize at each step of the algorithm?

The distance from the start node to the current node.
The heuristic estimate from the current node to the goal node.
The total number of nodes expanded so far.
The total estimated cost from the start node to the goal node.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which case would make A* search and Dijkstra's algorithm equally efficient?

Edge weights vary randomly.
Only some edge weights are equal.
All edge weights are equal.
All edge weights are negative.

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?