10 likes | 120 Views
An exercise on recursion. Sierpinski’s Gasket… http:// en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle http ://www.pha.jhu.edu/~ldb/seminar/fractals.html 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:
E N D
An exercise on recursion • Sierpinski’s Gasket… • http://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle • http://www.pha.jhu.edu/~ldb/seminar/fractals.html • 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.