MALABAR SECONDARY SCHOOL
In this lesson you will review five steps to problem sovling.
Click on the music file below to listen to the song.
Can you list the five steps to problem sovling?
DISCLAIMER: We do own the rights to the music used to modify this audio item. This recording was created only for educational purposes
What is an algorithm?
An Algorithm is a finite sequence of instructions that if followed, will allow us to achieve our result.
Characteristics of Algorithms
-
Is Unambiguous or Precise: Steps must be clear and specific.
-
Has logical sequence: Must flow from one step to another.
-
Has inputs
-
Has outputs
-
Is finite – fixed number of steps.
-
Is efficient – minimum amount of steps used.
Ways to represent Algorithms
-
Narrative
-
Using English like statements to describe the solution to the problem.
-
-
Flowchart (Use of Shapes)
-
Using visual representation of the solution using specific shapes and arrows.
-
-
Pseudocode
-
As the name implies pseudo – fake code, not an actual programming language but very close.
-
Types of Instructions
-
Input instructions
-
Processing instructions
-
Sequencing instructions
-
Repeating instructions
-
Selecting instructions
-
-
Output instructions