In: Computer Science
An algorithm is classically defined as a finite series of steps which solves a problem. What are some types of instructions which occur in everyday life which would qualify as an algorithm? What are some everyday types of instruction which would NOT qualify as an algorithm
An algorithm is a recipe for how to work out an answer from a problem, using very simple steps.
every decision we make in our everyday life is some sort of algorithm.
for example making coffee , what to dress , where to go etc;
algo for making coffee :
Enter kitchen.
Locate coffee maker.
Turn coffee maker on.
Let coffee maker heat up.
Turn on faucet.
Fill filler until water reaches the line indicating it is full.
If it is full turn faucet off.
grab kcup and lift out of drawer and insert into coffee maker.
Grab mug and close drawer.
Put mug under neather where coffee is dispensed.
lift up sugar bowl lid, insert spoon and take fill it with sugar.
put sugar from spoon into mug. put spoon down.
If coffee makeer is ready, press brew.
Wait for coffee to finish brewing.
turn off coffee maker.
the answer for types of instrunction which does not qualify as an algorithm are the decisions which have vague result. i.e it will not not give exact solution but parry the output.
such as i may go to market or may not