The four pillars
Computational thinking rests on four habits:
- **Decomposition*: split a big problem into smaller ones.
- **Pattern recognition*: spot what repeats.
- **Abstraction*: keep what matters, ignore the noise.
- **Algorithm design*: write the ordered steps.
Big problem -> Break it down -> Order the steps -> Check them
If you can do those four things, you can solve almost any problem a computer can help with.
What an algorithm is
An algorithm is a finite list of steps that solves a problem. Every recipe, map, and instructions-for-assembly are algorithms. The key rules:
- Each step must be unambiguous.
- There are only a finite number of steps.
- It always finishes.
steps = ["boil water", "add pasta", "drain", "mix sauce"]
for step in steps:
print(step)
That loop is an algorithm running.