Skip to main content

Big O Notation and Algorithm Efficiency

  • Chapter
  • First Online:
Cryptography

Part of the book series: Springer Undergraduate Mathematics Series ((SUMS))

Abstract

When we do a computation, we would like to do it as fast as possible, or at least pretty fast. In order to talk about (roughly) what that means, we need to introduce big O notation. Let f(x) and g(x) be two functions, we say that \(f(x)=O(g(x))\) if there is some constant \(C>0\), which does not depend on x, so that

$$\begin{aligned} |f(x)|\le Cg(x) \end{aligned}$$

for all x.

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

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Simon Rubinstein-Salzedo .

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Rubinstein-Salzedo, S. (2018). Big O Notation and Algorithm Efficiency. In: Cryptography. Springer Undergraduate Mathematics Series. Springer, Cham. https://doi.org/10.1007/978-3-319-94818-8_8

Download citation

Publish with us

Policies and ethics