SlideShare a Scribd company logo
1 of 64
Download to read offline
SnapCon19, Heidelberg,
September 22 - 25, 2019
Katy’s mind map, 

2nd last year student in sciences (Première S).
Snap!, a powerful tool
for studying algorithms in high school
Snap!, a powerful tool for understanding
mathematics through algorithms in high
school
2nd last year student in sciences (Première S).
Nell’s mind map
lycee.nathalierun.net
since 2008
Images of Mathematics in class
Snap!
On the website lycee.nathalierun.net I have written everything that had been done in
class.
I used Snap! in class for the first time in march 2016.
I introduced Snap! and Scratch the same way I would for a 10 year old child. My students
are 16-17 year olds. But my practice with Snap! in class advanced a lot, which made me
progress in teaching Mathematics.
As I am part of the IREM (Institute Research on teaching Mathematics), I wrote
several articles on using Snap! in class.

The first article I dedicated to Snap! was written in April 2017 :
`Coder des algorithmes avec Snap! - Programmation visuelle au lycée` 

(programming algorithms with Snap!, visual programming in high school)
Here is an image of the first time I used Snap! in class to illustrate the
concept of function. It was in February 2017.
nathalierun.net/lycee/piwigo/picture.php?/6380/category/104
Since that day, everything has been coded as a function, thanks to Snap!.
Input
Box
Output
Snap! cloud actually hosts
2.5 millions projects, of
which about :

- 800,000 shared projects,

- 125 published projects.
The Scratch which lets you code the code
the `Scratch` to code the code
Tradition wants to build Mathematical basis
on set theory. It can be proved that you can
put the notion of a Function in the center
of the structure. The argument comes from
Alonzo Church's work. Alonzo Church is well
known for his lambda calculus development,
which leads to functional programming in
which computation is based on mathematical
functions evaluation.
Thanks to my years of teaching to 2nd last year students in sciences (Première S), I
sense that every Math'algorithm is a Function. Moreover, Snap! totally convinced me of
this fact, thus helping me to illustrate and to corroborate it.
Never had any mathematical conversations
with anybody, because there was nobody
else in my field.
Alonzo Church
Mathématicien, Logicien

(14 June, 1903 – 11 August, 1995)
Moreover, one can notice
this anecdote: Snap!
mascot’s name is Alonzo and
it’s hair is slicked and
drawn in the form of a
Lambda...
λ
images.math.cnrs.fr/Et-si-on-commencait-par-les.html
Snap! and Functional Programming
When you think permanently in Computational thinking, this allows a better and
clearer mathematical thinking.
What is Computational thinking ?
Jeanette Wing gave this definition in 2011
revue.sesamath.net/spip.php?article1096
Computer science teacher,
born in 1956, 

MIT graduated.
Computational thinking will develop a functional way of
thinking in the students’ minds.
In fact, following Computational thinking leads to:
analyze a problem, break it down into many small functions with very specific and
very small tasks.
Computational thinking
Thought processes involved in
formulating a problem and
expressing its solution(s) in such
a way that a computer—human or
machine can effectively carry out.
And Snap! is good for this. So, I practiced in class in real time a computational
thinking always illustrated with Snap! scripts, close to a scripting language
illustrating the natural language.
Through out the year, I therefore tried to approach any notion in terms of
algorithms.
I used Snap! in class
to write any
algorithm but also to
code it and to test
it.
The idea is to open students' minds to a computational thinking,
independent to a precise programming language.
Of course, I used Python also
as a textual programming
language ...
As it is part of the french
curriculum.
algorithm research
in class
Write, code and test
Every day, I try to lead my
students to Computational
Thinking, to continuously
think in term of Functions.
We enter objects in the Box, whatever they are. The box treats and brings back a result, the
one which is expected by the student. This obliges my students to think Mathematics in terms
of objects. To understand that Functions are not only Numbers, algorithms neither, and a
result is not necessarily numerical. From this teaching experience, their feedback has made
me grow. I feel like I’m on the right pass. They have also made me learn new things and
realize the power of this functional vision of the Algorithmic.
From algorithms to functions...
Input
Box
Output
One day, during an activity on the Von
Koch snowflake, I asked my students
which object was returned back by the
algorithm. Aliyah answered me, as an
evidence, "Et bien, le dessin
Madame ! » (« Of course, the drawing
Miss ! »).
We deduced together that this
algorithm was effectively a function:
a relation between a set of entries,
treated in the Box (the algorithm),
and the output drawing.
The algorithmic revisited with Snap! and Python
Students’ mind map extracts
Function concept
Students’ mind map extracts
Function concept
Inputs-outputs notions
Two essential ideas: the universal notion of a function on one hand and
programming as a production of a text in a computer language on the other
hand.
The notion of a function in Mathematics and Computer science come under
the same universal concept.
In the third last year Program Accompanying Document: 

Programming Algorithms
Some extracts ...
Note that the input/output functions (input and print functions) are not developed in this
document. They do not belong to algorithmic thinking and the program's emphasis on the
notion of functions make it possible to get rid of it completely.
Algorithmic No language, no software is imposed.
But the use of Python is advocated
Algorithms have a natural place in all fields of Mathematics and the problems posed.
In the official Mathematics program of the
2nd and 3rd last years of high-school...
For the sake of simplicity and coherence, an evolution in the way you write
algorithms was proposed in subjects of Baccalaureat obeying the following
principles:
we got rid of the declaration of the variables, the assumptions
made on the variables being specified elsewhere
we got rid of input/output (consistent with the new
accompanying document in 3rd last year of high-school - p5)
simplification of the
syntax, with the symbol ←
for the assignment.
←
←
←
From June 2018
S ← 0
U ← 900
for i from 1 to 10
S ← ...
U ← 0,75 U + 12
end for
Pseudo-code
Evolution of the way you write algorithms
in « Baccalaureat »
Let's build the program of 2nd last
year of high-school...
... under an algorithmic vision
... through a functional approach
I try to free students from I/O and make them think
independently of a programming language.
Focus on the essentials: understanding mathematics through
algorithms.
Input
Algorithm
Output
A first example...
Students must arrange the blocks in the
correct order to obtain the requested
function.
1
2
3
nathalierun.net/lycee/piwigo/picture.php?/7416/category/125
Which order ?
Students must arrange the blocks in the
correct order to obtain the requested
function.
1
2
3
nathalierun.net/lycee/piwigo/picture.php?/7416/category/125
Which order ?
How to call a function with Snap!
Quadratic factorization
Sign of a quadratic expression
Quadratic equation
Snap allowed me to
instill computational
thinking in my
students: analyze a
problem, break it
down into many small
functions with very
specific and very
small tasks.
Quadratic functions study:creating a Snap! software
Quadratic equation
Here is a very specific
and very small task, a
part of what we can do
with a quadratic
equation.
Solving a quadratic equation with Snap!
analyzing the problem
to be able to create
a Snap! software
Computes the top of the
parabola
Quadratic function study:
Computes the
factorization of the
quadratic expression.
Analyze a problem,
break it down into
many small functions
with very specific and
very small tasks...
The problem was broken
down into many small
functions with very
specific and very small
tasks.
This is typically a Computational thinking
rigorous approach, according to Jeanette Wing.
Solving a quadratic function with Snap!
Trigonometry
Principal measure of
an angle
Alonzo sketches a circle.
At the same time, his
companions Sine and Cosine
sketchs two nice waves.
Bring operators to the data:
essence of functional programming...
map/combine works hand in hand
and gives us a very powerful
tool to work on numbers.
Making a table of values
becomes child's play with
Snap's lists!
Bringing Algorithms to Data: 

Essence of Functional Programming ...
Table of values
Related functions
From which function is it?
Play with functions
in Python
It’s easy to come to Python,
coming from Snap!
u0, q, n
u u(n)
Examples of Numerical sequences
Iterative version
Examples of Numerical sequences
2 to the power of
Examples of Numerical sequences
here are some very commun results
when we study series.

It’s instant.
Sum of integers (Triangular numbers)
Sum of squares (square pyramidal numbers)
Sum of cubes (Squared triangular numbers)
Boolean operators and
Logic with sprites
with

input/output
Algorithms in Analytic Geometry
a mind map performed
by a 3rd last year
student in 2011-2012
without

input/output
Algorithms in Analytic Geometry
a mind map performed
by a 3rd last year
student in 2011-2012
Algorithms in
Analytic Geometry
my own Snap! mind map...
Dot product
Euclidean algorithm
Arithmetic is one of the areas
of mathematics most appropriate
to start programming.
a bit of arithmetic algorithms...
greatest commun divisor
Equality of Bézout
Various algorithms illustrating
the notion of a function
thanks to Snap!
Step-by-step resolution of an equation
by the bisection method
Bisection method
a,b,f Bisection
method
a<x0<b
Probabilities
Recursive version
Iterative version
Binomial Law
This exercise can be done as a personalized
accompaniment and generates work on the percentages.
Exercise on coding colors
Studying fractals in class with Snap!
Numerical sequences
Calculations
Sketch
Ruler and Compass construction
blank paper
Ruler and Compass
A3
A4
a very sharp pencil
Study of sequences’ limits
Introduction
discovery
Recursive expression
Delimited figures
with infinite perimeter
Philosophy of the infinity
Initiate to recursive thinking
shapes
auto similarity
Algorithmic
Maths’ enchantment
The beauty of Fractals
Algorithms in geometry
by hand
Computer programming
Geometry
Thales’ theorem
Orientate the plan
Enjoy doing Maths
Numerical algorithms
Fractals
in class
Pythagorean’ theorem
Develop Computational Thinking
Fractals
in class
address/tackle = aborder

ludic/fun
to connect
Data, Initialisations
Hand sketching
First calculations
A part on algorithms
Computer programming
Back to calculations
Homework map
Paper sketch
Algorithms and computer
programming
Geometry and plane orientation
Calculations and numerical sequences
School year 2018-2019
Study of the snowflakePremière S level
An assignment on Fractals
Hand made straightedge and compass constructions
The algorithmic part is supposed to lead the
student to write a recursive function.
We deduced together that this algorithm was indeed a function.
It has all its ingredients: entries processed in a box, and the
resulting drawing.
Let’s introduce students to
the concept of recursion ...
When I asked the students what was
the object returned by the algorithm,
Aliyah said it was obvious: Well, the
drawing Miss.
Beauty and joy of computing...
The Snowflake
Von Koch Island
step 4
some Von Koch’s constructions...
...Changing the seed
The orientation of the seed is chosen randomly at each step.
This idea came first to Benoît
Mandelbrot in early’s 1980’s

to ameliorate the simulation of britany's
coast
Random Van Koch...
Random Van Koch...
School years
2016-2017 and 2017-2018
Première S and Terminale S
Study of the
Sierpinski Triangle
Data : three points A,B,C, n step number
(the triangle ABC alone represents step 0)
Initialisations :
Triangle ABC
A* midpoint of [BC]
B* midpoint of [CA]
C* midpoint of [AB]
Fill the triangles BA*C*, A*CB*, C*B*A
Leave the triangle A*B*C* empty
Start over the previous process on each of the 3 triangles
BA*C*, A*CB*, C*B*A till step n.
Carry out the steps 1, 2, 3, 4 and 5.
For each step, give :
- the numbered of colored triangles T_n
- the length of each side c_n
- their separate areas a_n
- their separate perimeters p_n
- the whole area of the shaded (or colored) triangles A_n
- the whole perimeter of these triangles P_n
Sierpinski’s fractal Instructions for
the assignment
Marie’s work
Hand made straightedge and compass
construction: steps 0 to 5
A colored Snap! construction: steps 0 to 8
Beauty of the recursive algorithm
Silent story...
Silent story...
Silent story...
Silent story...
Silent story...
The variables are listed
Begin/End to delimit the algorithm
The result is displayed
1st version of Clara’s mind map
2nd version of Clara’s mind map
without input/output,
illustrated with Snap!
Julie’s mind map
2nd last year student in
sciences (Première S).
Using functions,

the algorithm is refined, purged.
Shakira’s mind map
2nd last year student in
sciences (Première S).
Seymour Papert
The role of the teacher is to
create the conditions for
innovation rather than
provide ready-made knowledge.
https://snap.berkeley.edu/user?user=nathalierun

More Related Content

Similar to Snap!, a powerful tool for studying algorithms in high school

Computational Thinking as an Emergent Learning Trajectory of Mathematics
Computational Thinking as an Emergent Learning Trajectory of MathematicsComputational Thinking as an Emergent Learning Trajectory of Mathematics
Computational Thinking as an Emergent Learning Trajectory of MathematicsTiina Partanen
 
Coding io1-materials for students-group2
Coding io1-materials for students-group2Coding io1-materials for students-group2
Coding io1-materials for students-group2Georgeta Manafu
 
Artificial Intelligence power point presentation document
Artificial Intelligence power point presentation documentArtificial Intelligence power point presentation document
Artificial Intelligence power point presentation documentDavid Raj Kanthi
 
Engineering And Technology
Engineering And TechnologyEngineering And Technology
Engineering And TechnologyAmanda Reed
 
SD38 LRT March 2016 math apps
SD38 LRT March 2016 math appsSD38 LRT March 2016 math apps
SD38 LRT March 2016 math appsJanice Novakowski
 
Ppt Rosemund Sutherland
Ppt Rosemund SutherlandPpt Rosemund Sutherland
Ppt Rosemund SutherlandCeppe Chile
 
Computational thinking programming and robotics as strategy to promote 21st c...
Computational thinking programming and robotics as strategy to promote 21st c...Computational thinking programming and robotics as strategy to promote 21st c...
Computational thinking programming and robotics as strategy to promote 21st c...João Piedade
 
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaSierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaPhilip Schwarz
 
3.3 the math object
3.3   the math object3.3   the math object
3.3 the math objectallenbailey
 
Technology Lesson Plan Assignment: Quadratice Functions
Technology Lesson Plan Assignment: Quadratice FunctionsTechnology Lesson Plan Assignment: Quadratice Functions
Technology Lesson Plan Assignment: Quadratice Functionsdart11746
 

Similar to Snap!, a powerful tool for studying algorithms in high school (14)

Computational Thinking as an Emergent Learning Trajectory of Mathematics
Computational Thinking as an Emergent Learning Trajectory of MathematicsComputational Thinking as an Emergent Learning Trajectory of Mathematics
Computational Thinking as an Emergent Learning Trajectory of Mathematics
 
Coding io1-materials for students-group2
Coding io1-materials for students-group2Coding io1-materials for students-group2
Coding io1-materials for students-group2
 
Artificial Intelligence power point presentation document
Artificial Intelligence power point presentation documentArtificial Intelligence power point presentation document
Artificial Intelligence power point presentation document
 
Engineering And Technology
Engineering And TechnologyEngineering And Technology
Engineering And Technology
 
SD38 LRT March 2016 math apps
SD38 LRT March 2016 math appsSD38 LRT March 2016 math apps
SD38 LRT March 2016 math apps
 
2013 Limacon Memo
2013 Limacon Memo2013 Limacon Memo
2013 Limacon Memo
 
Proposal gcompris
Proposal gcomprisProposal gcompris
Proposal gcompris
 
Lesson 11 1
Lesson 11  1Lesson 11  1
Lesson 11 1
 
Ppt Rosemund Sutherland
Ppt Rosemund SutherlandPpt Rosemund Sutherland
Ppt Rosemund Sutherland
 
Computational thinking programming and robotics as strategy to promote 21st c...
Computational thinking programming and robotics as strategy to promote 21st c...Computational thinking programming and robotics as strategy to promote 21st c...
Computational thinking programming and robotics as strategy to promote 21st c...
 
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaSierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
 
3.3 the math object
3.3   the math object3.3   the math object
3.3 the math object
 
Lection 1.pptx
Lection 1.pptxLection 1.pptx
Lection 1.pptx
 
Technology Lesson Plan Assignment: Quadratice Functions
Technology Lesson Plan Assignment: Quadratice FunctionsTechnology Lesson Plan Assignment: Quadratice Functions
Technology Lesson Plan Assignment: Quadratice Functions
 

Recently uploaded

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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 

Recently uploaded (20)

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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 

Snap!, a powerful tool for studying algorithms in high school

  • 1. SnapCon19, Heidelberg, September 22 - 25, 2019 Katy’s mind map, 
 2nd last year student in sciences (Première S). Snap!, a powerful tool for studying algorithms in high school Snap!, a powerful tool for understanding mathematics through algorithms in high school
  • 2. 2nd last year student in sciences (Première S). Nell’s mind map
  • 4. Snap! On the website lycee.nathalierun.net I have written everything that had been done in class. I used Snap! in class for the first time in march 2016. I introduced Snap! and Scratch the same way I would for a 10 year old child. My students are 16-17 year olds. But my practice with Snap! in class advanced a lot, which made me progress in teaching Mathematics. As I am part of the IREM (Institute Research on teaching Mathematics), I wrote several articles on using Snap! in class.
 The first article I dedicated to Snap! was written in April 2017 : `Coder des algorithmes avec Snap! - Programmation visuelle au lycée` 
 (programming algorithms with Snap!, visual programming in high school) Here is an image of the first time I used Snap! in class to illustrate the concept of function. It was in February 2017. nathalierun.net/lycee/piwigo/picture.php?/6380/category/104 Since that day, everything has been coded as a function, thanks to Snap!. Input Box Output Snap! cloud actually hosts 2.5 millions projects, of which about :
 - 800,000 shared projects,
 - 125 published projects. The Scratch which lets you code the code the `Scratch` to code the code
  • 5. Tradition wants to build Mathematical basis on set theory. It can be proved that you can put the notion of a Function in the center of the structure. The argument comes from Alonzo Church's work. Alonzo Church is well known for his lambda calculus development, which leads to functional programming in which computation is based on mathematical functions evaluation. Thanks to my years of teaching to 2nd last year students in sciences (Première S), I sense that every Math'algorithm is a Function. Moreover, Snap! totally convinced me of this fact, thus helping me to illustrate and to corroborate it. Never had any mathematical conversations with anybody, because there was nobody else in my field. Alonzo Church Mathématicien, Logicien
 (14 June, 1903 – 11 August, 1995) Moreover, one can notice this anecdote: Snap! mascot’s name is Alonzo and it’s hair is slicked and drawn in the form of a Lambda... λ images.math.cnrs.fr/Et-si-on-commencait-par-les.html Snap! and Functional Programming
  • 6. When you think permanently in Computational thinking, this allows a better and clearer mathematical thinking. What is Computational thinking ? Jeanette Wing gave this definition in 2011 revue.sesamath.net/spip.php?article1096 Computer science teacher, born in 1956, 
 MIT graduated. Computational thinking will develop a functional way of thinking in the students’ minds. In fact, following Computational thinking leads to: analyze a problem, break it down into many small functions with very specific and very small tasks. Computational thinking Thought processes involved in formulating a problem and expressing its solution(s) in such a way that a computer—human or machine can effectively carry out.
  • 7. And Snap! is good for this. So, I practiced in class in real time a computational thinking always illustrated with Snap! scripts, close to a scripting language illustrating the natural language. Through out the year, I therefore tried to approach any notion in terms of algorithms. I used Snap! in class to write any algorithm but also to code it and to test it. The idea is to open students' minds to a computational thinking, independent to a precise programming language. Of course, I used Python also as a textual programming language ... As it is part of the french curriculum. algorithm research in class Write, code and test
  • 8. Every day, I try to lead my students to Computational Thinking, to continuously think in term of Functions. We enter objects in the Box, whatever they are. The box treats and brings back a result, the one which is expected by the student. This obliges my students to think Mathematics in terms of objects. To understand that Functions are not only Numbers, algorithms neither, and a result is not necessarily numerical. From this teaching experience, their feedback has made me grow. I feel like I’m on the right pass. They have also made me learn new things and realize the power of this functional vision of the Algorithmic. From algorithms to functions... Input Box Output One day, during an activity on the Von Koch snowflake, I asked my students which object was returned back by the algorithm. Aliyah answered me, as an evidence, "Et bien, le dessin Madame ! » (« Of course, the drawing Miss ! »). We deduced together that this algorithm was effectively a function: a relation between a set of entries, treated in the Box (the algorithm), and the output drawing. The algorithmic revisited with Snap! and Python
  • 9. Students’ mind map extracts Function concept
  • 10. Students’ mind map extracts Function concept
  • 11. Inputs-outputs notions Two essential ideas: the universal notion of a function on one hand and programming as a production of a text in a computer language on the other hand. The notion of a function in Mathematics and Computer science come under the same universal concept. In the third last year Program Accompanying Document: 
 Programming Algorithms Some extracts ... Note that the input/output functions (input and print functions) are not developed in this document. They do not belong to algorithmic thinking and the program's emphasis on the notion of functions make it possible to get rid of it completely. Algorithmic No language, no software is imposed. But the use of Python is advocated Algorithms have a natural place in all fields of Mathematics and the problems posed. In the official Mathematics program of the 2nd and 3rd last years of high-school...
  • 12. For the sake of simplicity and coherence, an evolution in the way you write algorithms was proposed in subjects of Baccalaureat obeying the following principles: we got rid of the declaration of the variables, the assumptions made on the variables being specified elsewhere we got rid of input/output (consistent with the new accompanying document in 3rd last year of high-school - p5) simplification of the syntax, with the symbol ← for the assignment. ← ← ← From June 2018 S ← 0 U ← 900 for i from 1 to 10 S ← ... U ← 0,75 U + 12 end for Pseudo-code Evolution of the way you write algorithms in « Baccalaureat »
  • 13. Let's build the program of 2nd last year of high-school... ... under an algorithmic vision ... through a functional approach I try to free students from I/O and make them think independently of a programming language. Focus on the essentials: understanding mathematics through algorithms.
  • 15. Students must arrange the blocks in the correct order to obtain the requested function. 1 2 3 nathalierun.net/lycee/piwigo/picture.php?/7416/category/125 Which order ?
  • 16. Students must arrange the blocks in the correct order to obtain the requested function. 1 2 3 nathalierun.net/lycee/piwigo/picture.php?/7416/category/125 Which order ?
  • 17. How to call a function with Snap!
  • 18. Quadratic factorization Sign of a quadratic expression Quadratic equation Snap allowed me to instill computational thinking in my students: analyze a problem, break it down into many small functions with very specific and very small tasks. Quadratic functions study:creating a Snap! software
  • 19. Quadratic equation Here is a very specific and very small task, a part of what we can do with a quadratic equation. Solving a quadratic equation with Snap!
  • 20. analyzing the problem to be able to create a Snap! software Computes the top of the parabola Quadratic function study: Computes the factorization of the quadratic expression. Analyze a problem, break it down into many small functions with very specific and very small tasks...
  • 21. The problem was broken down into many small functions with very specific and very small tasks. This is typically a Computational thinking rigorous approach, according to Jeanette Wing. Solving a quadratic function with Snap!
  • 22. Trigonometry Principal measure of an angle Alonzo sketches a circle. At the same time, his companions Sine and Cosine sketchs two nice waves.
  • 23. Bring operators to the data: essence of functional programming... map/combine works hand in hand and gives us a very powerful tool to work on numbers. Making a table of values becomes child's play with Snap's lists! Bringing Algorithms to Data: Essence of Functional Programming ...
  • 24. Table of values Related functions From which function is it?
  • 25. Play with functions in Python It’s easy to come to Python, coming from Snap!
  • 26. u0, q, n u u(n) Examples of Numerical sequences Iterative version
  • 27. Examples of Numerical sequences 2 to the power of
  • 28. Examples of Numerical sequences here are some very commun results when we study series. It’s instant. Sum of integers (Triangular numbers) Sum of squares (square pyramidal numbers) Sum of cubes (Squared triangular numbers)
  • 30. with
 input/output Algorithms in Analytic Geometry a mind map performed by a 3rd last year student in 2011-2012
  • 31. without
 input/output Algorithms in Analytic Geometry a mind map performed by a 3rd last year student in 2011-2012
  • 32. Algorithms in Analytic Geometry my own Snap! mind map...
  • 34. Euclidean algorithm Arithmetic is one of the areas of mathematics most appropriate to start programming. a bit of arithmetic algorithms... greatest commun divisor
  • 36. Various algorithms illustrating the notion of a function thanks to Snap! Step-by-step resolution of an equation by the bisection method
  • 39. This exercise can be done as a personalized accompaniment and generates work on the percentages. Exercise on coding colors
  • 40. Studying fractals in class with Snap!
  • 41. Numerical sequences Calculations Sketch Ruler and Compass construction blank paper Ruler and Compass A3 A4 a very sharp pencil Study of sequences’ limits Introduction discovery Recursive expression Delimited figures with infinite perimeter Philosophy of the infinity Initiate to recursive thinking shapes auto similarity Algorithmic Maths’ enchantment The beauty of Fractals Algorithms in geometry by hand Computer programming Geometry Thales’ theorem Orientate the plan Enjoy doing Maths Numerical algorithms Fractals in class Pythagorean’ theorem Develop Computational Thinking Fractals in class address/tackle = aborder ludic/fun
  • 42. to connect Data, Initialisations Hand sketching First calculations A part on algorithms Computer programming Back to calculations Homework map Paper sketch Algorithms and computer programming Geometry and plane orientation Calculations and numerical sequences School year 2018-2019 Study of the snowflakePremière S level An assignment on Fractals
  • 43. Hand made straightedge and compass constructions
  • 44. The algorithmic part is supposed to lead the student to write a recursive function. We deduced together that this algorithm was indeed a function. It has all its ingredients: entries processed in a box, and the resulting drawing. Let’s introduce students to the concept of recursion ... When I asked the students what was the object returned by the algorithm, Aliyah said it was obvious: Well, the drawing Miss.
  • 45. Beauty and joy of computing... The Snowflake Von Koch Island step 4
  • 46. some Von Koch’s constructions...
  • 48. The orientation of the seed is chosen randomly at each step. This idea came first to Benoît Mandelbrot in early’s 1980’s to ameliorate the simulation of britany's coast Random Van Koch...
  • 50. School years 2016-2017 and 2017-2018 Première S and Terminale S Study of the Sierpinski Triangle
  • 51. Data : three points A,B,C, n step number (the triangle ABC alone represents step 0) Initialisations : Triangle ABC A* midpoint of [BC] B* midpoint of [CA] C* midpoint of [AB] Fill the triangles BA*C*, A*CB*, C*B*A Leave the triangle A*B*C* empty Start over the previous process on each of the 3 triangles BA*C*, A*CB*, C*B*A till step n. Carry out the steps 1, 2, 3, 4 and 5. For each step, give : - the numbered of colored triangles T_n - the length of each side c_n - their separate areas a_n - their separate perimeters p_n - the whole area of the shaded (or colored) triangles A_n - the whole perimeter of these triangles P_n Sierpinski’s fractal Instructions for the assignment
  • 52. Marie’s work Hand made straightedge and compass construction: steps 0 to 5
  • 53. A colored Snap! construction: steps 0 to 8
  • 54. Beauty of the recursive algorithm
  • 60. The variables are listed Begin/End to delimit the algorithm The result is displayed 1st version of Clara’s mind map
  • 61. 2nd version of Clara’s mind map without input/output, illustrated with Snap!
  • 62. Julie’s mind map 2nd last year student in sciences (Première S).
  • 63. Using functions,
 the algorithm is refined, purged. Shakira’s mind map 2nd last year student in sciences (Première S).
  • 64. Seymour Papert The role of the teacher is to create the conditions for innovation rather than provide ready-made knowledge. https://snap.berkeley.edu/user?user=nathalierun