Recursion, Fractals, and the Python Turtle Module Hayley Denbraver - - PowerPoint PPT Presentation

recursion fractals and the python turtle module
SMART_READER_LITE
LIVE PREVIEW

Recursion, Fractals, and the Python Turtle Module Hayley Denbraver - - PowerPoint PPT Presentation

Recursion, Fractals, and the Python Turtle Module Hayley Denbraver @hayleydenb Hello! Photo Source Recursion Fractals Python Turtle Module Recursion Recursion Photo Credit Recursion involves breaking a problem down into smaller and


slide-1
SLIDE 1

Recursion, Fractals, and the Python Turtle Module

Hayley Denbraver @hayleydenb

slide-2
SLIDE 2

Hello!

slide-3
SLIDE 3

Photo Source

slide-4
SLIDE 4
slide-5
SLIDE 5

Recursion Fractals Python Turtle Module

slide-6
SLIDE 6

Recursion

slide-7
SLIDE 7

Recursion

Photo Credit

slide-8
SLIDE 8

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.

slide-9
SLIDE 9

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

Factorials!

4! 3! 2! 1! 5!

slide-10
SLIDE 10

Recursive Version

slide-11
SLIDE 11

Base Case Recursive Case Moves toward Base

slide-12
SLIDE 12

Loop Version

slide-13
SLIDE 13

Fractals

Source

slide-14
SLIDE 14

Source

slide-15
SLIDE 15

Source

slide-16
SLIDE 16

Source

slide-17
SLIDE 17

Encountering Fractals in the London Underground

slide-18
SLIDE 18

What’s Next?

slide-19
SLIDE 19

Source Source

slide-20
SLIDE 20
slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23

Level 0 Level -1 Level -2 Level -3

slide-24
SLIDE 24

What Have We Learned?

slide-25
SLIDE 25

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

slide-26
SLIDE 26

Resources

Python 3 Turtle Module Docs How to Think Like a Computer Scientist Fractals My Turtle Code