Skip to main content

“Easy” and “Difficult” Problems

  • Chapter
  • First Online:
Computational Thinking

Abstract

In the previous chapter we reviewed two algorithms to sort the n elements contained in a vector C[0 : n−1]: INSERTION SORT and MERGE SORT, which belong to the Olympus of classical algorithms. The first one, built according to a simple strategy, has a time complexity proportional to n2; the second one, which is more sophisticated, has a time complexity proportional to n log2 n, and is thus more efficient than the first.

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover 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

© 2018 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Ferragina, P., Luccio, F. (2018). “Easy” and “Difficult” Problems. In: Computational Thinking. Springer, Cham. https://doi.org/10.1007/978-3-319-97940-3_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-97940-3_8

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-97939-7

  • Online ISBN: 978-3-319-97940-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics