Tuesday, July 20, 2010

Algorithms

An algorithm is an ambiguous set of steps, which when performed correctlty by a professor, will result in a process being carried out in a finite time.

  • POSTING LETTER-
  1. Collect paper
  2. Collect pen
  3. Get envelope
  4. Write on paper as you want
  5. Finish writing wiht Lots of love....
  6. Fold letter to fit in envelope
  7. Put into envelope
  8. Lick sides of envelope to stick down.    OR
  9. Close flap on envelope
  10. stick down with stickytape
  11. Walk to post box   OR
  12. Drive down to the post office
  13. Walk to the post box
  14. Tip the envelope into the mail box
  15. Walk away
  • MAKING A TOAST
  1. Collect bread
  2. Collect toaster
  3. Collect butter/nutella/vegemite
  4. Place bread into toaster
  5. Turn toaster on
  6. Adjust temperature as you wish
  7. When waiting get plate out of cupboard
  8. Get knife out of draw
  9. When done first turn toaster off
  10. Get toast out of toaster
  11. Place toast onto plate
  12. Open butter jar
  13. With knife place butter on toast
  14. With knife place nutella/vegemite on bread
  15. Put everything where got if from
  16. Eat

                                                                                                                            

No comments:

Post a Comment