Hostname: page-component-cd4964975-598jt Total loading time: 0 Render date: 2023-03-28T13:24:02.627Z Has data issue: true Feature Flags: { "useRatesEcommerce": false } hasContentIssue true

# 1 - Algorithms and Computers

Published online by Cambridge University Press:  01 June 2011

## 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.

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

## 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.)

### Purchase

Buy print or eBook[Opens in a new window]

## References

and (2000), “Lexical Scope and Statistical Computing.” Journal of Computational and Graphical Statistics 9: 491–508.Google Scholar
(1997), Practical Object-Oriented Design. London: McGraw-Hill.Google Scholar

# Save book to 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
• Book: Numerical Methods of Statistics
• Online publication: 01 June 2011
• Chapter DOI: https://doi.org/10.1017/CBO9780511977176.003
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
• Book: Numerical Methods of Statistics
• Online publication: 01 June 2011
• Chapter DOI: https://doi.org/10.1017/CBO9780511977176.003
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
• Book: Numerical Methods of Statistics
• Online publication: 01 June 2011
• Chapter DOI: https://doi.org/10.1017/CBO9780511977176.003
Available formats
×