Skip to main content

Measuring Time Usage

  • Chapter
  • First Online:
Limits of Computation

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 2676 Accesses

Abstract

A problem is feasible if it can be computed in a practically acceptable amount of time for large input. This is vague, and we will have to make the notion of “feasibility” more precise. Instead of measuring real time we will introduce some abstract notion of time. This chapter defines runtime measures for the languages considered so far and discusses fairness of those definitions. A programming language with a runtime measure is called a timed programming language. This concept admits comparisons between the runtime of programs of different languages via compilation from one (timed) programming language into another one.

How do we measure runtime of programs? How do we measure runtime of WHILE-programs independently of any assumptions on the hardware they run on?

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 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.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

Notes

  1. 1.

    Juris Hartmanis was born July 5, 1928 in Latvia and was a professor at Cornell University.

  2. 2.

    Richard Edwin Stearns was born July 5, 1936 and was a professor at University at Albany (State University of New York).

  3. 3.

    They both received the 1993 ACM Turing Award “in recognition of their seminal paper which established the foundations for the field of computational complexity theory”.

  4. 4.

    Whether it is one or two does not make a difference anyway which we will see later.

  5. 5.

    They are however usable for space complexity considerations.

  6. 6.

    See Exercise 7 in Chap. 5.

  7. 7.

    In cases where the data types are different one can still apply the same techniques but the translations get more complicated as one needs to encode data values and this is somewhat distracting. For details see e.g. [3].

References

  1. Cook, S.A., Reckhow, R.A.: Time-bounded random access machines. J. Comput. Syst. Sci. 7, 354–375 (1973)

    Article  MathSciNet  MATH  Google Scholar 

  2. Hartmanis, J., Stearns, R.E.: On the computational complexity of algorithms. Trans. Am. Math. Soc. 117, 285–306 (1965)

    Article  MathSciNet  MATH  Google Scholar 

  3. Jones, N.D.: Computability and Complexity: From a Programming Perspective. MIT Press, Cambridge (1997) (Also available online at http://www.diku.dk/neil/Comp2book.html.)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Bernhard Reus .

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Reus, B. (2016). Measuring Time Usage. In: Limits of Computation. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-27889-6_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-27889-6_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-27887-2

  • Online ISBN: 978-3-319-27889-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics