Random-access machine
Builds on Register machineNatural numbers
Definition
A random-access machine has registers , indexed by the natural numbers, each holding a natural number. A program is a finite sequence of instructions of the following kinds, where and .
- , which loads a constant.
- and , where .
- and , the indirect load and store.
- , which goes to instruction if .
- .
Every instruction other than a taken jump or is followed by the next one in the list. A run starts at with the input in finitely many registers and all other registers . When the run halts, the output is read from a fixed register. In the unit cost measure each instruction costs . In the logarithmic cost measure an instruction costs the total number of bits of the addresses and values it uses.
Remarks
Example: the program , copies into the content of the register whose number is stored in . With it reads in one step. A register machine program names only finitely many registers, so it cannot read a register whose number is computed during the run. Non-example: a program with the instruction is not a program of this machine. Adding unit-cost multiplication changes the model, since repeated squaring then builds numbers with exponentially many bits in polynomially many steps. Many variants are in use, for example with an accumulator or with integer registers; they have the same computing power.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Natural numbers object
- Register machine concept
- Random-access machine definition
Further reading
About this page
| Tag | C5VD1V0RYD |
|---|---|
| URI | m2://C5VD1V0RYD |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q04, 68Q25 |
| Defines | Random-access machine |
| Uses | Register machine, Natural numbers |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.