Posts

What my algorithm is supposed to do

Image
Goal: (what my algorithm is supposed to do) Guess the picture Steps: Set guess: 0 Set Randomnum= Random picture between 1 - 4   Repeat (Loop) until guess = randomnum Ask user: “Guess a picture between 1 - 4” Set guess = User Answer If guess = Randomnum Then Output:”You guess it!” Else  If guess > Randomnum Then Output: failed - try again Else Output: emit sound End if End if End Loop

algorithm

Algorithm -An algorithm is a set of instructions for solving problems step by step -the goal of an algorithm is about count how much people is in the room. -The pseudo code is a programming language. -The definition of variable is telling us what we are counting. -The definition of loap is a sequence of steps that will repeat numbers of times. -It describes how we are going to count. -We start counting something starting in zero, then for each in the room, we increment N by in the first trip of the trough of the loop, we uptraid n from zero to 1. -If there are five people in the room the result is to be five if is isn't like that, then is this an algorithm. -The corner case is a case that isn't typical. To test the corner cases they try to know if the algorithm works with 0 persons in a room. -Only excuses if there is one person in the room, that cannot be paired with some one else.

What's an algorithm?

Image
- In computing an algorithm is a series of instructions.  -  It serves to solve problems. -  Many times the algorithms are used exclusively by computers. -  As well humans have algorithms. - The algorithm is like synthesis in language.                              

Algorithm

1-An algorithm is a set of instructions for solving some problem, step by step. 2-The goal of the algorithm created in the video is to count the number of people in the room. 3-A pseudo code is a way to express an algorithm in a way that resembles programming lenguage. 4-A variable gives the initial value in the algorithm, for example N=0 5-A loop is a sequence of steps that is repeated as many times as necessary. 6-It describes how we will go about counting. 7-In order to create an algorithm you need to work on a variable and a loop. Then, you will have to test it. 8-Test it to check wether it is correct or if it contains bugs. 9-The corner cases refer to those cases that are atypical, which means the algorithm is flawed. In order to test the algorithm it is necessary to repeat the loop until a bug is found. 10-To correct the algorithm it is necessary to add a branch, that must find a solution to the bug.

The video talk about algorithm

The video talk about algorithm [An algorithm is a step by step procedure to solve logical and mathematical problems.] [A recipe is a good example of an algorithm, because it says what must be done, step by step.] [The goal means what you want to do with the algorithmus.] [Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. Variable is the representing of what we are counting. we start counting something starting at zero, for each pepole im the room we increment; N by 1. So in the first trip of trouhgt of the loop we upgraid N from zero to 1. with 5 pepole in the room the results have to be 5, if it don't like that,  the algorithm is ''buggy''.] [To test the corner cases they try to know if the algorithm functions with 0 pepoles at the room.] Only executes if there is 1 person in the room, that can not br paired with some one else.

Definition of algorithm

Image
What's an algorithm? 1: An algorithm is set of instructions that help you solving a problem. What's the goal? 2: The goal of an algorithm is to help you solve problems. What's the pseudo code 3:The pseudo code is the language to write an algorithm. Definition of  variable 4: The definition of variable is what you are counting (sometimes is one number and sometimes is another number). Definition of loop 5: A loop is a process that always repeats. Definition of brunch 7: The brunch executes only when you can't pair with something else. E.G. When there are three people in a room. How to do an algorithm 8: You design some steps in order to archive the goal and then y test if it is correct. Testing an algorithm 9: Once you've done the steps you have to check if it is buggy or if it's correct. We test corner cases 10: To have a corner case you have to be in cero.
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.