Presentation is loading. Please wait.

Presentation is loading. Please wait.

Compsci 06/101, Spring 2011 17.1 The power of regular expressions l Interdisciplinary:  Music and Compsci (for Compsci 108 final project) The final product.

Similar presentations


Presentation on theme: "Compsci 06/101, Spring 2011 17.1 The power of regular expressions l Interdisciplinary:  Music and Compsci (for Compsci 108 final project) The final product."— Presentation transcript:

1 Compsci 06/101, Spring 2011 17.1 The power of regular expressions l Interdisciplinary:  Music and Compsci (for Compsci 108 final project) The final product is so much more than we had hoped for though it was something that we aimed for from the beginning. l Who is Ge Wang? l http://www.youtube.com/watch?v= ADEHmkL3HBg http://www.youtube.com/watch?v= ADEHmkL3HBg Our investment into a huge and meticulous design process was a huge factor in making later progress. 35000+ lines of code / design / documentation gave us a project we were all very happy and proud to be a part of.

2 Compsci 06/101, Spring 2011 17.2 Grammars for fun and recursion l http://en.wikipedia.org/wiki/SCIgen http://en.wikipedia.org/wiki/SCIgen l http://www.elsewhere.org/pomo/ http://www.elsewhere.org/pomo/ l http://www-cs-faculty.stanford.edu/~zelenski/rsg/ http://www-cs-faculty.stanford.edu/~zelenski/rsg/ l I need an extension because. l :: ,  and

3 Compsci 06/101, Spring 2011 17.3 Sierpinski Gasket l http://en.wikipedia.org/wiki/Sierpinski_triangle http://en.wikipedia.org/wiki/Sierpinski_triangle l How to think of creating it?  Remove central triangle, repeat recursively  Make three half-sized triangles, join, repeat  Chaos Game: completely at random! l See links to L-system generation  http://en.wikipedia.org/wiki/L-system#Example_6:_Sierpinski_triangle http://en.wikipedia.org/wiki/L-system#Example_6:_Sierpinski_triangle  Uses grammar!

4 Compsci 06/101, Spring 2011 17.4 Koch Snowflake


Download ppt "Compsci 06/101, Spring 2011 17.1 The power of regular expressions l Interdisciplinary:  Music and Compsci (for Compsci 108 final project) The final product."

Similar presentations


Ads by Google