Real RAM explained

In computing, especially computational geometry, a real RAM (random-access machine) is a mathematical model of a computer that can compute with exact real numbers instead of the binary fixed point or floating point numbers used by most actual computers. The real RAM was formulated by Michael Ian Shamos in his 1978 Ph.D. dissertation.[1]

Model

The "RAM" part of the real RAM model name stands for "random-access machine". This is a model of computing that resembles a simplified version of a standard computer architecture. It consists of a stored program, a computer memory unit consisting of an array of cells, and a central processing unit with a bounded number of registers. Each memory cell or register can store a real number. Under the control of the program, the real RAM can transfer real numbers between memory and registers, and perform arithmetic operations on the values stored in the registers.

The allowed operations typically include addition, subtraction, multiplication, and division, as well as comparisons, but not modulus or rounding to integers. The reason for avoiding integer rounding and modulus operations is that allowing these operations could give the real RAM unreasonable amounts of computational power, enabling it to solve PSPACE-complete problems in polynomial time.[2]

When analyzing algorithms for the real RAM, each allowed operation is typically assumed to take constant time.

Implementation

Software libraries such as LEDA have been developed which allow programmers to write computer programs that work as if they were running on a real RAM.These libraries represent real values using data structures which allow them to perform arithmetic and comparisons with the same results as a real RAM would produce. For example, In LEDA, real numbers are represented using the leda_real datatype, which supports k-th roots for any natural number k, rational operators, and comparison operators.[3] The time analysis of the underlying real RAM algorithm using these real datatypescan be interpreted as counting the number of library calls needed by a given algorithm.[4]

Comparison to other computational models

External links

Notes and References

  1. .
  2. .
  3. Book: Melhorn . Kurt . Näher . Stefan . The LEDA Platform of Combinatorial and Geometric Computing . 1999 . Cambridge University Press . 12 November 2019.
  4. .
  5. Grötschel . M. . Lovász . L. . Schrijver . A. . 1981-06-01 . The ellipsoid method and its consequences in combinatorial optimization . Combinatorica . en . 1 . 2 . 169–197 . 10.1007/BF02579273 . 43787103 . 1439-6912.
  6. .