Algorithm
Definition
Definition: An algorithm is a step-by-step method to solve a task or problem.
Example from the book
- An algorithm to calculate the square of a number.
Flowchart
Definition
Definition: A flowchart shows an algorithm as a picture — its steps and the order they happen in.
Common symbols
- 1
Oval: Start and end of the flowchart.
- 2
Diamond: A decision point — a true/false check.
- 3
Arrows: Show the direction of flow.
Control Flow
Definition
Definition: Control flow is the order in which a computer runs the instructions of a program.
- 1
1. Sequence Flow: Instructions run top to bottom, one after another (the default).
- 2
2. Selection Control: Choosing a path based on a condition — e.g. if it rains, take an umbrella.
- 3
3. Iteration: Repeating a set of instructions until a condition is met.
Drawing Flowcharts with Google Drawings
- 1
Step 1: Open https://docs.google.com/drawings in a web browser.
- 2
Step 2: Open a blank sheet and give it a suitable name.
- 3
Step 3: Draw the flowchart of the square algorithm using shapes.
