MPDA’22
December 9, 2021
According to wikipedia, recursive is something that involves the repeated application of a rule, definition, or procedure to successive results.
Here’s an example of recursion in python
totalSum
is used to save the accumulated result.
And another with vectors!
Examples of recursive behaviour are fractals:
Koch Snowflake:
Koch Snowflake variation:
Sierpinski Triangle
Sierpinski Carpet