Professional Documents
Culture Documents
Thinking
Tutorial 4
Algorithms
Computers are the
stupidest imaginable
readers of instructions
But can execute simple
instructions very well (and
quickly)
Algorithms
Computers are the
stupidest imaginable
readers of instructions
But can execute simple
instructions very well (and
quickly)
These simple instructions
however can lead to
interesting emergent
behaviours if repeated
lots of times
Life: Rules
Each cell
has 8
neighbours
Each cell can be
alive (occupied)
or dead
(unoccupied)
A post-it note
shows alive
If unoccupied cell
has 0-1
neighbours, dies
(loneliness)
If unoccupied cell
has 4-8
neighbours, dies
(overcrowding)
If occupied cell has
2-3 neighbours,
stays alive
Emergent Patterns
I will put up a combinations
of (3 and 4) live and dead
cells on one grid
A person at a time will
come up and go cell by cell
checking if should be alive
or dead (adding them to
the other grid)
Repeat
Watch out for emerging
and/or recurring patterns
Blinker
Beehive
Glider
Blinker
Beehive
Life: Rules
Each cell
has 8
neighbours
Each cell can be
alive (occupied)
or dead
(unoccupied)
A post-it note
shows alive
If unoccupied cell
has 0-1
neighbours, dies
(loneliness)
If unoccupied cell
has 4-8
neighbours, dies
(overcrowding)
If occupied cell has
2-3 neighbours,
stays alive
Algorithms
How did you all get on?
Anyone make any
mistakes?
Algorithms
How did you all get on?
Anyone make any
mistakes?
Humans are terrible at
precisely following
algorithms, thats what we
have computers for!
When running
this code
(which you will
do on Friday!),
the computer
methodological
ly and
perfectly (if
programmed
correctly) goes
through each