26
Recursion, Fractals, and the Python Turtle Module Hayley Denbraver @hayleydenb

Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

  • Upload
    others

  • View
    31

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Recursion, Fractals, and the Python Turtle Module

Hayley Denbraver@hayleydenb

Page 2: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Hello!

Page 4: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into
Page 5: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

RecursionFractals

Python Turtle Module

Page 6: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Recursion

Page 8: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Recursion involves breaking a problem down into smaller and

smaller subproblems until you get to a small enough problem that it can be

solved trivially.

Page 9: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

5! = 5 x 4 x 3 x 2 x 1Factorials!

4!3!2!1!

5!

Page 10: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Recursive Version

Page 11: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Base Case

Recursive Case Moves toward Base

Page 12: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Loop Version

Page 13: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Fractals

Sou

rce

Page 17: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Encountering Fractals in the

London Underground

Page 18: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

What’s Next?

Page 20: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into
Page 21: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into
Page 22: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into
Page 23: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Level 0 Level -1

Level -2

Level -3

Page 24: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

What Have We Learned?

Page 25: Recursion, Fractals, and the Python Turtle Module · 2018. 8. 7. · Fractals Python Turtle Module. Recursion. Recursion Photo Credit. Recursion involves breaking a problem down into

Thank You!Tweet Me your Python Turtle Creations!

They will all get retweets and scores out of 10

(Similar to the dog_rates twitter, all python turtle creations will get scores above 10/10 because all python turtle creations,

like all dogs, are awesome)

@hayleydenb