Printer Friendly
The Free Library
14,508,125 articles and books
Member login
User name  
Password 
 
Join us Forgot password?

Little Fermat: a scheme for speeding up multiplication leads to a unique computer.


Little Fermat

Multiplying million-digit numbers takes time -- lots of time. Even today's supercomputers are poorly equipped for efficient, errorless number crunching Refers to computers running mathematical, scientific or CAD applications, which perform large amounts of calculations. See number cruncher.

(application, jargon) number crunching
 on such a scale. Nonetheless, many mathematical and scientific applications, from identifying prime numbers There are infinitely many prime numbers. The first 500 are listed below, followed by lists of the first prime numbers of various types in alphabetical order. The first 500 prime numbers

2 3 5 7 11 13 17 19 23 29
31 37 41 43 47 53 59 61 67 71
 to modeling weather patterns, require large-number computations.

Is there a faster way of multiplying gigantic numbers? Nearly four years ago, M.M. (Monty) Denneau of the IBM (International Business Machines Corporation, Armonk, NY, www.ibm.com) The world's largest computer company. IBM's product lines include the S/390 mainframes (zSeries), AS/400 midrange business systems (iSeries), RS/6000 workstations and servers (pSeries), Intel-based servers (xSeries)  Thomas J. Watson Research Center The Thomas J. Watson Research Center is the headquarters for the IBM Research Division.

The center is on three sites, with the main laboratory in Yorktown Heights, New York, 45 miles north of New York City, a building in Hawthorne, New York, and offices in Cambridge,
 in Yorktown Heights, N.Y., and mathematicians David V. and Gregory V Gregory V can mean:
  • Pope Gregory V, Pope from 996 to 999
  • Patriarch Gregory V of Alexandria, Patriarch of Alexandria from 1484 to 1486
  • Patriarch Gregory V of Constantinople, Patriarch of Constantinople from 1797 to 1798, from 1806 to 1808, and from 1818 to 1821
. Chudnovsky of Columbia University Columbia University, mainly in New York City; founded 1754 as King's College by grant of King George II; first college in New York City, fifth oldest in the United States; one of the eight Ivy League institutions.  in New York City New York City: see New York, city.
New York City

City (pop., 2000: 8,008,278), southeastern New York, at the mouth of the Hudson River. The largest city in the U.S.
 decided there really is, and they designed a new machine to prove their point.

The resulting computer, painstakingly assembled from commercially available parts by MIT MIT - Massachusetts Institute of Technology  graduate student Saed G. Younis, now stands nearly 6 feet tall in a laboratory and ready to take on the world. Dubbed "Little Fermat," after the 17th-century French mathematician Pierre de Fermat Noun 1. Pierre de Fermat - French mathematician who founded number theory; contributed (with Pascal) to the theory of probability (1601-1665)
Fermat
, it works with instructions and data expressed in 257-bit "words" and uses a special kind of arithmetic based on so-called Fermat numbers. These characteristics clearly differentiate the new machine from conventional computers.

"Little Fermat is a high-performance, general-purpose scientific computer," David Chudnovsky David Chudnovsky may refer to:
  • David Chudnovsky, mathematician
  • David Chudnovsky, British Columbia MLA.
 says. Its novel features make it particularly efficient for solving a variety of numerical problems ordinarily plagued with errors because of the way conventional computers express and round off numbers.

"There's no machine like it in the world," Gregory Chudnovsky asserts. Indeed, he adds, Little Fermat vividly demonstrates the kinds of capabilities that could enhance the performance of future supercomputers.

Using pencil and paper pencil and paper - An archaic information storage and transmission device that works by depositing smears of graphite on bleached wood pulp. More recent developments in paper-based technology include improved "write-once" update devices which use tiny rolling heads similar to mouse , human beings can add, subtract, multiply or divide numbers of any length, albeit slowly. Computers, on the other hand, are designed to manipulate numbers of a fixed length. For instance, simple personal computers typically work with digit strings, or words, that consist of eight digits, or bits, each bit being a one or a zero. Today's most advanced supercomputers handle 64-bit words.

By using longer words, a computer can calculate with greater precision and make finer distinctions when converting, say, an audio signal into strings of digits. For example, an 8-bit signal processor divides an audio signal into at most 256 intensity levels, providing a relatively crude approximation of the original waveform. In contrast, a 16-bit signal processor--the sort used to record music on compact disks -- samples many times more levels, producing digital audio signals of significantly higher quality and much less distortion.

