Single Choice Easy

QWhich of the following searching algorithms can be used for finding the shortest path between two nodes in a graph?

ID: #5712 Searching Algorithms 195 views
Question Info
#5712Q ID
EasyDifficulty
Searching AlgorithmsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Linear search
  • B Binary search
  • C Depth-first search
  • D Breadth-first search
Correct Answer

Explanation

Answer: Breadth-first search

Explanation: Breadth-first search can be used for finding the shortest path between two nodes in a graph because it visits all the nodes at a given level before moving on to the next level.

Share This Question

Challenge a friend or share with your study group.