Introduction [00NK]

Our next unit covers greedy algorithms—an important class of algorithms where repeatedly making the locally best choice (i.e. a "greedy" choice) results in a globally best result. This does not always work—but when it does, it is very effective. Typically, to prove that greedy algorithms are correct we can use some kind of exchange argument, where we imagine exchanging the greedy choice for some other choice, and show that it could only possibly make the result worse.