writing an algorithm Flashcards