Random-Access Machine
Definition. A random-access machine (RAM) has a memory of numbered cells, each holding an integer of bits on inputs of length . The input starts in cells to , one symbol per cell. One step reads or writes one cell, at any address, or performs one arithmetic operation or comparison on integers held in cells.
It is the model behind running times stated in algorithm analysis, such as counting array accesses in a program. The RAM and the single-tape Turing machine simulate each other with a polynomial slowdown, so they agree on P but not on specific bounds: a RAM decides in steps, and the single-tape machine of Lecture 6 takes . Defined in Lecture 9; see also complexity class.