Raven has eight number cards. She wants them in order, from smallest to largest.
Rocket tries one plan. Raven tries a different plan. Both plans work, but Raven finishes first. "Your way was faster!" Rocket says. "Teach me!"
Nova glows. "A clear plan is called an algorithm. Some algorithms are faster than others." Let's help them sort some cards.
RAVEN had 8 cards with numbers and wanted them in order, smallest to largest. RAVEN tried two ways. The first way took 30 seconds. The second way took 9 seconds. Both worked. Both are ALGORITHMS, but one is faster.
An algorithm is a clear plan. It has steps in order, and it has an end.
Two people can follow the same algorithm and get the same answer.
| Statement | True or false? |
|---|---|
| A recipe is a kind of algorithm. | ? |
| There is only one algorithm for every problem. | ? |
| An algorithm needs steps in order. | ? |
| A faster algorithm is always harder to read. | ? |
Put these cards in order from smallest to largest.