What is an algorithm?


1. Definition of algorithm
An algorithm is a series of instructions for solving some problem, step by step.

2.  Definition of goal
The goal is what you want to do in the algorithm.

3.Pseudo-code
English like sintax that resebles a programing lenguage.

4. Definition of varieble
A variable is a value that can change. In this example of the video the starting value is 0.

5. Definition of loop

It s a sequence of steps that will repeat some number of times.

6. Definition of indentations
The indentations implies the line that will repeat.

7. How to make an algorithm
I design the steps in order to achieve the goal of the algorithm and then I test if it is correct.

8. Testing an algorithm
Once I have set the steps of the algorithm I proof if it works by following the steps and check if it is buggy. If so I change the algorithm.

9. We test corner cases
The corner cases are not typical. To have corner cases the algorithm have to be in 0.

10. Definition of branch
A branch is a serie of steps of an algorithm that are executed if the condition occurse.










    Comments

    Popular posts from this blog

    What is an algorithm?

    What's an algorithm?