SlideShare une entreprise Scribd logo
1  sur  11
There once was a little
 girl named Alyssa P.
        Hacker.
Her dad was a
computer scientist.
  He worked with
 computers all day
       long.
Alyssa always heard
him talking about
something called
“recursion”, so one
day she asked him,
“Dad, what does
‘recursion’ mean?”
“Well,” he said,
“Recursion is when
you define a
procedure in terms of
itself.”
“I don’t get it,” said
Alyssa.
“Let me put it this way,”
her dad said. “You know
the story of
Cinderella, don’t you?” he
asked.

“Of course! She’s my
favorite princess!” Alyssa
smiled.

“Do you remember what
happens at the end?” he
asked.

“Yeah! The prince finds
Cinderella and they get
married and live happily
ever after!”
“Right!” he said. “The
prince knows that the
shoe will only fit
Cinderella, but he
doesn’t know who she
is, so he must test all
of the girls until he
finds her. Since he
doesn’t know how
many girls there
are, he doesn’t know
how many times he
will have to try the
same test, so he used
logic to devise a
method of finding
Cinderella.
He tries the shoe on a
girl, and if the shoe
fits, they can get
married and live happily
every after, but if not, he
must move on to the
next girl and try to find
Cinderella again by
trying the shoe on her.
He can only stop once
he finds the right girl!
What the prince was
doing was like a
recursive procedure.”
“Oh!” said Alyssa. “I
think I get it now!
Recursion is like trying
to solve a problem by
trying the same idea
over and over again on
different things until it
works.”

“That’s pretty close!”
her dad told her. “I
think you’ll be a great
computer scientist one
day!”
(define (Find-Cinderella girls)
  (if (Shoe-fits? (car girls))
      (Live-Happily-Ever-After)
      (Find-Cinderella (cdr girls))))
Picture Sources:

• http://www.free-clipart-
  pictures.net/free_clipart/kid_clipart/kid_clipart_girl_smiling.gif
• http://mylesfish.files.wordpress.com/2009/11/computer-guy-clip-
  art.png
• https://lh3.googleusercontent.com/-
  eQdxpgeVxcg/TW8BjZKekiI/AAAAAAAACB4/Nt5oyJBed8o/girl-
  confused-vector.jpg
• http://eventservices.disney.go.com/files/400001965139.jpg
• http://images2.fanpop.com/image/polls/390000/390297_126765232
  6501_full.jpg
• http://www.disneyclips.com/imagesnewb3/imageslwrakr01/cn94.gif
• http://activerain.com/image_store/uploads/5/6/8/1/9/ar126300265
  191865.jpg
• http://images1.wikia.nocookie.net/__cb20101009032724/disney/ima
  ges/6/61/Feb511.gif
• http://pegaweb.com/tutorials/open-book-with-pages/5.jpg
• http://www.fromoldbooks.org/Geneva/pages/000-Front-Cover/000-
  Front-Cover-q75-1007x1300.jpg

Contenu connexe

Tendances

Inanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & CharlesInanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & Charles
MrsPrentice
 
Little red riding hood
Little red riding hoodLittle red riding hood
Little red riding hood
karolina_osko
 
Beyond the paintings 2
Beyond the paintings 2Beyond the paintings 2
Beyond the paintings 2
benthurn
 
Pasive exercises
Pasive exercisesPasive exercises
Pasive exercises
LaLocaFeliz
 

Tendances (16)

Cinderella story
Cinderella  storyCinderella  story
Cinderella story
 
Thoughts
ThoughtsThoughts
Thoughts
 
Inanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & CharlesInanimate Alive Episode 5 by Kye & Charles
Inanimate Alive Episode 5 by Kye & Charles
 
Resendiz rojas oscar_m7s1_longtimeago
Resendiz rojas oscar_m7s1_longtimeagoResendiz rojas oscar_m7s1_longtimeago
Resendiz rojas oscar_m7s1_longtimeago
 
Dulcibella Legacy-G7 c2
Dulcibella Legacy-G7 c2Dulcibella Legacy-G7 c2
Dulcibella Legacy-G7 c2
 
