Skip to main content Accessibility help
×
Hostname: page-component-cd9895bd7-hc48f Total loading time: 0 Render date: 2024-12-26T14:20:39.332Z Has data issue: false hasContentIssue false

1 - Algorithms and Computers

Published online by Cambridge University Press:  21 March 2011

John F. Monahan
Affiliation:
North Carolina State University
Get access

Summary

Introduction

Discussing algorithms before computers emphasizes the point that algorithms are valuable mathematical constructs in themselves and exist even in the absence of computers. An algorithm is a list of instructions for the completion of a task. The best examples of algorithms in everyday life are cooking recipes, which specify how a list of ingredients are to be manipulated to produce a desired result. For example, consider the somewhat trivial recipe for cooking a three-minute egg. The recipe (or algorithm) for such a task exemplifies the need to take nothing for granted in the list of instructions.

Algorithm Three-Minute Egg

Put water in a pan.

Turn on the heat.

When the water boils, flip over the egg timer.

When the timer has run out, turn off the heat.

Pour some cold water in the pan to cool the water.

Remove egg.

Although this algorithm may appear trivial to most readers, detailed examination further emphasizes (or belabors) how clear and unambiguous an algorithm must be. First, the receiver of these instructions, call it the actor, must recognize all of the jargon of food preparation: water, pan, egg, egg timer, boil, and so forth. The actor must recognize constructions: “put ____ in ____”; “when ____, do ____.” Some parts of these instructions are unnecessary: “to cool the water.” If the actor is an adult who understands English, this may be a fine algorithm. To continue to belabor the point, the actor can only do what the instructions say.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2001

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Algorithms and Computers
  • John F. Monahan, North Carolina State University
  • Book: Numerical Methods of Statistics
  • Online publication: 21 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511812231.002
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Algorithms and Computers
  • John F. Monahan, North Carolina State University
  • Book: Numerical Methods of Statistics
  • Online publication: 21 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511812231.002
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Algorithms and Computers
  • John F. Monahan, North Carolina State University
  • Book: Numerical Methods of Statistics
  • Online publication: 21 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511812231.002
Available formats
×