Recursive Algorithms

1 project
7 articles
4 challenges
Learn the concept of recursion, a technique that is often used in algorithms. See how to use recursion to calculate factorial and powers of a number, plus to generate art.

Project: Recursive art

One of the fun ways to apply the principles of recursion is to generate swirling, spiraling, tessellating art, by deciding what you're drawing, how to change it at each level of recursion, and when to stop. We've started a simple example ...