Dulcibella Lecacy-G7 c1
Dulcibella Lecacy-G7 c1Dulcibella Lecacy-G7 c1
Dulcibella Lecacy-G7 c1
 
Cinderella
CinderellaCinderella
Cinderella
 
Cinderela(3)
Cinderela(3)Cinderela(3)
Cinderela(3)
 
OWBC Ch 1
OWBC Ch 1OWBC Ch 1
OWBC Ch 1
 
Little red riding hood
Little red riding hoodLittle red riding hood
Little red riding hood
 
Beyond the paintings 2
Beyond the paintings 2Beyond the paintings 2
Beyond the paintings 2
 
Using Comics and Graphic Novels in the Classroom
Using Comics and Graphic Novels in the ClassroomUsing Comics and Graphic Novels in the Classroom
Using Comics and Graphic Novels in the Classroom
 
Pasive exercises
Pasive exercisesPasive exercises
Pasive exercises
 
Arc-en-Ciel: A Sims 3 Rainbowcy, Episode 32
Arc-en-Ciel: A Sims 3 Rainbowcy, Episode 32Arc-en-Ciel: A Sims 3 Rainbowcy, Episode 32
Arc-en-Ciel: A Sims 3 Rainbowcy, Episode 32
 
A Timeline To Follow by Asawari Walkade
A Timeline To Follow by Asawari WalkadeA Timeline To Follow by Asawari Walkade
A Timeline To Follow by Asawari Walkade
 
Daze Of Our Legacy. Chapter 5
Daze Of Our Legacy. Chapter 5Daze Of Our Legacy. Chapter 5
Daze Of Our Legacy. Chapter 5
 

En vedette

Equipamentos médico hospitalares e o gerenciamento da manutenção
Equipamentos médico hospitalares e o gerenciamento da manutençãoEquipamentos médico hospitalares e o gerenciamento da manutenção
Equipamentos médico hospitalares e o gerenciamento da manutenção
pryloock
 
GestãO Hospitalar
GestãO HospitalarGestãO Hospitalar
GestãO Hospitalar
luciana.oli
 
Materiais médicos hospitalares 2
Materiais médicos hospitalares 2Materiais médicos hospitalares 2
Materiais médicos hospitalares 2
cristianoafranca
 
administração hospitalar
administração hospitalaradministração hospitalar
administração hospitalar
biblisaocamilo
 

En vedette (11)

Ebook - Guia ANVISA - MedMercado
Ebook - Guia ANVISA - MedMercadoEbook - Guia ANVISA - MedMercado
Ebook - Guia ANVISA - MedMercado
 
Dispositivos medicos
Dispositivos medicosDispositivos medicos
Dispositivos medicos
 
Equipamentos médico hospitalares e o gerenciamento da manutenção
Equipamentos médico hospitalares e o gerenciamento da manutençãoEquipamentos médico hospitalares e o gerenciamento da manutenção
Equipamentos médico hospitalares e o gerenciamento da manutenção
 
GestãO Hospitalar
GestãO HospitalarGestãO Hospitalar
GestãO Hospitalar
 
MANUAL DE EQUIPAMENTOS MEDICOS E HOSPITALARES.Manual de equipamentos méd...
MANUAL  DE  EQUIPAMENTOS  MEDICOS  E  HOSPITALARES.Manual de equipamentos méd...MANUAL  DE  EQUIPAMENTOS  MEDICOS  E  HOSPITALARES.Manual de equipamentos méd...
MANUAL DE EQUIPAMENTOS MEDICOS E HOSPITALARES.Manual de equipamentos méd...
 
Manutenção e Utilidades Hospitalares NR 32
Manutenção e Utilidades Hospitalares NR 32Manutenção e Utilidades Hospitalares NR 32
Manutenção e Utilidades Hospitalares NR 32
 
Materiais médicos hospitalares 2
Materiais médicos hospitalares 2Materiais médicos hospitalares 2
Materiais médicos hospitalares 2
 
