logo

AQA A-Level Computer Science practice

Which description best matches depth-first search when navigating a maze?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Graph-traversal

Exam-style question

Try this first

Which description best matches depth-first search when navigating a maze?.

  1. A.Visit every neighbouring junction at the current distance before moving farther away
  2. B.Follow one available route as far as possible, then backtrack when necessary
  3. C.Choose a route with the greatest number of edges
  4. D.Visit only the starting junction

Answer and explanation

Concise answer

Follow one available route as far as possible, then backtrack when necessary

Why this is correct

Depth-first search explores deeply along one branch before returning to an earlier junction to try another branch. This makes it suitable for navigating a maze.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions