SlideShare a Scribd company logo
1 of 12
12:38
Algorithms
Algorithms in Computer Science
What’s covered: 1. What is an Algorithm 2. Algorithms in the real world 3. What makes a good algorithm?
4. Writing your own Algorithm. 5. Evaluating Algorithms. 6. Big picture – interesting discussion question.
Lesson 1
12:38
Definition of an algorithm.
For your notebooks: In essence, algorithms are simply a series of
instructions that are followed, step by step, to do something useful or solve
a problem.
Starter question:
I have a series of facedown cards. One of them is the number “7”. The
cards are organised in ascending order (smallest to biggest).
You can flip one card at a time. What is the quickest way to find number 7?
index numbers
12:38
You have just developed an algorithm!
1. Flip over the first card
2. If it is not 7, then flip over the second card
3. Keep doing this until the number 7 is found!
The above algorithm is essentially a LINEAR SEARCH. It will
work but if no. 7 is at the end, it will take a long time.
Imagine if you had a million cards!
Can you think of a better way? (answer revealed in this series!)
7
7
index numbers
12:38
Why are algorithms important?
• They organize thought and action (computational
thinking)
• They can be made very precise for implementation on
computers, smart phones, and other devices • in a
variety of programming languages (e.g. Python, R,
Java) • as computer programs, software packages,
mobile apps
• A computer program is an implemented algorithm
12:38
Are these algorithms?
• Recipe
• Addition and subtraction sums
12:38
Every time you use Google or Facebook
• Every time you hit the
search button on Google,
the search engine sifts
through thousands, if not
millions of webpages, to
spit out the content you
are seeking in a fraction of
a second.
• What makes this possible
is the underlying
algorithm—a simple set of
mathematical rules
embedded in the software.
Facebook and Google search are also
based on algorithms, though they are more
complex than the regular algorithms," he
said.
12:38
Task:
You have been given the task
to program a kid-friendly
robot.
The robot must move around
the room and must ask young
children if they have washed
their hands and encourage
them to do so if they have not. It
must continue to do this until
every pupil in the class has
washed their hands.
Write an algorithm to achieve
this. The robot will follow your
instructions.
1: Take two steps forward.
2: If you collide with a pupil, ask the
pupil for their name …
sda
12:38
What makes a good algorithm?
Suggested activity: A few pupils can read out
their algorithm.
Evaluate:
1. What are some good points about their
algorithm?
2. How could they improve it?
sda
12:38
What makes a good algorithm?
Correctness: the algorithm performs the task
without error
Efficiency: the algorithm uses as little time and/or
as little space as necessary, but there is almost
always a trade-off between time and space
Comprehensibility: the algorithm can be
understood (which helps with human efficiency)
C
E
C
Can you improve yours?
sda
12:38
Interesting reading
Do humans have algorithms?
Underlying that idea is another: that organisms —
including human beings — are essentially algorithmic.
That even the human mind is itself only a super-complex algorithm, and
in order to model it perfectly all we need to do is build our
own algorithm of sufficient sophistication.
Is there more to a human or are we essentially very complex input-
processing-output machines? What do you think?
sda
12:38
“Big picture” discussion
Sometimes we hear it said that certain behaviours
are “hard wired” like permanent algorithms into
us. Some people have personalities that are
“angry” and others are always “fearful”.
Are there algorithms at play in our own humanity?
Can we alter these apparent algorithms? How?
sda
12:38
Next Lesson
• Types of Algorithms
• Pseudocode and Flowcharts

More Related Content

What's hot

Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDevashish Shanker
 
IT_Computational thinking
IT_Computational thinkingIT_Computational thinking
IT_Computational thinkingadmin57
 
Computational thinking-illustrated
Computational thinking-illustratedComputational thinking-illustrated
Computational thinking-illustratedCraig Evans
 
Computational Thinking in the Workforce and Next Generation Science Standards...
Computational Thinking in the Workforce and Next Generation Science Standards...Computational Thinking in the Workforce and Next Generation Science Standards...
Computational Thinking in the Workforce and Next Generation Science Standards...Josh Sheldon
 
"An Introduction to AI and Deep Learning"
"An Introduction to AI and Deep Learning""An Introduction to AI and Deep Learning"
"An Introduction to AI and Deep Learning"Oswald Campesato
 
DL Classe 0 - You can do it
DL Classe 0 - You can do itDL Classe 0 - You can do it
DL Classe 0 - You can do itGregory Renard
 
Junkbots and computational thinking
Junkbots and computational thinkingJunkbots and computational thinking
Junkbots and computational thinkingScott Turner
 
Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha Animesh Sinha
 
Artificial Neural Network Seminar - Google Brain
Artificial Neural Network Seminar - Google BrainArtificial Neural Network Seminar - Google Brain
Artificial Neural Network Seminar - Google BrainRawan Al-Omari
 
Getting started with programming KS1
Getting started with programming KS1Getting started with programming KS1
Getting started with programming KS1Pippa Totraku
 
Data Science: A Mindset for Productivity
Data Science: A Mindset for ProductivityData Science: A Mindset for Productivity
Data Science: A Mindset for ProductivityDaniel Tunkelang
 
Machine creativity TED Talk 2.0
Machine creativity TED Talk 2.0Machine creativity TED Talk 2.0
Machine creativity TED Talk 2.0Cameron Aaron
 
Deep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial IntelligenceDeep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial IntelligenceRukshan Batuwita
 
Machine Learning Introduction
Machine Learning IntroductionMachine Learning Introduction
Machine Learning IntroductionYounesCharfaoui
 
Wanderings
WanderingsWanderings
Wanderingsgmandar
 
Getting started with programming ks1
Getting started with programming ks1Getting started with programming ks1
Getting started with programming ks1kturvey
 

What's hot (20)

Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language Processing
 
Ai introduction
Ai  introductionAi  introduction
Ai introduction
 
IT_Computational thinking
IT_Computational thinkingIT_Computational thinking
IT_Computational thinking
 
Decision Modelling for n00bs
Decision Modelling for n00bsDecision Modelling for n00bs
Decision Modelling for n00bs
 
Unit 2 ai
Unit 2 aiUnit 2 ai
Unit 2 ai
 
Computational thinking-illustrated
Computational thinking-illustratedComputational thinking-illustrated
Computational thinking-illustrated
 
Computational Thinking in the Workforce and Next Generation Science Standards...
Computational Thinking in the Workforce and Next Generation Science Standards...Computational Thinking in the Workforce and Next Generation Science Standards...
Computational Thinking in the Workforce and Next Generation Science Standards...
 
"An Introduction to AI and Deep Learning"
"An Introduction to AI and Deep Learning""An Introduction to AI and Deep Learning"
"An Introduction to AI and Deep Learning"
 
DL Classe 0 - You can do it
DL Classe 0 - You can do itDL Classe 0 - You can do it
DL Classe 0 - You can do it
 
Ev681 computing 1
Ev681   computing 1Ev681   computing 1
Ev681 computing 1
 
Junkbots and computational thinking
Junkbots and computational thinkingJunkbots and computational thinking
Junkbots and computational thinking
 
Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha
 
Artificial Neural Network Seminar - Google Brain
Artificial Neural Network Seminar - Google BrainArtificial Neural Network Seminar - Google Brain
Artificial Neural Network Seminar - Google Brain
 
Getting started with programming KS1
Getting started with programming KS1Getting started with programming KS1
Getting started with programming KS1
 
Data Science: A Mindset for Productivity
Data Science: A Mindset for ProductivityData Science: A Mindset for Productivity
Data Science: A Mindset for Productivity
 
Machine creativity TED Talk 2.0
Machine creativity TED Talk 2.0Machine creativity TED Talk 2.0
Machine creativity TED Talk 2.0
 
Deep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial IntelligenceDeep Learning: Towards General Artificial Intelligence
Deep Learning: Towards General Artificial Intelligence
 
Machine Learning Introduction
Machine Learning IntroductionMachine Learning Introduction
Machine Learning Introduction
 
Wanderings
WanderingsWanderings
Wanderings
 
Getting started with programming ks1
Getting started with programming ks1Getting started with programming ks1
Getting started with programming ks1
 

Similar to 1 - Amazing Algorithms (Intro)

Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptxSyed Zaid Irshad
 
Deep learning with tensorflow
Deep learning with tensorflowDeep learning with tensorflow
Deep learning with tensorflowCharmi Chokshi
 
PPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORYPPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORYbutest
 
Basics of machine_learning
Basics of machine_learningBasics of machine_learning
Basics of machine_learningHasib Shaikh
 
Deep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do ItDeep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do ItHolberton School
 
Software Development is Upside Down
Software Development is Upside DownSoftware Development is Upside Down
Software Development is Upside Downallan kelly
 
Deep learning Introduction and Basics
Deep learning  Introduction and BasicsDeep learning  Introduction and Basics
Deep learning Introduction and BasicsNitin Mishra
 
Notes on Simulation and GHDL
Notes on Simulation and GHDLNotes on Simulation and GHDL
Notes on Simulation and GHDLDIlawar Singh
 
Artificial Intteligence-unit 1.pptx
Artificial Intteligence-unit 1.pptxArtificial Intteligence-unit 1.pptx
Artificial Intteligence-unit 1.pptxhoneydv1979
 
Get connected with python
Get connected with pythonGet connected with python
Get connected with pythonJan Kroon
 
An Introduction to Machine Learning
An Introduction to Machine LearningAn Introduction to Machine Learning
An Introduction to Machine LearningAngelo Simone Scotto
 
Unit 1 Introduction to Artificial Intelligence.pptx
Unit 1 Introduction to Artificial Intelligence.pptxUnit 1 Introduction to Artificial Intelligence.pptx
Unit 1 Introduction to Artificial Intelligence.pptxDr.M.Karthika parthasarathy
 
Artificial Intelligence PPT.ppt
Artificial Intelligence PPT.pptArtificial Intelligence PPT.ppt
Artificial Intelligence PPT.pptDarshRawat2
 
Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018HJ van Veen
 

Similar to 1 - Amazing Algorithms (Intro) (20)

Data Structure and Algorithms.pptx
Data Structure and Algorithms.pptxData Structure and Algorithms.pptx
Data Structure and Algorithms.pptx
 
Deep learning with tensorflow
Deep learning with tensorflowDeep learning with tensorflow
Deep learning with tensorflow
 
2014 pycon-talk
2014 pycon-talk2014 pycon-talk
2014 pycon-talk
 
PPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORYPPT slides - MACHINE PERCEPTION LABORATORY
PPT slides - MACHINE PERCEPTION LABORATORY
 
Basics of machine_learning
Basics of machine_learningBasics of machine_learning
Basics of machine_learning
 
Deep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do ItDeep Learning Class #0 - You Can Do It
Deep Learning Class #0 - You Can Do It
 
Software Development is Upside Down
Software Development is Upside DownSoftware Development is Upside Down
Software Development is Upside Down
 
Deep learning Introduction and Basics
Deep learning  Introduction and BasicsDeep learning  Introduction and Basics
Deep learning Introduction and Basics
 
Notes on Simulation and GHDL
Notes on Simulation and GHDLNotes on Simulation and GHDL
Notes on Simulation and GHDL
 
AI CH 1d.pptx
AI CH 1d.pptxAI CH 1d.pptx
AI CH 1d.pptx
 
Artificial Intteligence-unit 1.pptx
Artificial Intteligence-unit 1.pptxArtificial Intteligence-unit 1.pptx
Artificial Intteligence-unit 1.pptx
 
Get connected with python
Get connected with pythonGet connected with python
Get connected with python
 
Deep learning
Deep learningDeep learning
Deep learning
 
tensorflow.pptx
tensorflow.pptxtensorflow.pptx
tensorflow.pptx
 
An Introduction to Machine Learning
An Introduction to Machine LearningAn Introduction to Machine Learning
An Introduction to Machine Learning
 
Unit 1 Introduction to Artificial Intelligence.pptx
Unit 1 Introduction to Artificial Intelligence.pptxUnit 1 Introduction to Artificial Intelligence.pptx
Unit 1 Introduction to Artificial Intelligence.pptx
 
Artificial Intelligence PPT.ppt
Artificial Intelligence PPT.pptArtificial Intelligence PPT.ppt
Artificial Intelligence PPT.ppt
 
Ai lecture1 final
Ai lecture1 finalAi lecture1 final
Ai lecture1 final
 
C programming guide new
C programming guide newC programming guide new
C programming guide new
 
Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

1 - Amazing Algorithms (Intro)

  • 1. 12:38 Algorithms Algorithms in Computer Science What’s covered: 1. What is an Algorithm 2. Algorithms in the real world 3. What makes a good algorithm? 4. Writing your own Algorithm. 5. Evaluating Algorithms. 6. Big picture – interesting discussion question. Lesson 1
  • 2. 12:38 Definition of an algorithm. For your notebooks: In essence, algorithms are simply a series of instructions that are followed, step by step, to do something useful or solve a problem. Starter question: I have a series of facedown cards. One of them is the number “7”. The cards are organised in ascending order (smallest to biggest). You can flip one card at a time. What is the quickest way to find number 7? index numbers
  • 3. 12:38 You have just developed an algorithm! 1. Flip over the first card 2. If it is not 7, then flip over the second card 3. Keep doing this until the number 7 is found! The above algorithm is essentially a LINEAR SEARCH. It will work but if no. 7 is at the end, it will take a long time. Imagine if you had a million cards! Can you think of a better way? (answer revealed in this series!) 7 7 index numbers
  • 4. 12:38 Why are algorithms important? • They organize thought and action (computational thinking) • They can be made very precise for implementation on computers, smart phones, and other devices • in a variety of programming languages (e.g. Python, R, Java) • as computer programs, software packages, mobile apps • A computer program is an implemented algorithm
  • 5. 12:38 Are these algorithms? • Recipe • Addition and subtraction sums
  • 6. 12:38 Every time you use Google or Facebook • Every time you hit the search button on Google, the search engine sifts through thousands, if not millions of webpages, to spit out the content you are seeking in a fraction of a second. • What makes this possible is the underlying algorithm—a simple set of mathematical rules embedded in the software. Facebook and Google search are also based on algorithms, though they are more complex than the regular algorithms," he said.
  • 7. 12:38 Task: You have been given the task to program a kid-friendly robot. The robot must move around the room and must ask young children if they have washed their hands and encourage them to do so if they have not. It must continue to do this until every pupil in the class has washed their hands. Write an algorithm to achieve this. The robot will follow your instructions. 1: Take two steps forward. 2: If you collide with a pupil, ask the pupil for their name …
  • 8. sda 12:38 What makes a good algorithm? Suggested activity: A few pupils can read out their algorithm. Evaluate: 1. What are some good points about their algorithm? 2. How could they improve it?
  • 9. sda 12:38 What makes a good algorithm? Correctness: the algorithm performs the task without error Efficiency: the algorithm uses as little time and/or as little space as necessary, but there is almost always a trade-off between time and space Comprehensibility: the algorithm can be understood (which helps with human efficiency) C E C Can you improve yours?
  • 10. sda 12:38 Interesting reading Do humans have algorithms? Underlying that idea is another: that organisms — including human beings — are essentially algorithmic. That even the human mind is itself only a super-complex algorithm, and in order to model it perfectly all we need to do is build our own algorithm of sufficient sophistication. Is there more to a human or are we essentially very complex input- processing-output machines? What do you think?
  • 11. sda 12:38 “Big picture” discussion Sometimes we hear it said that certain behaviours are “hard wired” like permanent algorithms into us. Some people have personalities that are “angry” and others are always “fearful”. Are there algorithms at play in our own humanity? Can we alter these apparent algorithms? How?
  • 12. sda 12:38 Next Lesson • Types of Algorithms • Pseudocode and Flowcharts

Editor's Notes

  1. Encourage students to think about different algorithms that would be most efficient at retrieving the number 7, if number 7 was the third card or the last card!
  2. The answer is yes! Image source: preppykitchen.com
  3. The answer is yes! Image source: preppykitchen.com
  4. https://medium.com/dataseries/you-are-not-an-algorithm-e401c722e9c7