What is an Algorithm?
An unambiguous set of steps, which when performed correctly by a processor, will result in a process being carried out in a finite time.
What two properties of the algorithm enable it to correctly describe the solution to the problem of making a cup of coffee?
The two properties of the algorithm is that it is specific and it is in the correct sequence.
Define Algorithms for the following processes.
Posting
a letter.
|
Making
toast.
|
Calling
a friend on the phone.
1. Pick up the phone.
2. Dial the number on the phone.
3. Press the talk button.
4.Wait for the
person to pick up if person doesnt pick up,call again.
5. Have fun chatting with your friend!
|
No comments:
Post a Comment