Algotithm: An Algorithm is a set of instructions for solving some problem step by step.
Goal: The goal of an Algorithm is about counting how much people is in the room
Pseudo code: The pseudo code is the lenguage to express the Algorithm
Variable:Is the representing of what we are counting-
Loop:Is a sequence of steps that will repeat some numbers of times.
It describe how we will go about counting.
We start counting something starting at zero then for each on in the room we increment N by 1. So in the the first trip of trough of the loop, we uptraid n from cero to 1.
If there are 5 people in the room the results have to be 5 if in isnt like yhat then this algrithm is wrong.
Corner: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.
Only excutes if there is 1 person in the room , that an not be paired with some one else.

Comments

Popular posts from this blog

What is an algorithm?

What's an algorithm?