Back to Topics
9. Algorithm Design
Key Terms
Abstraction
Decomposition
Algorithm
Stepwise Refinement
Flowchart Keywords
SET <variable> to <value>
IS <variable> = <value>?
INCREMENT <variable>
CONCATENATE <data> WITH <variable>
ADD <variable> TO <variable>
INPUT / OUTPUT
READFILE / WRITEFILE
Sample Flowchart: Number Averaging
START
SET total = 0
SET count = 0
▼
INPUT number
▼
IS number = 0?
→ YES ▼
NO →
ADD number TO total
▼
INCREMENT count
▼
OUTPUT total / count
▼
END
Algorithm Design Quiz
What is the main purpose of abstraction in computational thinking?
To add unnecessary details to a problem
To filter out non-essential information
To make problems more complex
To create multiple versions of a problem
Which programming construct is used for repeating actions?
Sequence
Selection
Assignment
Iteration
What is the benefit of decomposition?
Makes problems harder to solve
Allows dividing problems into smaller sub-tasks
Eliminates the need for testing
Reduces code readability