Book Read Free

Alan Turing: The Enigma The Centenary Edition

Page 47

by Andrew Hodges


  More precisely, the point was that electronic components could be regarded as operating upon discrete, on-or-off, quantities, and so could realise a Turing machine. This he had learnt in 1942, and thereafter he had known all about the Robinsons, the X-system, and the Rockex; he had also picked up a fund of radar knowledge from his new friends at Hanslope. But above all there were the two developments that had begun in 1943. Whatever its usefulness to the war effort, the technical success of the Colossi told him that thousands of electronic valves could be used in conjunction – something that few could have believed in until it had been done. And then he had worked with his own bare hands on the Delilah. There had been a method in his madness all along. By working in these second-rate conditions, on a device that officialdom had not called for, he had proved that he could carry off an electronic project of his own. Coordinated with his theoretical ideas and his experience of mechanical methods, this direct knowledge of electronic technology formed the last link in his plans. He had learned how to build a brain – not an electric brain, as he might possibly have imagined before the war – but an electronic brain. It was thus that ‘round about 1944’, Alan’s mother heard him talking20 about ‘his plans for the construction of a universal [machine] and of the service such a machine might render to psychology in the study of the human brain.’

  There was a further fundamental consideration besides that of discreteness, reliability and speed: that of sheer size. There would have to be room on the ‘tape’ of a universal machine both for the ‘description numbers’ of the machines it had to imitate, and its workings. The abstract universal machine of 1936 was equipped with a ‘tape’ of infinite length, meaning that although at any stage the amount of tape used would be finite, it was assumed that as more space was required it could always be made available.

  In a practical machine, space would always be limited in extent – and for that reason no physical machine could actually realise a truly universal machine. Still, Alan had suggested in Computable Numbers that human memory was finite in extent. If this were so then the human brain itself could hold only a limited number of ‘tables of behaviour’, and a sufficiently large tape could contain them all. The finiteness of any practical machine would not, on this argument, debar it from having a brain-like quality. The question was, however, how much ‘tape’ would be required for a machine that could actually be built: enough to make it interesting, but not more than would be technically feasible. And how could such storage be arranged without inconceivable expense in terms of electronic valves?

  This practical question was one more up Don Bayley’s street. As the European war ground to its end, and the problems of the Delilah were essentially solved, it became clear that Alan’s interest had turned to ‘the brain’. He described to his assistant the universal machine of Computable Numbers, and its ‘tape’ on which instructions would be stored. They began thinking together about ways in which to realise a ‘tape’ that could store such information. And thus it was that in this remote station of the new Sigint empire, working with one assistant in a small hut, and thinking in his spare time, an English homosexual atheist mathematician had conceived of the computer *

  That was not how the world was to see it, and the world was not being entirely unfair. Alan Turing’s invention had to take its place in an historical context, in which he was neither the first to think about constructing universal machines, nor the only one to arrive in 1945 at an electronic version of the universal machine of Computable Numbers.

  There were, of course, all manner of thought-saving machines in existence, going back to the invention of the abacus. Broadly these could be classed into two categories, ‘analogue’ and ‘digital’. The two machines on which Alan worked just before the war were examples of each kind. The zeta-function machine depended on measuring the moment of a collection of rotating wheels. This physical quantity was to be the ‘analogue’ of the mathematical quantity being calculated. On the other hand, the binary multiplier had depended upon nothing but observations of ‘on’ and ‘off’. It was a machine not for measuring quantities, but for organising symbols. In practice, there might be both analogue and digital aspects to a machine. There was not a hard-and-fast distinction. The Bombe, for instance, certainly operated on symbols, and so was essentially ‘digital’, but its mode of operation depended upon the accurate physical motion of the rotors, and their analogy with the enciphering Enigma. Even counting on one’s fingers, by definition ‘digital’, would have an aspect of physical analogy with the objects being counted. However, there was a practical consideration which provided the effective distinction between an analogue and a digital approach. It was the question of what happened when increased accuracy was sought.

  His projected zeta-function machine would have well illustrated the point. It was designed to calculate the zeta-function to within a certain accuracy of measurement. If he had then found that this accuracy was insufficient for his purpose of investigating the Riemann Hypothesis, and needed another decimal place, then it would have meant a complete reengineering of the physical equipment – with much larger gear-wheels, or a much more delicate balance. Every successive increase in accuracy would demand new equipment. In contrast, if the values of the zeta-function were found by ‘digital’ methods – by pencil and paper and desk calculators – then an increase in accuracy might well entail a hundred times more work, but would not need any more physical apparatus. This limitation in physical accuracy was the problem with the pre-war ‘differential analysers’, which existed to set up analogies (in terms of electrical amplitudes) for certain systems of differential equations. It was this question which set up the great divide between ‘analogue’ and ‘digital’.

  Alan was naturally drawn towards the ‘digital’ machine, because the Turing machines of Computable Numbers were precisely the abstract versions of such machines. His predisposition would have been reinforced by long experience with ‘digital’ problems in cryptanalysis – problems of which those working on numerical questions would be entirely ignorant, by virtue of the secrecy surrounding them. He was certainly not ignorant of analogue approaches to problem-solving. Apart from the zeta-function machine, the Delilah had an important ‘analogue’ aspect. It depended crucially on accurate measurement and transmission of the amplitudes, in contrast to the X-system, which made them ‘digital’. He might well have admitted that for certain problems, the analogue solution could not remotely be rivalled by a digital method. Putting a model aircraft in a wind tunnel would immediately produce a picture of stresses and vortices that centuries of calculation would never obtain. In 1945 there was plenty of scope for debating the relative practical usefulness of analogue and digital devices, and the priorities for construction. But so far as Alan Turing was concerned, this was a debate for other people. He was committed to the digital approach, flowing out of the Turing machine concept, and with its potential universality at the centre. No analogue machine could lay claim to universality, such devices being constructed to be physical analogies of particular problems. It followed that his ideas had to find their place among, and compete with, the prevailing developments of digital calculators.

  There had been machines to add and multiply numbers, the digital equivalents of the slide rule, since the seventeenth century. Alan had a desk calculator at Hanslope, and used it for the calculation of circuit properties. It was a very long step indeed from such devices to the idea of a practical universal machine. But as Alan knew by this time, that step had been made a hundred years before, by the British mathematician Charles Babbage (1791-1871). He used to speak to Don Bayley of Babbage, and knew something of what Babbage had planned.

  After working on a ‘Difference Engine’, to mechanise the particular numerical method used in the construction of mathematical tables, Babbage had conceived (by 1837) of an Analytical Engine, whose essential property was that of mechanising any mathematical operation. It embodied the crucial idea of replacing the engineering of different machines f
