Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function.

Share Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function. with FacebookShare Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function. with Twitter
  • For instance, factorial functions have one input, so they should expect one base case whereas recursive functions with two inputs will generally have two base cases, one for each of the extreme values.

More about this tip

Tags

  • Programming Concepts
External Source
Ran Libeskind-Hadas from the CSNYC Tip-A-Thon.
Other Tips By
Other Tips By Ran Libeskind-Hadas

Similar tips

Split students into groups responsible for programming different tasks in Java to create a Set game, this will allow them to learn to distributed work in environments that mirror industry.
Have students design a game of Breakout in Java to practice using conditionals and nested for loops.
Compare variables to gym scoreboards to help students understand them and how they can be used in a game.
  • CSTT Facebook
  • CSTT Twitter

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Footer Icons by Mohammed Alyousfi. Powered by Drupal.

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College