Turing and von Neumann - Professor Raymond Flood
What I want to do today is to talk about
John von Neumann and Alan Turing and both of them had an enormous range of
interests not only in pure mathematics but also in practical applications.
They made major contributions during the second world war,
Turing on cryptography and von Neumann on weapons development.
The Turing machine formalized the idea of an algorithm
and the Turing test is important in artificial intelligence.
While von Neumann founded the subject of game theory
and both of them were considered founders of computer science.
And what I'm going to do is to tell you first a little bit about von Neumann
up to the time that both he and Turing were in Princeton together.
Then I'm going to talk about von Neumann's war work, some of Turing's war work
and then finish off with their contributions,
a brief introduction to their contributions to biology.
So von Neumann was born in 1903 in Budapest.
Budapest at the turn of the century produced many fine mathematicians and physicists
but von Neumann's brilliance stood out.
He was a child prodigy learning several languages
and showing early exceptional ability in an enthusiasm for mathematics.
By age six he could divide two eight digit numbers in his head.
By age eight he was studying the calculus
and by age 12 he had read and understood Borel's theory of functions.
He also had an amazing memory and was supposed to be able to memorize at a glance
the names addresses and telephone numbers in a column in a telephone directory
and he retained this ability of absolute recall all his life.
Now his father was not keen on him becoming a mathematician,
didn't think the money was good enough
and they compromised on a career in chemistry.
He studied chemistry first of all in Berlin from 1921 to 1923
and then mathematics in Budapest although he never attended any lectures there.
Nevertheless in 1926 he received a diploma in chemical engineering from Zurich
and a doctorate in mathematics from Budapest.
He was famous for his speed of thinking and there are many stories about his ability
and one of my favorites is solution is his solution of the famous fly puzzle.
So the setup is as follows two cyclists start 20 miles apart
and cycle towards each other at a constant speed of 10 miles per hour.
At the same time a fly starts the leftmost cyclist
flies towards the other cyclist at a speed of 15 miles an hour
then when it arrives at the other cyclist turns around it's quite a large fly as you'll notice
turns around and flies towards the leftmost one
and then when it arrives at the leftmost one being a fly it turns around and goes back again
and the question is how far does the fly travel?
And of course the slow way to find the answer is to calculate the distance traveled on the
first leg at the top then the second leg then the third one and so on
and then sum the resulting infinite series of distances.
But the quick way is to notice that the cyclists meet exactly one hour after they start
they're both traveling at 12 at 10 miles per hour under 20 miles to go
so they meet after one hour the fly is traveling at 15 miles an hour
and it's flying all the time so the fly travels 15 miles.
When von Neumann was asked the puzzle he replied instantly with the right answer of 15 miles
and the disappointed questioner said something like oh you've heard it before and know the trick
and von Neumann replied what trick all I did was to sum the infinite series.
So von Neumann's doctoral thesis was entitled the axiomatic deduction of general set theory
and was very influential it introduced the idea of ordinal numbers that we that we use today
the definition of ordinal numbers and he kept an interest in set theory and logic for the rest of
his life. Towards the end of the 1920s he had academic positions at Berlin and Hamburg.
Now two of his main interests during this time were quantum mechanics and operator theory
and his basic insight there was that the geometry of the vectors in certain infinite dimensional
spaces called Hilbert spaces they had the same formal properties as the structure of the states
of a quantum mechanical system. Much of von Neumann's work was axiomatic starting off with a
set of axioms that modeled a physical situation and then deriving consequences and this was the
analogy between the states of a quantum mechanical system and this abstract operators on these
abstract Hilbert spaces. The Nobel physics prize winner Eugene Wigner said that von Neumann's
contributions to quantum mechanics alone would have secured him a distinguished position in
present-day theoretical physics. In 1928 he published a paper establishing the subject
of game theory and von Neumann's work in games is characteristic of a lifelong approach of using
mathematics in practical situations and the consequences of his work go far beyond the
application to games of chance and have been important in economics, psychology, sociology,
politics and military strategy and I want to spend a little time telling you what he actually did in
game theory. All right so to introduce some terms for the first couple of slides.
So a zero-sum game between two players is one in which the gain to the winning player
exactly equals the loss to the loser. So the total payoff to both players sums to zero.
Essentially von Neumann proved that zero-sum games are not worth playing.
That is the summary of his result in the sense that each player can always obtain an optimal
strategy and more can reveal it to the opponent. Let me explain. Well he developed game theory
with the following setup. Conflicting situation, finite number of players, each player can take
one of a finite number of actions, different players can have different lists of actions.
At each play of the game players don't know what action would be taken by the other players.
The result of the game determines a payment to each player which can be positive,
negative or zero and as I mentioned if the sum of the payments to all players is zero the game is
called a zero-sum game and of course if there are two players then it's called a two-person
zero-sum game. Well a crucial concept in game theory is this concept called the payoff matrix
and here's one that I've just made up. There are two players, there's me and there's you.
You can take one of three actions, you get the greek ones alpha, beta, gamma. Well I also have
three actions one, two, three and the entries in the payoff matrix give the payment I receive
corresponding to our choices of action so the payoff matrix is written from my point of view.
So if I choose action two and you choose action gamma I'm going to win eight pounds.
On the other hand if I take one of the ones that's negative I take action one and you choose
action beta then the payoff to me is minus five. In other words I lose five pounds you gain five
pounds. So how should we play this game with this payoff matrix? So the payoff matrix describes the
game that we play with each of three courses of action and depending upon what each of us choose
then we know what the outcome is going to be. Well we're both going to adopt a risk averse strategy
and what I'm going to do is to look and see what happens, what's the worst that's going to happen
when I take each of the three approaches that I can have. So if I take action one the worst that
can happen is that I have to give you five pounds. If I take action two
I take action two the worst that can happen is that I gain six pounds. The other alternative is
that I gain nine to gain eight and thirdly if I take action three the worst that can happen
is that I have to give you three pounds. So what's the best of those worst outcomes?
The best of those worst outcomes is that I should take action two and that should be my strategy.
So that's the maximum of the minimum entries in each of the rows but let's do the same analysis
from your point of view. Now remember from your point of view so there's the action I should take
action two with a payoff, a guaranteed payoff of at least six pounds irrespective of what you do
because I looked at all my actions I found what the minimum payoff was for each action and then
I took the best of them. Now from your point of view remember the payoff matrix is written from
my point of view so really you if you were to write it from your point of view all the numbers
would be inverted and signed. But you do exactly the same thing you look at your actions and this
time you maximize the number that appears in each column. So for you taking action alpha the worst
that can happen is that you're going to have to give me six pounds that's the worst the biggest
outcome in the first column. If you take action beta then there we are it's going to be nine
pounds is the worst that can happen and similarly with you're ahead of me on action gamma it's going
to be eight pounds. So what's the thing that's going to minimize the worst outcome from my point
of view it's that if you take there we are if you also if you take action alpha and you see that in
this situation for the matrix a payoff matrix as I've constructed it and the payoff for both of us
is going to be me winning six pounds winning at least that and you losing at most six pounds.
And this particular approach to it let me see here we are here using the risk averse approach
I want to maximize the row minima and you want to minimize the column maxima and for this game
these two numbers coincides with action two for me and action alpha for you giving a payoff of six
to me and since it's a zero-sum game you're losing six. Now there's another word that's used to
describe this which is that it's an equilibrium point an equilibrium point for the game and the
reason we call it an equilibrium point is that neither of us has any incentive to move away from
it there's no incentive to move away from this equilibrium point and furthermore both players
can announce their decided course of action in advance without giving advantage to their opponent.
And there's another way of looking at that's a graphical way of looking at it which I find
very useful we can think of although there are only three courses of action for each of us we
can think of perhaps my courses of action being plotted along an axis say the x-axis your courses
of action being plotted along another axis say the y-axis and then along a vertical axis what
we have is the payoff. So there'll be a payoff corresponding to each pair of numbers
an action for you and an action for me and that's going to give a surface and on this surface what
I want to do is to get the highest point and what you want to do is to get the lowest point
and if we have it here this s it's a saddle point because going in this direction it's the lowest
point which is what you wanted but going in the other direction it's the highest point which is
what I wanted so that these equilibria point equilibrium point for games such as this are often
called saddle points. All right now what did Witten-Neumann do? Well he looked at a different
type of zero sum game where there were no saddle points so that the payoff surface didn't have a
saddle point and I'll give you an example of such a game classic game of rock papers scissors where
I've written down the payoff matrix here again from my point of view and this is a game where
we each have three actions and it's one of these things that's not transitive and rock beats scissors
paper beats rock scissors beat paper and I've written down what the payoff matrix is there
and you can see that it doesn't have a saddle point from two points of view if you look at the
minimum of the rows the minimum of the first row is minus one the minimum of the second row is minus
one the minimum of the third row is minus one so the maximum of those minimums is minus one if you
look at the maximum of the columns that's going to be one for that column one for that column one for
this column so the minimum of the columns is one this time they don't coincide so there's no saddle
point but even more potently I think you know there's no saddle point because if you were to
peek if you were to look and see what I was going to do which one of the three I was going to put
out rock paper or scissors and you knew what it was you could always beat me so knowing what my
strategy was will give you an advantage and that doesn't happen if you have a saddle point
now what von Neumann said was that what you did was you just didn't play the one strategy
all the time as we would have done in the first situation what you did was to adopt a mixed strategy
which was to play your strategies with a certain probability and he gave away being able to
calculate what that was so one mixed strategy for this game is for each of us to play with
probability a third each of the three possible actions that we could take
and when you did that then it would be the case so this is this minimax theorem that we have here
he proved that for every two person zero sum game there exists a mixed strategy for each player so
the expected payoff for both is the same magnitude when the players use those strategies the same
magnitude one of them will be positive one will be negative that's what I'm saying in the bottom
so taking a probabilistic approach to the playing of the game always gave you an optimal strategy
and as von Neumann said about this result later on as far as I can see there could be no theory
of games without that theorem and I thought there was nothing worth publishing until the minimax
theorem was proved now as I've said von Neumann's work is characteristic of a lifelong approach of
using mathematics practical situations and he published this minimax theorem in 1928
and subsequently collaborated with the economist Oscar Morgenstern and produced this book in 1944
theory of games and economic behavior and I show the title page of it here and show the
minimax theorem down here at the bottom and I think you know apart from the details of the
notation which I haven't explained to you you see what it's doing it's showing that the max of a min
is equal to the min of a max which is just what we were doing when we were looking along our rows
and our columns and game theories continue to be important in economics so the minimax theorem
provided a solution to two person zero sum games but not for more general games or for more players
and in 1994 the nobel prize in economics was awarded essentially for a result in pure
mathematics it was awarded to John Nash John Harsanyi and Reinhard Selten for their work in
game theory and the nobel citation which I've got down here on the right for John Nash says that he
introduced the distinction between cooperative games in which binding agreements can be made
and non-cooperative games where binding agreements are not feasible and then he developed the analogous
thing to an equilibrium position the way I was telling you about a saddle point there that's
called Nash equilibrium and I've just given you the rough statement of Nash's theorem any n person
so he's increased the number of people that can play a non-cooperative game so you can't form
binding alliances zero sum or non-zero sum that's very much the core of it for which each player
has a finite number of pure strategies it has at least one equilibrium set of strategies
and it was the subject of the American film hero a beautiful mind okay and the situation
for cooperative games such as the prisoner's dilemma still remains as a challenge to be
understood well in the late 1920s von Neumann lectured at Berlin and Hamburg he then taught
for three years at Princeton University until he was appointed as one of the founding professors
of the newly created Princeton institute for advanced study a position that he held for the
rest of his life and he was appointed at the age of 30 he was the youngest professor at the institute
which is a very distinguished history as you can see there and he was the age of 30
school of mathematics and he was frequently mistaken for a graduate student
so let me turn then to von Neumann to Turing by 1936 von Neumann was well established in
the institute for advanced study when Alan Turing visited Princeton University
Turing was age 24 he arrived in September 1936 he was to spend most of the years 37 to 38 there
leaving after he was awarded his doctorate in June 1938 and he had previously met von Neumann
in 1935 so he was renewing contact with him there but let me go back a bit say a little
bit about Turing's life up to this point he was born in Paddington in June 1912 went to
boarding school at the age of 13 he was too independently minded to be a conventionally
successful student instead he studied modern ideas such as Einstein's special theory of
relativity on his own and his grandfather gave him probably for Christmas 1927 a book on the
theory of special relativity here's a copy that I've had on the left from for many years
but what Turing did was he wrote a commentary on this book written by Einstein explaining the
theory of relativity saying pressay made by Alan Turing at the age of 15 and a half
on the theory of relativity by Albert Einstein and apparently the guide to reading was for
the use of his mother what every mother wants is a present
but if you go through it and it's available
yep which will be on the on the handout you can collect afterwards it is available at the
digital Turing archive and it's real fun to read through it here I've taken two extracts the one
on the left is the longest one and it is about chapter 11 and what the 15 year old Turing says
I like the way he said he was 15 and a half it's very much a childish sort of thing to do
although I'm starting to do it now in my 60s
Einstein just gives here the equations of the Lorentz transformation and lets them be taken
for granted unless you read his complex proof of appendix one I have got a proof though which
will give you the result of chapter 17 directly and if you like the Lorentz transformation
chapter 17 was on the Minkowski four-dimensional space-time he then starts his proof which runs
for just over three pages and he finishes with the justification I've gone rather differently
from the book because in this way it should seem less magicky and the other excerpt well
the proof that he gives actually is similar to the one that I gave in my first lecture this
academic year on Einstein the other excerpt is about the chapter which discusses the equivalence
Turing's advice to the reader in this chapter is this chapter does not need very careful reading
like the others I should just read it through and think about what interests you and on the rest of
the page you can see down towards the bottom he calculates the energy that would be released from
the annihilation of one gram of matter and says it would be enough to lift one million tons to
While still an undergraduate he was in his third year Turing provided a rigorous mathematical proof
of the central limit theorem which is a result describing the behavior of averages
unfortunately he then found out it had been proved 12 years earlier but he was nevertheless
encouraged to submit it for his fellowship examination election I think and he was
successful and at the age of 22 was elected a fellow of King's College Cambridge in 1935.
Now while waiting for the results of the fellowship election Turing attended a lecture
course on the foundations of mathematics and it was to be one of the most important courses he
went to in his life and this lecture course included the following questions turned out
the answers which turned out to be the deepest results some of the deepest results in
20th century pure mathematics. In 1928 David Hilbert during the international congress of
mathematicians posed three questions is mathematics complete that is can every
statement in the language of number theory be either proved or disproved
is it consistent that is is mathematics free from contradiction
is it decidable that is does there exist an algorithm for deciding whether or not
a specific mathematical assertion does or does not have a proof. Kurt Gödel had shown in 1931
that the answer to the first question is no the so-called first incompleteness theorem
there are statements which can be neither proved nor disproved. He also proved that if number theory
is consistent then a proof of it does not exist using the methods of the first order predicate
calculus the second incompleteness theorem. The last question is called the decision problem and
was still an open problem when Turing attended his lecture course and Turing was intrigued by it.
So let me just isolate it out from the slide Hilbert's decision problem given a mathematical
proposition can one find an algorithm to decide whether the proposition is true or false
an algorithm a mechanical way a procedure prescription that was the first problem
that Turing had to face what do you mean by an algorithm and what he decided to do
was to create a machine in the mind and Turing's thesis was that's now called the Church-Turing
thesis. Church comes into the story in a slide or two and his thesis was that his machine
will accomplish anything that can be done mechanically or algorithmically so when he's
defining an algorithm as corresponding to the output of the Turing machine. Turing machines
and algorithms are the same thing and anything that anybody since has come up with as a
prescription or a definition of an algorithm has turned out to be equivalent to the Turing machine
approach. So let me show you what a Turing machine is like. Turing machine very simple
it's an infinite tape which acts like the memory in a typical computer. Now a typical computer is
very much like a Turing machine it seems quite odd to try to illustrate a Turing machine
using the ideas of a typical computer this is why he's known as one of the founders of computer
science but Turing machine an infinite tape it acts like the memory each square is usually blank
initially and can be written with symbols. I'm going to illustrate with this three symbol Turing
machine uses the symbol zero one and blank. The machine is a head which can be positioned over
one square of the tape that's my drawing of the head positioned over the square of the tape
containing a symbol one there. Here it's positioned over the leftmost non-blank head. Now with this
head positioned over a square of the tape the things that it can do is that it can read the
symbol it can leave it unchanged or it can edit the symbol by writing another symbol and then it
can move the tape left or right by one square so that the machine is then looking at the neighbouring
square. The other thing I have to tell you about the machine and it's the only other thing the
machine can be in different states and what is the state of the machine well a state of the machine
tells you tells the machine what to do depending upon what symbol it's reading. So in a particular
state when the machine reads a particular symbol it will move the tape left or right it will write
something down and you know that and just just to sort of illustrate it here I've got a Turing
machine it's going to do a bit inversion so it's a Turing machine that's going to start off with
the tape one zero one and it's going to end up with the all the ones turned into zero and all
the zeros turned into one which is not the case there because I've made an error that's this
that is the deliberate mistake which I should have left you to catch right
so pretend there's a zero down there so this is just used just the idea of states and a Turing
machine to do this bit inversion properly just contains two states the stop state which does
what it says if you're if the machine is in the stop state then it stops irrespective of what
character it is reading and this other state which I'm calling state zero which is just another state
and this state if it sees let me start with the the second row around here if it's in this state
if it sees the symbol zero it writes one and it moves the tape to the right in other words the
head moves to the left so that's the head moving to the left down here if it sees one then it
writes zero and moves the tape to the right in other words the head moves to the left
so the head is moving what should be happening is the head is moving to the left and each time that
it reads the symbol it's converting it until this operation happened down here then when it reads
the blank over here it goes into the stop state it moves the tip to the left goes into the stop state
and Turing's assertion was that you can develop if something has an algorithm to do it you can get a
Turing machine to do it unless as I say you need to remember that any other approach to defining
algorithms that turned out to be equivalent but here's where it starts to go he then went a step
further and he envisaged a universal Turing machine
that's a Turing machine that could emulate all other Turing machines now you've just been exposed
to them you need a little bit of time to get familiar with them but how it is done is that
if you have a Turing machine that Turing machine can be described by a string of zero and one
symbols so in other words the different states that the machine can be in can be encoded in a
particular way as a set of zeros or ones if you want to find out what that machine will do on a
particular input you give me its description in terms of zeros and ones you give me the input
upon which you wish it to act I feed it into the universal Turing machine and it simulates it
emulates the Turing machine that you had and so this one machine that I have can emulate any
other Turing machine and this was just absolutely core I mean it's it's analogous a modern computer
works that way because you can get a computer to do different things by giving it different programs
so that's exactly the notion that we have here the program is fed stored program idea for modern
computing well in his 1936 paper on computable numbers Turing answered the decision question in
the negative he showed that there are mathematical propositions that are undecidable no algorithm can
decide whether they're true or false in other words he showed that there was no Turing machine
to do very many particular tasks let me give you one of them which Turing actually uses in the
paper it's now called the halting problem Turing showed that there was no algorithm that could
decide the halting program now the halting program would be very worthwhile to have it would be an
algorithm that would look at any computer program and the input that you were going to give it
and would tell you whether or not that program with that input would keep on going forever or would halt
an equivalent formulation of it would be there are lots of programs written in languages people want
to write a program to do the same task but perhaps in a more efficient language it would be very good
if you had an algorithm that you could bring along the two programs and the inputs that they
were to act upon and ask whether or not they would both have the same result there's no such algorithm
so there are important practical problems that Turing showed have got no algorithmic solution to
them and the idea of a Turing machine I think you can see from what became the foundation of the
theory of computation this idea of being able to describe a program in terms of the input to a
computer now Turing was a bit unfortunate again that the resolution of the decision problem had
been obtained simultaneously by two people Turing and the American logician Alonzo Church who had a
formulation of what an algorithm would be it was subsequently shown that the two were the same
Church was based in Princeton and later in 1936 Turing went to Princeton to study for his doctorate
with Church as his supervisor and his thesis was in logic and called systems of logic based on
ordinals and at a conference in Princeton in 2012 to mark the centenary of Turing's birth
it was said that Turing's thesis was one of the two most important ever done at Princeton
the other was by John Nash and we've already met well this is an answer to a question that
was asked at the end of the lecture last week Turing wrote to his mother on arrival of Princeton
that the mathematics department here comes fully up to expectations there's a great number of the
most distinguished mathematicians here and he writes von Neumann at the head of the list
and the great British mathematician G. H. Hardy was visiting for the term somebody asked last
week about the interaction between Hardy and Turing and Turing wrote to his mother at first
he was very standoffish or possibly shy I met him at Morris Price's rooms the day I arrived
and he didn't say a word to me but he's getting much more friendly now
well in 1938 Turing was initially unsure as to whether or not his fellowship would be renewed
and in fact his father asked him to explore the possibility of getting a job
in America what was the possibility of the war coming but there weren't many available
and there was fierce competition for those that were for all the mathematicians who were fleeing
pre-war Europe then von Neumann offered him a job as Turing a job as his research assistant
ensuring her that his fellowship had come through and he preferred to return to Cambridge
and the subsequent careers of von Neumann and Turing were to be heavily influenced by their
involvement in the war that was soon to begin. Paul Halmus was a research assistant to
von Neumann at Princeton during the war and he wrote the year 1940 was just about the halfway
point of von Neumann's scientific life and his publications show a discontinuous break then
till then he was a top-flight mathematician who understood physics
after that he was an applied mathematician who remembered his pure work he became interested
in partial differential equations the principal classical tool of the application of mathematics
and he continued his papers from this point are mainly on statistics shock waves flow problems
hydrodynamics aerodynamics ballistics problems of detonation meteorology and last but not least
two known classical aspects of the applicability of mathematics to the real world games and
computers. Von Neumann's contributions to war were manifold most often mentioned is his proposal of
the implosion method for bringing nuclear fuel to explosion and then after the war is a spousal of
the development of the hydrogen bomb and after the war von Neumann led a team at Princeton in
the development of a computer very much based on the ideas behind the universal Turing machine
numbers in the machine were represented in binary form so any device holding a digit needed to have
only two states and here is von Neumann in front of the completed machine in 1952
it had 3600 vacuum tubes a memory of five kilobytes
it was the first stored program computer that's the idea of the universal Turing machine you've
got the one computer that you can get in different programs too unlike previous computers that were
programmed by altering their circuitry although it had its drawbacks the von Neumann's design
was very influential. Now Turing's wartime contributions are probably better known
and recently been the subject of the film The Imitation Game. Turing joined the British
government code and cipher school which was based at Bletchley Park in September 1939
and there he joined the attack on the Enigma coding machine
and I want to try and give you an idea of one of the things that he did so briefly to describe
the Enigma there's a picture of it there and what happens is that when you
press a key an electrical current goes through a plug board then through three rotors
then is reflected by a reflector and comes back and lights up one of these lamps so that you have
an encoding of the letter that you have typed in and here is an illustration of it here are the
three rotors one two three and the wiring of them is known was known to the cryptanalysts because of
espionage by the French and the Polish but you see here I'm typing a n goes around reflected
it's g now what happens is that after you type a and the first rotor rotates so that if I were to
type a and again there would be different set of contacts now and it wouldn't be g that would come
out but some different letter c then the first rotor would rotate again and after the first
rotor has rotated 26 times the second rotor rotates once and after this one has been made to go around
after the appropriate number of key presses the third one goes right so it's what's called a
polyalphabetic cipher but that isn't all the complications because there's this thing called
the plug board here which is where we have a swapping of pairs of letters going into the
machine and coming out of the machine and if you look at the number of states for this polyalphabetic
machine by that I mean that in any given state of the machine it will encode the letters of the
alphabet in a particular way but once you press a key to do it for one of them the machine moves
into another state where there's a different substitution alphabet and if you look at the
number of states there are 17 576 ways for the different rotors to be configured that's 26 times
26 times 26 now that's not a big number because you could if you could step through a rotor
position one a second and there are 3600 seconds in an hour so that would only take about five hours
to to do all of to check all of the rotor settings so it's not big the sorry the rotor
order there's six ways well I'm actually hiding lots of the details because you could have more
than three rotors you could choose three out of five you can put them in different orders where
the big number comes from is the plug board this number here just gives you the number of ways of
select of connecting seven pairs of different ways of selecting of connecting seven pairs of letters
so the total number therefore is the product of these here which is big
and you want to find out more about the two excellent books here one by Simon Singh
the code book which is where I'm going to be taking the diagram I'm using in a moment from
and then this excellent biography by Andrew Hodges of the Turing
all right oh yes yes well I won't leave this up too long in case you start to get terribly
interested but well Simon yes it was Simon Singh's book it contained the crossword set
in the Daily Telegraph by Bletchley Park to recruit code breakers they challenged readers
to complete it in less than 12 minutes and those who did so were invited to a further crossword
test and it led to six new recruits so you might have a new career in front of you and what I've
done is to give a web reference that will be in the notes so you can download it print it out and
set your stopwatch to see if you can do it within the 12 minutes
all right now what Turing and his colleagues did was to analyze the logical structure of enigma
in particular they used the feature that if the enigma in any state changed a into e
then it would also change e into a because of the the reflector I'm just using a and e as examples
it was a swapping arrangement so that if letter one letter went to another letter it would also
go the other way around right that that's core now there's a practical advantage to that from
the operator's point of view because it meant that if you were encoding something you would
type in the plain text and out would come the ciphertext if you wanted to decode it then you
would type in the safe you would set the rotors up appropriately set type in the ciphertext and
out would come the plain text so at each stage of the enigma it performed a substitution
the Polish cryptanalysts had and Bletchley Park had essentially cracked enigma in the early
months of the war but that was due to the way it was being used it was being used in a particular
way to transmit the keys for a message and essentially what had happened was that they
key was not just sent once it was repeated it was it was sent twice and that provided a weakness
but Turing was tasked with not cracking a system but cracking the machine and he used this notion
that the machine performed swappings in order to do it so let me just try to show you hard
by various means which you can read about in the books it was possible to get cribs and the crib
is knowing the plain text meaning of a piece of ciphertext so for illustration purposes here
I've written down there's this ciphertext and by some means it is believed that that
corresponds to the plain text for these letters up here
so somehow we have got that now the thing about this crib is that it contains a loop
because when this transposition is made from w to e the machine is in some state s but of
course as I've told you once a substitution is made the router clicks on once so the next
substitution will correspond to state s plus 1 then the next to s plus 2 the next to s plus 3
that's saying that the router is clicking along as it goes now where is the loop well we've got w
goes to e e goes to t t goes to w which is back where we started
so in state s w is going to e then the loop goes w e t w and Turing's idea Turing and the
colleague's idea Andrew Hoy just goes into the analysis of you know who did what and when
was in this example here we've got a crib a loop in a crib the loop is of length three
we take three Turing machines and we connect them together
and it was an electrical circuit to mimic the loop so here we are
okay this is the first Turing machine at the top second Turing machine down here third one now if
you look at our loop it corresponds to some particular state s so we set the first machine
at state s we don't know what it is we select some state we select the next machine because
that's the next element of the loop loop one rotor click on so setting s plus one and the
third element of the the crib of the loop in the crib is at s plus three so we set the next one
here as setting s plus three now the essence of it is we're going to parallel the loop in the crib
by an electric circuit we connect the output of each enigma to the output of the next so e
coming out of the first is connected to e going into the second
all right t coming out of the second is connected to t going into the third and then w
is connected up here to the w here so it's electrically wiring up the same thing that
we have in the loop and you say to yourself what does that achieve well you need to think
back to the numbers that i put up on that slide the big number was the plug board the plug board
gave you that massive number the number of rotor positions was not great and by connecting the
machines in this way Turing and the colleagues essentially cancelled out the effect of the plug
board so let's and he's able to ignore able to ignore millions of their settings because
although we don't know what's happening in here because of the plug board e is connected up to
l1 when it comes out here the e goes back to l1 so the effect of the plug board is essentially
neutralized so by connecting the machines up in this way you neutralize the effect of the
plug board so it's cancelled between the first two in a similar sort of way we have here now
we have got the l2 coming out it's connected across to the l2 here so it goes from l2 across
the t but then it goes from t back to l2 and similarly the second and third sorry the first
and second cancel the second and third and then the third and the first i'm not really giving you
enough time or detail to get with it but if you just go away with the idea of a loop then you
take the output you take the same number of machines as you have letters in the loop and
you connect them up this way then effectively you cancel out the effect of the plug board
with only one thing you don't know where the first one goes in but there are only 26 possibilities
for that and 26 is a much smaller number than that this one here
right and so what you can do is you can either try each of the 26 possibilities or you could
have 26 circuits each with a light bulb then you set your rotor stepping through them all right so
what i mean by that there is that you you keep them going along in unison in other words that
this one is always one beyond that and this one is always three beyond that but you step them
through and then five hours later within five hours some light bulb will have come on so the
core being and you can see how it relates to a lot of the stuff he was interested in both with logic
and with mechanical things and machinery is to implement in electrical circuitry what was
happening in a logical analysis so i'll finish by briefly mentioning
two other interests that von neumann and turing had in common and that is in biology
now turing had lifelong interest in the development of pattern and form in living organisms and he
looked at how biological systems that are symmetrical at the start can lose that symmetry
and wondered how this could be caused by the dynamics of the way that chemicals diffuse and
react quite an amazing idea because normally when things diffuse and react they tend to go towards
an equilibrium but he was using it to try to show that they became non-equilibrium in other words
you know cause pattern cause form so using a computer he carried out pioneering work in
modeling these chemical reactions and published his results on this paper here the chemical basis
of morphogenesis and underneath the dappled pattern that he got again from
using one of his early computers of course it had to be one of his early computers
and here we've got another major contribution he made was his paper on computing machinery
and intelligence in the journal mind and turing started i propose to consider the question can
machines think and he refined this question by introducing what he called the imitation game
heading of the first section and in this game there's a machine a woman and an interrogator
and the object of the game called the turing test is for the interrogator to determine which of the
others is the machine and which is the woman they can communicate with the interrogator but only in
a manner of course that gives no clue to their identities point i want to make here is that
earlier we've been concentrating or turing concentrated on what machines cannot do
but now it's focus of us what they can do and in particular whether the behavior of the brain
can be replicated by a computer and the turing test remains important in philosophy and artificial
intelligence well anyway after the war was over turing went back to the national went to the
national physical laboratory in london to work on the design of an electronic computer the automatic
computing engine is his final university position was deputy director of the manchester computing
laboratory and he continued to be consulted by gchq the successor to bletchley park but then he
lost his security clearance when he was brought to trial for homosexual activities in 1952 and
came under intense scrutiny and he died of cyanide poisoning age 41 a half-eaten apple beside his bed
and the inquest brought in a verdict of suicide and von neumann also died young um not quite as
in his case at the age of 53 and he left unfinished his research program on a new information and
computation theory for biological systems especially the brain and this was inspired
by turing's universal machine and he was developing his theory of self-reproduction
of automata um several years five years before the work of watson and crick on the structure of dna
and its role in biological self-reproduction so to conclude von neumann and turing made
massive contributions to mathematics computer science and the times in which they lived
their work was crucial to the shift in the middle of the last century from the scientific paradigm
based around the principle of the conservation of energy to the new fields of information
and communication and computation which continue to have a fundamental impact on our world today
so thank you very much for coming along and i hope you enjoy next year's program of lectures thank you

