1. An algorithm was a set of instructions for solving some Problem step by step.
2. The goal of an Algorihtm is about counting how much people is in the room.
3. The pseudo code is the language 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 start 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 isn’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 executes if there is 1 person in the room, that can not be paired with some one else.

Comments

Popular posts from this blog

What is an Algorithm?

jaz