or different tasks, by the office work of producing new instructions for the same machine. Babbage did not have a theory like that of Computable Numbers, to argue for universality, and his attention was focussed upon operations using numbers in decimal notation. Yet he did perceive that its mechanism could serve to effect operations upon symbols of any kind whatever,* and in this and other ways the Analytical Engine came close in its conception to the Universal Turing Machine. Babbage wanted a ‘scanner’, in effect, working on a stream of instructions, and putting them into operation. He hit on the idea of coding the instructions on punched cards, such as then were used for the weaving of complicated patterns in brocade. His plans also called for storing numbers in the form of positions of gear wheels. Each instruction card would cause an arithmetical operation such as ‘subtract the number in location 5 from that in location 8, and put the result in location 16.’ This required machinery he called the ‘mill’ to do the arithmetical operations, but the crucial innovation of Babbage’s plans did not lie in the efficient mechanisation of adding and multiplying. It lay in his perception that it was the mechanisation of the organising or logical control of the arithmetic that mattered.

  In particular, Babbage had the vital idea that it must be possible to move forwards or backwards among the stream of instruction cards, skipping or repeating, according to criteria which were to be tested by the machine itself in the course of its calculation. This idea, that of ‘conditional branching’, was his most advanced. It was equivalent to the freedom allowed to Turing machines, that of changing ‘configuration’ according to what was read on the tape, and it was this that made Babbage’s planned machine a universal one, as he himself was well aware.

  Without ‘conditional branching’, the ability to mechanise the word IF, the grandest calculator would be no more than a glorified adding machine. It might be thought of as an assembly line, everything being laid down from start to finish, and there being no possibility of interference in the process once started. The facility of ‘conditional branching’, in this model, would be analogous to specifying not only the routine tasks of the workers, but the testing, deciding and controlling operations of the management. Babbage was well-placed to perceive this idea, his book On the Economy of Machinery and Manufactures being the foundation of modern management.

  These ideas were a hundred years ahead of their time, and were never to be embodied in working machinery during Babbage’s lifetime. Government funding did not solve the problems created by his grossly over-ambitious specifications; the project was not advanced by Babbage’s contempt for committees, administrators, and other scientists; nor did his own efforts to bring mechanical engineering to an entirely new standard, and his absorption in every theoretical and practical aspect of the work, overcome these difficulties.

  Indeed, it was exactly a hundred years from the conception of the Analytical Engine, until there were substantially new developments either in the theory or in the construction of such a universal machine. On the side of theory, 1937 saw the publication of Computable Numbers, which made all these ideas precise, explicit, and conscious. On the practical side, there had been the inevitable Looking Glass war as the revived and expanding electrical industry of the 1930s provided rival powers with new opportunities.

  The first development had, in fact, occurred in 1937 Germany, at the Berlin home of K. Zuse, an engineer who had rediscovered many of Babbage’s ideas, though not that of conditional branching. Like the Babbage machine his first design, which was actually built in 1938, was mechanical and not electrical. But he had avoided the thousands of meshing ten-spoke gear wheels that Babbage had demanded, by the simple expedient of having his machine work in binary arithmetic. This was not a deep theoretical advance, but from any practical point of view it was an immense simplification. It was also a liberation from the usual engineer’s assumption that numbers had to be represented in the decimal way. Alan had used the same idea at the same time in his 1937 electric multiplier. Zuse had quickly moved on to construct further versions of his machine which made use of electromagnetic relays rather than mechanical elements, and with collaborators experimented with electronics before the end of the war. Zuse calculators were used in aircraft engineering but not in code-breaking; it was argued that the war would be over too soon. Short-term Nazism left Zuse in 1945 desperately trying to save his work from destruction.

  These events were unknown on the Allied side, where roughly parallel but larger developments had been taking place. In Britain there was no such digital calculator, controlled by a sequence of instructions, except the Colossi. This was in marked contrast with the situation in the United States. The British success, frantic but triumphant, had been achieved at the last moment by individuals giving their all to wartime public service. The Americans, so much richer in capitalist enterprise, were years ahead in pursuing two different, perhaps slightly unimaginative, approaches to the Babbage idea-and in doing so even in peacetime, just as they were ahead in the analogue differential analyser of the earlier 1930s. For again it was 1937 when at Harvard the physicist H. Aiken began to realise it in terms of electromagnetic relays. The resulting machine was built by IBM and turned over to the US Navy for secret work in 1944. It was lavish and impressive in scale, but like Zuse’s machines, did not embody conditional branching, even though Aiken knew of Babbage’s plans. The instructions had to be followed rigidly from beginning to end. Aiken’s machine was also more conservative than Zuse’s in that it based the arithmetical machinery on the decimal notation.

  The second American project was under way at Bell Laboratories. Here the engineer G. Stibitz had first only thought of designing relay machines to perform decimal arithmetic with complex numbers, but after the outbreak of war had incorporated the facility to carry out a fixed sequence of arithmetical operations. His ‘Model III’ was under way in the New York building at the time of Alan’s stay there, but it had not drawn his attention.

  There was another person, however, who did make a thorough examination of these two advanced projects, and who like Alan had the mind with which to form a more abstract view of what was happening. This was that other mathematician of the wizard war, John von Neumann. He had been connected with US Army ballistic research as a consultant since 1937. From 1941 most of his time had been spent upon the applied mathematics of explosions and aerodynamics. In the first six months of 1943 he was in Britain, conferring on those subjects with G.I. Taylor, the British applied mathematician. It was then that he had first become involved in programming a large calculation, in the sense of organising how it could best be done by people working on desk calculators. Back in the United States, his entry in September 1943 into the atomic bomb project had taken him into similar problems with shock waves, whose prediction by numerical computation required months of slogging work. In 1944 he toured the available machines in search of help. W. Weaver, at the National Development and Research Commission, had put him in touch with Stibitz, and on 27 March 1944 von Neumann wrote22 to Weaver:

  Will write to Stibitz: my curiosity to learn more about the relay computation method, as well as my expectations concerning possibilities in this direction, are much aroused.

  On 10 April he wrote again to say that Stibitz had shown him ‘the principle and working of his relay counting mechanisms’. On 14 April he wrote to R. Peierls at Los Alamos about the ‘shock decay problem’, saying that it could probably be mechanised, and adding that he was now also in touch with Aiken. In July 1944 there were negotiations to use the Harvard-IBM machine. But then everything changed. For the pressure of wartime demands had brought about the same technological revolution as had happened at Bletchley, and at exactly the same time. In quite another place, namely the engineering department of the University of Pennsylvania (the Moore School), work had begun on yet another large calculator in April 1943. This was the ENIAC – the Electronic Numerical Integrator and Calculator.

  The new machine was designed by the electronic engineers J.P. Eckert and J. Mauc
hly, although von Neumann’s first knowledge of it, apparently something of an accident, came through talking on a railroad station with H.H. Goldstine, a mathematician associated with the project. Von Neumann seized upon the possibilities opened up by a machine that when built would perform arithmetical operations a thousand times faster than Aiken’s. From August 1944 he was regularly attending ENIAC team meetings, writing on 1 November 1944 to Weaver:

  There are some other things, mostly connected with mechanised computation, which I should like a chance to talk to you about. I am exceedingly obliged to you for having put me in contact with several workers in this field, especially with Aiken and Stibitz. In the meantime I have had a very extensive exchange of views with Aiken, and still more with the group at the Moore School…who are now in the process of planning a second electronic machine. I have been asked to act as their adviser, mainly on the matters connected with logical control, memory, etc.

  The ENIAC project was immensely impressive, quite enough to give people allowed to see it the sensation of seeing the future. It employed no fewer than 19,000 electronic valves. As such it surpassed the Colossi, with which in many ways it was comparable, though one difference was that in the summer of 1945 the ENIAC was still incomplete, and would come too late to have any use whatever in the war.

 

‹ Prev