

















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































































Docsity.com
Recursive Definitions
Recursive Functions
Lists Recursively
Trees Recursively
Hilbert Curves
Proving Recursive Programs Work
Further Information
Docsity.com
23
7 19 5
5 4 left subtree
right subtree
the leaves are the basis
Docsity.com
Use recursion to create strange shapes
Docsity.com
remove center square
repeat for the 8 small squares
Docsity.com
inductive statements, and so are usually easier to prove than loop invariants.
Docsity.com
continued
Show recursive n! is the same as a series of multiplications.
Docsity.com
continued Docsity.com
continued Docsity.com
operator (e.g., +, *), then E 1 @E 2 is an expression.
expression.
Docsity.com
the length of the expression
continued Docsity.com
continued Docsity.com
continued Docsity.com
continued Docsity.com