administração hospitalar
administração hospitalaradministração hospitalar
administração hospitalar
 
EQUIPAMENTOS E MATERIAIS HOSPITALARES 2
EQUIPAMENTOS E MATERIAIS HOSPITALARES 2EQUIPAMENTOS E MATERIAIS HOSPITALARES 2
EQUIPAMENTOS E MATERIAIS HOSPITALARES 2
 
Organização serviços de saúde
Organização serviços de saúdeOrganização serviços de saúde
Organização serviços de saúde
 
ORGANIZAÇÃO HOSPITALAR
ORGANIZAÇÃO HOSPITALARORGANIZAÇÃO HOSPITALAR
ORGANIZAÇÃO HOSPITALAR
 

Similaire à Ps8

Lynn Legacy 3.2.3
Lynn Legacy 3.2.3Lynn Legacy 3.2.3
Lynn Legacy 3.2.3
cgirl369
 
Rumplemeanskin
RumplemeanskinRumplemeanskin
Rumplemeanskin
w5w
 
Reality Bites: Chapter Eight
Reality Bites: Chapter EightReality Bites: Chapter Eight
Reality Bites: Chapter Eight
SuperFrog4
 
Fortune’s fancy chapter 1-3
Fortune’s fancy  chapter 1-3Fortune’s fancy  chapter 1-3
Fortune’s fancy chapter 1-3
nicbemused
 
The Science of a Legacy: Chapter Thirty-Four, Part One
The Science of a Legacy: Chapter Thirty-Four, Part OneThe Science of a Legacy: Chapter Thirty-Four, Part One
The Science of a Legacy: Chapter Thirty-Four, Part One
gintasticnecat
 
Ĉapitro Dekses - Part C
Ĉapitro Dekses - Part CĈapitro Dekses - Part C
Ĉapitro Dekses - Part C
Lady Lark
 
Yakko's World OWBC - Chapitre Dix-sept - Part B
Yakko's World OWBC - Chapitre Dix-sept - Part BYakko's World OWBC - Chapitre Dix-sept - Part B
Yakko's World OWBC - Chapitre Dix-sept - Part B
Lady Lark
 
This is beautiful
This is beautifulThis is beautiful
This is beautiful
manjusinha7
 
This is beautiful...
This is beautiful...This is beautiful...
This is beautiful...
manjusinha7
 
This Is Beautiful
This Is BeautifulThis Is Beautiful
This Is Beautiful
Aadil Baig
 

Similaire à Ps8 (20)

Lynn Legacy 3.2.3
Lynn Legacy 3.2.3Lynn Legacy 3.2.3
Lynn Legacy 3.2.3
 
Rumplemeanskin
RumplemeanskinRumplemeanskin
Rumplemeanskin
 
Reality Bites: Chapter Eight
Reality Bites: Chapter EightReality Bites: Chapter Eight
Reality Bites: Chapter Eight
 
Fortune’s fancy chapter 1-3
Fortune’s fancy  chapter 1-3Fortune’s fancy  chapter 1-3
Fortune’s fancy chapter 1-3
 
Graphic narrative storyboard and flatplan
Graphic narrative storyboard and flatplanGraphic narrative storyboard and flatplan
Graphic narrative storyboard and flatplan
 
ESWN 2.5
ESWN 2.5ESWN 2.5
ESWN 2.5
 
ESWN 2.6
ESWN 2.6ESWN 2.6
ESWN 2.6
 
The Science of a Legacy: Chapter Thirty-Four, Part One
The Science of a Legacy: Chapter Thirty-Four, Part OneThe Science of a Legacy: Chapter Thirty-Four, Part One
The Science of a Legacy: Chapter Thirty-Four, Part One
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Ĉapitro Dekses - Part C
Ĉapitro Dekses - Part CĈapitro Dekses - Part C
Ĉapitro Dekses - Part C
 
Yakko's World OWBC - Chapitre Dix-sept - Part B
Yakko's World OWBC - Chapitre Dix-sept - Part BYakko's World OWBC - Chapitre Dix-sept - Part B
Yakko's World OWBC - Chapitre Dix-sept - Part B
 
