1 / 23

Beauty in Recursion, Fractals

Beauty in Recursion, Fractals. Gur Saran Adhar Computer Science Department. A simple example in Recursion ‘H-tree’. H-tree level 2. H-tree level 3. Recursion (key idea). Letter ‘H’ is an H-tree An H-tree attached to each end of an H-tree is also an H-tree

makara
Download Presentation

Beauty in Recursion, Fractals

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. Beauty in Recursion, Fractals Gur Saran Adhar Computer Science Department

  2. A simple example in Recursion‘H-tree’

  3. H-tree level 2

  4. H-tree level 3

  5. Recursion (key idea) • Letter ‘H’ is an H-tree • An H-tree attached to each end of an H-tree is also an H-tree Define an object in terms of copies of itself

  6. Recursion in Mathematics

  7. Iteration vs. Recursion int Product(int n) //iteration { inti, result =1; for ( i = 1; i <= n; i++) result = result*i; return(result) } int Product(int n)//recursion { if ( n ==1) return (1); else return(n*Product(n-1)); }

  8. Quad Tree Representation of a region

  9. Snowflake (Koch Curve)

  10. Fractal Dimension D = ln(n)/ ln(1/s) Higher dimension exhibits more jagged surfaces For snowflake D = ln(4)/ln(3) = 1.26

  11. Fern

  12. Describing a Branch B A[B]AA(B)

  13. Language of Recursion • Describing a tree Rules A AA B A[B]AA(B)

  14. First Tree from grammar

  15. Trees

  16. Mountains

  17. More mountains

  18. Structure of Clouds (NASA) in marine stratocumuluson on July 7, 1987. First few frames showing the transition from GOES 1 km to Landsat 0.03 km resolution, and then zoom in by 7 successive factors of 2, to see that what's inside a GOES pixel can look rather similar to what's inside the full 500 km gridbox. This so-called "self-similarity" of clouds is characteristic of fractals.

  19. Clouds

  20. lightening

  21. Leaf

  22. Coastline

  23. waterfall

More Related