logo

Question detail

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

Try the question, check the answer, then read the explanation to understand the curriculum point.

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

Model answer

What a good answer should say

  • The path is the shortest path from S to G

Explanation

Why this works

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.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.