MCQ Single Best Answer Easy

QWhich of the following is an example of a problem that cannot be solved using a greedy algorithm?

ID: #5740 Greedy Algorithms 172 views
Question Info
#5740Q ID
EasyDifficulty
Greedy AlgorithmsTopic

Choose the Best Option

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

  • A Finding the shortest path between two nodes in a graph
  • B Computing the greatest common divisor of two numbers
  • C Sorting a list of integers
  • D The traveling salesman problem
Correct Answer: Option D

Explanation

Answer : The traveling salesman problem

Explanation: The traveling salesman problem is a well-known problem that cannot be solved using a greedy algorithm since it requires examining all possible permutations of the cities to find the shortest possible route.

Share This Question

Challenge a friend or share with your study group.