Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

12.6: Chapter Summary

( \newcommand{\kernel}{\mathrm{null}\,}\)

Highlights from this chapter include:

  • Describe the concept of recursion.
  • Demonstrate how recursion uses simpler solutions to build a bigger solution.
  • Identify a recursive case and a base case in a recursive algorithm.
  • Demonstrate how to compute a recursive solution for the factorial function.
  • Demonstrate the use of recursion to solve a string problem.
  • Demonstrate the use of recursion to solve a list problem.
  • Use the built-in count() list function.
  • Define a recursive function to generate Fibonacci numbers.
  • Use recursion to efficiently search a list.
  • Demonstrate a solution to the Three Towers problem.

At this point, you should be able to solve problems using recursion.

Function Description

count(element)

Returns the number of times the element exists on the list on which the count() function is called.

Table 12.1 Chapter 12 reference.

This page titled 12.6: Chapter Summary is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?