This is beautiful
This is beautifulThis is beautiful
This is beautiful
 
This is beautiful...
This is beautiful...This is beautiful...
This is beautiful...
 
This is beautiful...
This is beautiful...This is beautiful...
This is beautiful...
 
This Is Beautiful
This Is BeautifulThis Is Beautiful
This Is Beautiful
 
An Official Wacky Boolprop Challenge: Chapter 8
An Official Wacky Boolprop Challenge: Chapter 8An Official Wacky Boolprop Challenge: Chapter 8
An Official Wacky Boolprop Challenge: Chapter 8
 
The Bradford Legacy - Chapter 31
The Bradford Legacy - Chapter 31The Bradford Legacy - Chapter 31
The Bradford Legacy - Chapter 31
 
My Best Birthday
My Best BirthdayMy Best Birthday
My Best Birthday
 
The Vetinari Dualegacy Chapter 16
The Vetinari Dualegacy Chapter 16The Vetinari Dualegacy Chapter 16
The Vetinari Dualegacy Chapter 16
 
Miri Tries a Legacy Chapter 12
Miri Tries a Legacy Chapter 12Miri Tries a Legacy Chapter 12
Miri Tries a Legacy Chapter 12
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Ps8

  • 1.
  • 2. There once was a little girl named Alyssa P. Hacker.
  • 3. Her dad was a computer scientist. He worked with computers all day long.
  • 4. Alyssa always heard him talking about something called “recursion”, so one day she asked him, “Dad, what does ‘recursion’ mean?” “Well,” he said, “Recursion is when you define a procedure in terms of itself.” “I don’t get it,” said Alyssa.
  • 5. “Let me put it this way,” her dad said. “You know the story of Cinderella, don’t you?” he asked. “Of course! She’s my favorite princess!” Alyssa smiled. “Do you remember what happens at the end?” he asked. “Yeah! The prince finds Cinderella and they get married and live happily ever after!”
  • 6. “Right!” he said. “The prince knows that the shoe will only fit Cinderella, but he doesn’t know who she is, so he must test all of the girls until he finds her. Since he doesn’t know how many girls there are, he doesn’t know how many times he will have to try the same test, so he used logic to devise a method of finding Cinderella.
  • 7. He tries the shoe on a girl, and if the shoe fits, they can get married and live happily every after, but if not, he must move on to the next girl and try to find Cinderella again by trying the shoe on her. He can only stop once he finds the right girl! What the prince was doing was like a recursive procedure.”
  • 8. “Oh!” said Alyssa. “I think I get it now! Recursion is like trying to solve a problem by trying the same idea over and over again on different things until it works.” “That’s pretty close!” her dad told her. “I think you’ll be a great computer scientist one day!”
  • 9.
  • 10. (define (Find-Cinderella girls) (if (Shoe-fits? (car girls)) (Live-Happily-Ever-After) (Find-Cinderella (cdr girls))))
  • 11. Picture Sources: • http://www.free-clipart- pictures.net/free_clipart/kid_clipart/kid_clipart_girl_smiling.gif • http://mylesfish.files.wordpress.com/2009/11/computer-guy-clip- art.png • https://lh3.googleusercontent.com/- eQdxpgeVxcg/TW8BjZKekiI/AAAAAAAACB4/Nt5oyJBed8o/girl- confused-vector.jpg • http://eventservices.disney.go.com/files/400001965139.jpg • http://images2.fanpop.com/image/polls/390000/390297_126765232 6501_full.jpg • http://www.disneyclips.com/imagesnewb3/imageslwrakr01/cn94.gif • http://activerain.com/image_store/uploads/5/6/8/1/9/ar126300265 191865.jpg • http://images1.wikia.nocookie.net/__cb20101009032724/disney/ima ges/6/61/Feb511.gif • http://pegaweb.com/tutorials/open-book-with-pages/5.jpg • http://www.fromoldbooks.org/Geneva/pages/000-Front-Cover/000- Front-Cover-q75-1007x1300.jpg