Information explained in Class
Teo SCHWARZMAIER
2A
ALGORITHM
1- An algorithm was a set of instructions for a solving some Problem step by step.
2- The gol of an Algorithm is about counting how much people is in the room.
3- The pseudo code is the lenguaje to express the algorithm.
4- the definition of variable is the representing of what we are counting.
5- The definition of loap is a sequence of steps that will repeat some numbers of times.
6- It describe how we will go about counting.
7- We estero counting something starting at zero then for each on in the room we increment N by 1. So in the first trip of the trough of the loop, we uptraid N from zero to 1.
8- If there are 5 people in the room the results have to be 5 if it sin't like that then this algorithm is wrong.
9- The corner case is a case that is not typical. To test the corner cases they try to know if the algorithm functions with 0 persons in a room.
10- Only ejecutes if there is 1 person in the room , that can not be paired with some one else.
Comments
Post a Comment