greedy algorithms Flashcards