Random access
This article needs additional citations for verification. (July 2011) |
Random access (more precisely and more generally called direct access) is the ability to access an arbitrary element of a sequence in equal time or any datum from a population of addressable elements roughly as easily and efficiently as any other, no matter how many elements may be in the set. In computer science it is typically contrasted to sequential access which requires data to be retrieved in the order it was stored.
For example, data might be stored notionally in a single sequence like a row, in two dimensions like rows and columns on a surface, or in multiple dimensions. However, given all the coordinates, a program can access each record about as quickly and easily as any other. In this sense, the choice of datum is arbitrary in the sense that no matter which item is sought, all that is needed to find it is its address, i.e. the coordinates at which it is located, such as its row and column (or its track and record number on a magnetic drum). At first, the term "random access" was used because the process had to be capable of finding records no matter in which sequence they were required.[1] However, soon the term "direct access" gained favour because one could directly retrieve a record, no matter what its position might be.[2] The operative attribute, however, is that the device can access any required record immediately on demand. The opposite is sequential access, where a remote element takes longer time to access.[3]
A typical illustration of this distinction is to compare an ancient
In
Other data structures, such as
References
- ^ National Computer Conference and Exposition (1957). Proceedings. Retrieved 2 October 2013.
- ^ Introduction to IBM Direct-access Storage Devices and Organization Methods. International Business Machines Corporation. 1966. pp. 3–. Retrieved 2 October 2013.
- ^ "Random and Sequential Data Access".
- ISBN 978-0-201-03803-3. Retrieved 2 October 2013.
See also
- Data stream
- Random-access machine
- Random-access memory although the cache and virtual memory make this no longer truly random access.
- Locality of reference