Skip to main content

Recursion

  • Chapter
  • First Online:
Applied Computer Science

Abstract

Three hands-on computational problems for students are presented. Each problem is related to the overall topic of recursion, and is organized around five specific lab programming assignments. The coding examples and problem statements are presented in the Python 2 language, along with the Tk and PIL libraries, but any comparable system for code development could be substituted with minimal additional overhead. Supporting data files, demos, and practice exercises are also available from the book’s companion website.The first problem examines the irregular connectivity of agents on a partially filled rectangular grid. The second problem compares the runtime of a number of calculations. The third problem simulates and analyzes the expected outcome of a straightforward one-player random game.Concepts, skills, and applications are carefully sequenced for ease of understanding, rapid feedback, and differentiated progression for any level of prior coding experience, including absolute beginners.

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
Hardcover Book
USD 59.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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing

About this chapter

Cite this chapter

Torbert, S. (2016). Recursion. In: Applied Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-30866-1_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-30866-1_5

  • Published:

  • Publisher Name: Springer, Cham

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

  • Online ISBN: 978-3-319-30866-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics