What is an Algorithm?
An Algorithm is a set of intractions to solve a Problem step by step.
0:30
Definition of the Goal: The Goal of an Algorithm is about counting the Number of people in the room.
0:43
Pseudo Code: the Pseudo Code is a languege to express the Algorithm
0:57
Definition of variable: Is what are we couting
1:17
Definition of loop: A sequance of steps they will repeat some numbers of time
1:29
Definition of: How we will be counting.
2:02
How to make algorithm: We starting counting something starting at zero then for each person in the room we increment N by 1. So in the first trip of the trough of the loop, we uptriad n from zero to 1.
3:49
Testing algorithm: If there are 3 people in the room the result have to be 3 if it isn't then is it wrong.
We test corner cases: The corner case is a case that is noy typical.To test corner cases they try yo know if the algorithm functions with 0 persons in a room.
4:05
Definition of branch: Only executes if there is 1 person in the room, that con not be paired some one else.
Testing algorithm: If there are 3 people in the room the result have to be 3 if it isn't then is it wrong.
We test corner cases: The corner case is a case that is noy typical.To test corner cases they try yo know if the algorithm functions with 0 persons in a room.
4:05
Definition of branch: Only executes if there is 1 person in the room, that con not be paired some one else.
Comments