Presentation is loading. Please wait.

Presentation is loading. Please wait.

An exercise on recursion

Similar presentations


Presentation on theme: "An exercise on recursion"— Presentation transcript:

1 An exercise on recursion
Sierpinski’s Gasket… Demo — most GUI structure is given How can you use recursion to solve this problem? You may pair-program this if you want Fun extensions: Add color Play with non-equilateral triangles Write the chaos version (search on web for it) Template project in your SVN repository: Sierpinski This program (along with Determinant, another recursive program) is due before class on Day 10. Think-pair-share on how to solve this problem using recursion. Start in drawGasket() method.


Download ppt "An exercise on recursion"

Similar presentations


Ads by Google