Learn › Class 9 › Mathematics › The World of Algorithms
Algorithms and flowcharts
Remember
- An algorithm is a finite list of precise steps.
- Flowcharts: oval start/stop, rectangle action, diamond decision.
- Binary search needs sorted data and halves the range each step.
Quick self-check
HCF of 20 and 8 by Euclid?
Check
20 = 2 × 8 + 4, 8 = 2 × 4 + 0, so 4.
Which is faster on a long sorted list: linear or binary search?
Check
Binary search.