1.

Which type of algorithm is harder to prove the correctness?​

Answer»

Greedy algorithms are easy to design, but HARD to prove correct • Usually, a counterexample is the best way to do this • Interval scheduling provided an example where it was easy to COME up with a simple greedy ALGORITHM. – However, we were ABLE to show the algorithm non-optimal by using a counterexample.



Discussion

No Comment Found