Close
Register
Close Window

F17 OpenDSA entire modules

Chapter 21 Functional Programming

Show Source |    | About   «  21.8. Functional Programming - Part 8   ::   Contents   ::   22.1. Syntax of the Lambda Calculus  »

21.9. Functional Programming - Part 9

21.9.1. RP 13 part 1

Topics of the day:

  1. Continuations
  2. Continuation-passing style programming

The review problem set for today contains five review problems.

This first problem is about a recursive function to compute the greatest common divisor (or \(gcd\)) of two integers.

21.9.2. RP 13 part 2

This review problem is the first one in a sequence of three problems that require you to complete the implementation of a recursive function that uses continuation-passing style programming. This problem uses the \(gcd\) function introduced in the first problem in this set, but you do not need to remember how it was implemented.

21.9.3. RP 13 part 3

This review problem is the second one in a sequence of three problems that require you to complete the implementation of a recursive function that uses continuation-passing style programming. This problem uses the \(gcd\) function introduced in the first problem in this set, but you do not need to remember how it was implemented.

21.9.4. RP 13 part 4

This review problem is the last one in a sequence of three problems that require you to complete the implementation of a recursive function that uses continuation-passing style programming. This problem uses the \(gcd\) function introduced in the first problem in this set, but you do not need to remember how it was implemented.

21.9.5. RP 13 part 5

This randomized review problem will give you more practice writing recursive functions in the continuation-passing style. To get credit for it, you must solve it correctly three times in a row.

   «  21.8. Functional Programming - Part 8   ::   Contents   ::   22.1. Syntax of the Lambda Calculus  »

nsf
Close Window