Sunday, February 26, 2012

Life Algorithm

Life algorithm are precise step by step instructions on how to accomplished a desired task. An algorithm can use simply with computer aided design, or in mathematics must be very detailed and resolve, we can set up ambiguities we take for granted in everyday life. Interesting task can be approached algorithmically, breaking it down to the level that a computer might understand.

For example to do the project need to pick an everyday or interesting task and create an algorithm explain how to do it. To do this task you must describe the following indication:
  • Specifying the input need like ingredients in a recipe.
  • Describe the process to operate on that input to produce or accomplish a task
  • Describe the output will result
  • Make an sumptions are made in the algorithm
The algorithm can be drawn for exmple when calling a friend on telephone:
Input: The telephone number of your friend
Output: None

Process:
  1. Pick up the telephone and listen for a dial tone
  2. Press each digit of the phone number on phone
  3. If busy, hang up phone, wait for 5 minutes, jump to spep 2
  4. If no one answers, leave a message then hang up
  5. If no answering machine, hang up and wait 2 hours, then jump to step 2
  6. Talk to friend
  7. Hang up the telephone
Asssumption:
  • Step 1 assumed that you live alone and no one else could be on the phone
  • The algorithm assumes the existence of a working phone and active service
  • The algorithm assumes you are not deaf or mute
  • The algorithm assumes a normal corded pnone