1 / 1

An exercise on recursion

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:

farica
Télécharger la présentation

An exercise on recursion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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.

More Related