Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Last updated 20/06/24: Online ordering is currently unavailable due to technical issues. We apologise for any delays responding to customers while we resolve this. For further updates please visit our website https://www.cambridge.org/news-and-insights/technical-incident

Chapter 5: Mathematical Induction

Chapter 5: Mathematical Induction

pp. 215-266

Authors

David Liben-Nowell, Carleton College, Minnesota
  • Add bookmark
  • Cite
  • Share

Summary

Recursion is a powerful technique in computer science. If wecan express a solution to problem X in terms of solutionsto smaller instances of the same problem X—and wecan solve X directly for the “smallest”inputs—then we can solve X for all inputs. There aremany examples. We can sort an array A by sorting the lefthalf of A and the right half of A andmerging the results together; 1-element arrays are by definition alreadysorted. (That’s merge sort.)

About the book

Access options

Review the options below to login to check your access.

Purchase options

Purchasing is temporarily unavailable, please try again later

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers