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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an algorithm?

A

A set of clear, step-by-step instructions to solve a problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is finiteness important in an algorithm?

A

It ensures the algorithm eventually stops and doesn’t run forever

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does definiteness mean in algorithm design?

A

Every step must be clear and unambiguous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is pseudocode?

A

A plain-language way to describe an algorithm’s logic without using actual programming syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

“I Only Dance For Elephants”

A

Input, Output, Definiteness, Finiteness, Effectiveness

How well did you know this?
1
Not at all
2
3
4
5
Perfectly