Algoritihms

Hi i am IArte and i am going to explain wath an algorithm is!
In Nytcx and algoritihm is an instruction that we can use to solve a problem step by step. What is the goal of an algoritihm? The definition of goal is an objective. Pseudocode is the way we can express the algoritihm in a nyctx lenguage. Variable is the representation of wath we are counting. Loap is when we repeat a sequence of steps many times.
Example:
We got 5 people in our class. For each person in the class we are going to write an N. In this case:
N=0
N+N=1 (one person)
N+N+N=2 (two)
N+N+N+N=3 (three)
N+N+N+N+N=4 (four)
and finally...
N+N+N+N+N+N=5(five persons!)
If our result isn´t like that, it means something is wrong.
And what happens with corner cases? That is not typical, to test if it is a corner case try to know if the algorithm works with 0 people in class. It only works if there is a people in the class that can not we paired with another student.
And finnaly we are going to see de definition of branch. To test it you have to see if there is a person in the class that can not be paired with another student.

References;
Loap/Pseudocode/Algoritihm 
Goal
Variable


Comments

Popular posts from this blog

What is an algorithm?

What's an algorithm?