What is an Algorithm

0:21 definition and algorithm:   Is a set of intractions for solving some 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.


3:49  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

Popular posts from this blog

What is an algorithm?

What's an algorithm?