Why are greedy algorithms generally not optimal? Explain your answer in 1-2 sentences.(2 points)

Greedy algorithms make locally optimal choices at each step without considering the overall optimal solution, therefore they may end up finding a suboptimal solution.

Greedy algorithms are generally not optimal because they make locally optimal choices at each step without considering the global picture, which can lead to suboptimal solutions in some cases. To determine optimality, the problem must satisfy the greedy-choice property and the problem must also exhibit optimal substructure.

Greedy algorithms are generally not optimal because they make locally optimal choices at each step without considering the global optimal solution, which may lead to suboptimal results in some cases.