AI Tutor
Imagine you are building a LEGO tower, but you put the roof on before building the walls!
Or imagine baking cookies, but you forget the sugar. Your cookies would taste terrible!
When we solve a problem, we make an algorithm β€” which is just a list of step-by-step instructions to get a job done.
To make sure our steps work every time, we must check for two big things: missing steps and wrong order.
What happens when your steps are in the wrong order? Let's see what happens to Robo.

Checking the Order

Look at these steps for getting dressed: 1. Put on shoes. 2. Put on socks.
If you follow those steps in that exact order, your socks will go on the outside of your shoes!
To fix an order problem, we swap the steps: socks must come before shoes.
Having the right order is great, but what happens if an entire step is missing?

Finding Missing Steps