In scientific computations, the loss of precision caused by using shorter words can have serious consequences. Many physical processes, such as the flow of water past a ship's hull, are full of inherent instabilities. When a computer simulates such processes, it must perform trillions of arithmetic operations. Even a slight inaccuracy in·ac·cu·ra·cy  
n. pl. in·ac·cu·ra·cies
1. The quality or condition of being inaccurate.

2. An instance of being inaccurate; an error.
 in the description of how a physical system changes over time, or in rounding off numbers during a computation, can lead to the wrong answer.

But the penalty for increased word length is a corresponding increase in the amount of circuitry and wires needed to build the computer and in the time the computer takes to execute an instruction. Schemes that allow small-word computers to handle longer words circumvent the problem, but such hybrid operations generally prove astonishingly a·ston·ish  
tr.v. as·ton·ished, as·ton·ish·ing, as·ton·ish·es
To fill with sudden wonder or amazement. See Synonyms at surprise.
 slow and cumbersome.

To fit more numbers into a given word length, computer scientists over the years have developed special formats for representing decimal or real numbers in a computer, along with specific rules for rounding off or truncating such numbers to make sure they stay within the assigned word length. Most computers now use such "floating-point arithmetic" schemes for representing and manipulating numbers. But small errors inherent in the way real numbers are represented in a computer can accumulate, sometimes causing major precision problems in numerical calculations.

Number theory offers a way to rid calculations of these intrinsic errors by combining a special procedure called modular arithmetic (mathematics) modular arithmetic - (Or "clock arithmetic") A kind of integer arithmetic that reduces all numbers to one of a fixed set [0..N-1] (this would be "modulo N arithmetic") by effectively repeatedly adding or subtracting N (the "modulus") until the result is within this  with a set of numbers known as Fermat numbers.

In modular arithmetic, only remainders left over after division of one whole number by another count. For example, suppose the divisor divisor - A quantity that evenly divides another quantity.

Unless otherwise stated, use of this term implies that the quantities involved are integers. (For non-integers, the more general term factor may be more appropriate.)

Example: 3 is a divisor of 15.
, or modulus, happens to be 5. Dividing 5 into a given whole number produces a certain remainder, which constitutes the answer. Thus, dividing 5 into 7 or 12 produces the same answer -- the remainder 2.

Fermat numbers have the form [2.sup.x] + 1, where x = [2.sup.n]. When n = 0, the first Fermat number, [F.sub.0], is 3; when n = 1, the second Fermat number, [F.sub.1], is 5; similarly, [F.sub.2] = 17; and so on (SN: 6/23/90, p.389). Using a Fermat number as the divisor in modular arithmetic provides a handy way of speeding up certain types of calculations and circumvents the need to deal with real numbers.

In 1975, James H. McClellan James H. McClellan is Byers Professor of Signal Processing[1] at the Georgia Institute of Technology. He is widely known for his creation of the McClellan transform and for his co-authorship of the Parks-McClellan filter design algorithm.  of MIT's Lincoln Laboratory MIT Lincoln Laboratory, also known as Lincoln Lab, is a federally funded research and development center managed by the Massachusetts Institute of Technology and primarily funded by the United States Department of Defense.  in Lexington, Mass., built a digital signal-processing device based on Fermat arithmetic, demonstrating that the electronic circuitry needed to do modular arithmetic based on Fermat numbers can operate faster than the circuitry used for performing real-number operations. Furthermore, no rounding off takes place during the calculations. Thus, the answer is always exact and correct, provided it's less than the Fermat number used in the operations.

Little Fermat's answer to achieving faster multiplication while avoiding the errors associated with floating-point arithmetic is to combine increased word length with numerical recipes Numerical Recipes is the generic title of an influential series of books on algorithms and numerical analysis, all by William Press, Saul Teukolsky, William Vetterling and Brian Flannery: Overview , or algorithms, based on modular arithmetic and Fermat numbers.

Armed with these key ideas, Denneau and the Chudnovsky brothers The Chudnovsky brothers (both born in Kiev) are mathematicians known for their wide mathematical ability, their home-built supercomputers, and their close working relationship.  prepared a flow chart, then a detailed design for a machine capable of rapid, error-free multiplication of large numbers. Then the real headaches began.

Commercially available integrated-circuit components limited the word size to 257 bits. Wiring constraints restricted the size of the boards on which the electronic parts could be mounted. Instead of laying out the computer on a single circuit board, the designers had to break up the circuitry to fit onto six boards -- each a square 25.6 inches wide, densely packed with chips and covered with a rat's nest of connecting wires.

