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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights 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