Single Choice Easy

QWhich of the following is a disadvantage of a greedy algorithm?

ID: #5736 Greedy Algorithms 686 views
Question Info
#5736Q ID
EasyDifficulty
Greedy AlgorithmsTopic

Choose the Best Option

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

  • A It always guarantees the optimal solution ✔ ✖
  • B It can be slow for large input sizes ✔ ✖
  • C It requires a lot of memory ✔ ✖
  • D It may not always find the globally optimal solution ✔ ✖
Correct Answer

Explanation

Answer: It may not always find the globally optimal solution

Explanation: A greedy algorithm may not always find the globally optimal solution since it makes locally optimal choices at each step without considering the future consequences. This can lead to suboptimal solutions for some problems.

Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue Computer Science and Engineering where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.