- Random access
In
computer science , random access (sometimes called direct access) is the ability to access an arbitrary element of a sequence in equal time. The opposite issequential access , where a remote element takes longer time to access. A typical illustration of this distinction is to compare an ancient scroll (sequential; all material prior to the data needed must be unrolled) and thebook (random: can be immediately flipped open to any randompage . A more modern example is a cassette tape (sequential—you have to fast-forward through earlier songs to get to later ones) and a compact disc (random access—you can jump right to the track you want). The termrandom access memory (RAM), however, is used for semiconductor chip memory circuits used in computers. (The term was also used to describeferrite-core memory in early computers).In
data structure s, random access implies the ability to access the "N"th entry in a list of numbers in constant time. Very few data structures can guarantee this, other thanarray s (and related structures likedynamic array s). Random access is critical to many algorithms such asquicksort andbinary search . Other data structures, such aslinked list s, sacrifice random access to make for efficient inserts, deletes, or searches.
Wikimedia Foundation. 2010.