Class Info: Definition of an Algorithm using SEXI
State: An algorithm is a step-by-step set of instructions to accomplish a task
Elaborate: We use algorithms often. If we microwave a dinner, we follow steps to take it out of the box, put it in the microwave, etc. In the case of computers and computer programs, instructions need to be very detailed. When we write a computer program, first we create the algorithm (or step-by-step instructions). Then we code the algorithm into a computer language.
eXemplify: An example of an algorithm is a recipe for cooking brownies. The recipe gives us a list of needed ingredients (or given materials) and a set of step-by-step instructions for using the ingredients. In the case of a computer program, we are given the start or beginning state (like being given a list of ingredients) and then create the step-by-step list of instructions.
Illustrate: Creating an algorithm is like planning a party. First we decide on the basic givens: who is hosting the party; where it is to be held; and who is to be invited. Then, we create the step-by-step list of activities needed to make the party successful: buying food, getting music, inviting guests, etc.
0 Comments:
Post a Comment
<< Home