logo

AQA A-Level Computer Science practice

In an unweighted graph, breadth-first search finds a path from S to G using three edges. What does this indicate?

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

In an unweighted graph, breadth-first search finds a path from S to G using three edges. What does this indicate?.

  1. A.The path contains exactly three vertices
  2. B.The path is the shortest path from S to G
  3. C.The path was found by depth-first search
  4. D.There is no other path from S to G

Answer and explanation

Concise answer

The path is the shortest path from S to G

Why this is correct

Breadth-first search explores an unweighted graph by increasing distance from the starting vertex, so the first path it finds to G uses the fewest edges.

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