Recursion:
X Equals Change X

University of Washington (Practice-It) Slides on X = Change(X) Recursive Pattern

There are a certain class of recursion problems that follow a familiar x = change(x) pattern. This pattern is often used to manipulate trees.

Here are the slides (created by Marty Stepp) for the x = change(x) recursion pattern: 

https://drive.google.com/file/d/1JpS4BqKO9hINWF9eNedB7spi2lbmE0GA/view?usp=drive_link

Practice Problems for X = Change(X)

Once you have gone over the slides, above, for the x = change(x) pattern, you can practice the pattern by doing the following problems on Code-Step-By-Step:

Important Notes: It is especially important that you complete the above exercises in the order given. The problems that do not require
the X = change(X) pattern are much easier, and, as such, should be completed first.


BJP5 Chapter 17