Skip to main content

Efficiency of Programs

  • Chapter
What Computing Is All About

Part of the book series: Text and Monographs in Computer Science ((MCS))

  • 158 Accesses

Abstract

A programming problem may admit a variety of solutions that are all in perfect compliance with the specification. Yet, we may have a strong preference for one over the other. By far the most relevant criterion for distinguishing between the programs is the time it takes to execute them. One has to be careful in these matters, though, as illustrated by the following example. Assume that we have two programs PA and PB that each solve our programming problem. We have two machines available, and measuring of execution times of the two programs reveals that they take 3 and 6 seconds on MA, and 6 and 3 seconds on MB, respectively.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag New York, Inc.

About this chapter

Cite this chapter

van de Snepscheut, J.L.A. (1993). Efficiency of Programs. In: What Computing Is All About. Text and Monographs in Computer Science. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-2710-6_9

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-2710-6_9

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4612-7639-5

  • Online ISBN: 978-1-4612-2710-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics