Algorithm

1-An algorithm is a set of instructions for solving some problem, step by step.
2-The goal of the algorithm created in the video is to count the number of people in the room.
3-A pseudo code is a way to express an algorithm in a way that resembles programming lenguage.
4-A variable gives the initial value in the algorithm, for example N=0
5-A loop is a sequence of steps that is repeated as many times as necessary.
6-It describes how we will go about counting.
7-In order to create an algorithm you need to work on a variable and a loop. Then, you will have to test it.
8-Test it to check wether it is correct or if it contains bugs.
9-The corner cases refer to those cases that are atypical, which means the algorithm is flawed. In order to test the algorithm it is necessary to repeat the loop until a bug is found.
10-To correct the algorithm it is necessary to add a branch, that must find a solution to the bug.

Comments

Popular posts from this blog

What is an algorithm?

What's an algorithm?