Khosro Raúl Soleimani

62%
Flag icon
Recap Greedy algorithms optimize locally, hoping to end up with a global optimum. NP-complete problems have no known fast solution. If you have an NP-complete problem, your best bet is to use an approximation algorithm. Greedy algorithms are easy to write and fast to run, so they make good approximation algorithms.
Grokking Algorithms: An illustrated guide for programmers and other curious people
Rate this book
Clear rating