Before Younis could set the first chip into place, the researchers had to check their design for flaws. The trouble was that they had designed Little Fermat to have capabilities exceeding those of any conventional computer that could be used to simulate the way its logic worked. In the end, they had to settle for testing their design in pieces, never as a complete unit.

"Even then, it was a staggering task," Gregory Chudnovsky says.

Younis spent more than a year building the computer, then roughly another year testing the completed machine to correct all the assembly and design defects that he found. The biggest assembly problems involved the 82,500 individual wires (totaling about 5 miles) connecting 6,700 integrated-circuit chips and other components.

Those problems ranged from chips that sporadically continued working even when no electrical power reached them to wires that shrank and disconnected when they cooled after the machine was turned off. And because the computer was designed for rapid calculation, and electronic signals travel at finite speeds, even wire length became an important consideration. The most night-marish defects -- especially those that made their presence felt intermittently -- took weeks to track down, but Younis persisted.

"Now it's running," David Chudnovsky says. "Rarely has a hardware project of such magnitude been carried through to its completion by a single man. It was an unbelievable achievement."

To compute with Little Fermat, a user writes a program in a language now called Younis. That language provides a set of instructions expressed in 240-bit chunks, which can be combined in various ways to perform a number of functions. A personal computer attached to Little Fermat loads the program into the machine, monitors the computation and unloads and displays the results when the computation is finished.

"We are now checking [Little Fermat's] performance," Gregory Chudnovsky says. "We have to be sure it does what we want it to do. And we would be happy to find someone interested in programming the machine for a specific application."

So far, the Chudnovskys have used Little Fermat primarily for computations in number theory that involve gargantuan gar·gan·tu·an  
adj.
Of immense size, volume, or capacity; gigantic. See Synonyms at enormous.


gargantuan
Adjective

huge or enormous [after Gargantua, a giant in Rabelais'
 numbers -- searching for prime Fermat numbers, factoring large numbers and testing whether certain huge numbers are primes.

But the machine's special characteristics make it ideal for digital signal and image processing, as well as for solving the differential equations used by researchers modeling the behavior of physical systems. Such computational problems regularly surface in aerodynamics aerodynamics, study of gases in motion. As the principal application of aerodynamics is the design of aircraft, air is the gas with which the science is most concerned. , hydrodynamics hydrodynamics: see mechanics.
Hydrodynamics

The study of fluids in motion. The study is based upon the physical conservation laws of mass, momentum, and energy.
, chemistry, geophysics and many other disciplines.

Only one Little Fermat exists today, but that's more than can be said for the many other new computer designs that never made it to the hardware stage, instead remaining "paperware" -- described in a paper but never built. "This machine is alive and well and working," David Chudnovsky says. "It's real."

"We showed it can be done," Gregory Chudnovsky says. "Even if it remains a one-of-a-kind machine, Little Fermat stands as a demonstration of what should be added to a supercomputer to improve its performance. It would be very cheap to put additional Fermat circuitry into future supercomputers."
COPYRIGHT 1990 Science Service, Inc.
No portion of this article can be reproduced without the express written permission from the copyright holder.
Copyright 1990, Gale Group. All rights reserved. Gale Group is a Thomson Corporation Company.

 Reader Opinion

Title:

Comment:



 

Article Details
Printer friendly Cite/link Email Feedback
Author:Peterson, Ivars
Publication:Science News
Date:Oct 6, 1990
Words:1501
Previous Article:HACing out a dusty light source. (hydrogenated amorphous carbon and the spectra of interstellar dust clouds)
Next Article:Diuretic slows cystic fibrosis damage. (amiloride)
Topics:



Related Articles
Digital division for fast computing.
Closing in on Fermat's last theorem. (Pierre de Fermat)
Fermat's last theorem: a promising approach.
Doubts about Fermat solution.
Computing a prime champion. (prime numbers)
Fermat-number factors. (mathematics)
A curvy path leads to Fermat's last theorem. (mathematician Andrew Wiles establishes truth of Fermat's last theorem)
The Mathematical Career of Pierre de Fermat, 1601-1665, 2nd ed.
Owners of home computers join researchers in cracking problems and crunching data.
Letters.(Letter to the Editor)

Terms of use | Copyright © 2009 Farlex, Inc. | Feedback | For webmasters | Submit articles