Day 1 Flashcards
- Understand what an **algorithm** is and why it matters. - Memorize and internalize the **5 characteristics of a good algorithm**. - Learn to read and write **pseudocode** that’s clean and logical. - Get comfortable with describing algorithm logic without writing actual code.
1
Q
What are the 5 characteristics of a good algorithm?
A
Input, Output, Definiteness, Finiteness, Effectiveness
2
Q
What is an algorithm?
A
A set of clear, step-by-step instructions to solve a problem
3
Q
Why is finiteness important in an algorithm?
A
It ensures the algorithm eventually stops and doesn’t run forever
4
Q
What does definiteness mean in algorithm design?
A
Every step must be clear and unambiguous
5
Q
What is pseudocode?
A
A plain-language way to describe an algorithm’s logic without using actual programming syntax
6
Q
“I Only Dance For Elephants”
A
Input, Output, Definiteness, Finiteness, Effectiveness