Random access

Random access compared to sequential access

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 scroll (sequential; all material prior to the data needed must be unrolled) and the book (direct: can be immediately flipped open to any arbitrary page). A more modern example is a cassette tape (sequential — one must fast forward through earlier songs to get to later ones) and a CD (direct access — one can skip to the track wanted, knowing that it would be the one retrieved).

In data structures, direct access implies the ability to access any entry in a list in constant time (independent of its position in the list and of the list's size). Very few data structures can make this guarantee other than arrays (and related structures like dynamic arrays). Direct access is required, or at least valuable, in many algorithms such as binary search, integer sorting, or certain versions of sieve of Eratosthenes.[4]

Other data structures, such as linked lists, sacrifice direct access to permit efficient inserts, deletes, or re-ordering of data. Self-balancing binary search trees may provide an acceptable compromise, where access time is not equal for all members of a collection, but the maximum time to retrieve a given member grows only logarithmically with its size.

References

  1. ^ National Computer Conference and Exposition (1957). Proceedings. Retrieved 2 October 2013.
  2. ^ Introduction to IBM Direct-access Storage Devices and Organization Methods. International Business Machines Corporation. 1966. pp. 3–. Retrieved 2 October 2013.
  3. ^ "Random and Sequential Data Access".
  4. ^ D. E. KNUTH (1969). The Art of Computer Programming. Vol. 3. Sorting and Searching. Addison-Wesley. ISBN 978-0-201-03803-3. Retrieved 2 October 2013.

See also

Read other articles:

Paweł Raczkowski Informazioni personali Arbitro di Calcio Federazione  Polonia Attività nazionale Anni Campionato Ruolo 2010- Ekstraklasa Arbitro Attività internazionale 2013- UEFA e FIFA Arbitro Esordio 18 luglio 2013 Paweł Raczkowski (Varsavia, 10 maggio 1983) è un arbitro di calcio polacco. Carriera Ha debuttato nel 2010 in Ekstraklasa. Il 18 luglio 2013 dirige il suo primo match in Europa, tra Ertis e Široki Brijeg.[1] Nel 2013 è stato inserito nella lista degli arbitri F…

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「弐」…

William GordonFonctionsCommander-in-Chief, The Nore1854-1857Membre du 16e Parlement du Royaume-Uni16e Parlement du Royaume-Uni (d)Aberdeenshire (en)7 juillet 1852 - août 1854Membre du 15e Parlement du Royaume-Uni15e Parlement du Royaume-Uni (d)Aberdeenshire (en)29 juillet 1847 - 1er juillet 1852Membre du 14e Parlement du Royaume-Uni14e Parlement du Royaume-Uni (d)Aberdeenshire (en)29 juin 1841 - 23 juillet 1847Fourth Sea Lord (en)1841-1846Membre du 13e Parlement du Royaume-Uni13e Parlement du R…

2020年夏季奥林匹克运动会波兰代表團波兰国旗IOC編碼POLNOC波蘭奧林匹克委員會網站olimpijski.pl(英文)(波兰文)2020年夏季奥林匹克运动会(東京)2021年7月23日至8月8日(受2019冠状病毒病疫情影响推迟,但仍保留原定名称)運動員206參賽項目24个大项旗手开幕式:帕维尔·科热尼奥夫斯基(游泳)和马娅·沃什乔夫斯卡(自行车)[1]闭幕式:卡罗利娜·纳亚(皮划艇)[2…

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Daewoo Magnus – news · newspapers · books · scholar · JSTOR (November 2018) (Learn how and when to remove this message) Motor vehicle Daewoo Magnus (V200)Daewoo Magnus (pre-facelift, South Korea)OverviewManufacturerDaewoo (General Motors)Also calledChevrolet …

Disambiguazione – Se stai cercando il partito politico italiano, vedi Lega Lombarda (partito politico). Lega LombardaSocietas LombardiæSocietas Lombardiæ, & Romandiolæ, & Marchiæ Città della prima e della seconda Lega Lombarda TipoAlleanza militare Fondazione7 aprile 1167 (1ª lega)2 marzo 1226 (2ª lega) Scioglimento1250 ScopoDifesa comune contro il Sacro Romano Impero di Federico I Barbarossa (1ª lega) e Federico II di Svevia (2ª lega) Area di azioneLombardia storica MembriCom…

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne s'appuie pas, ou pas assez, sur des sources secondaires ou tertiaires (juillet 2020). Pour améliorer la vérifiabilité de l'article ainsi que son intérêt encyclopédique, il est nécessaire, quand des sources primaires sont citées, de les associer à des analyses faites par des sources secondaires. Pour les articles homonymes, voir Pyrex (homonymie). Pyrex Logo de la marque. Plat à four, un clas…

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article is written like a travel guide. Please help improve the article by introducing an encyclopedic style or move the content to Wikivoyage. (January 2019) You can help expand this article with text translated from the corresponding article in Vietnamese. (January 2022) Click [show] for important translation instructions. Machine t…

County in New York, United States Not to be confused with Nassau (town), New York or Nassau (village), New York. County in New YorkNassau CountyCountyCounty of NassauHempstead House, part of Sands Point Preserve, on Nassau County's Gold Coast, home to some of the world's most expensive real estate FlagSealLocation within the U.S. state of New YorkNew York's location within the U.S.Coordinates: 40°44′50″N 73°38′17″W / 40.7472°N 73.6381°W / 40.7472; -73.6381Coun…

Semyon Ludvigovich FrankBornSemyon Ludvigovich Frank28 January 1877Moscow, Moskovsky Uyezd, Moscow Governorate, Russian EmpireDied10 December 1950(1950-12-10) (aged 73)London, United KingdomEra20th-century philosophyRegionRussian philosophySchoolChristian mysticism, Christian philosophy This article is part of a series onConservatism in Russia Ideologies Eurasianism Duginism Monarchism Tsarism Populism Putinism Russian nationalism All-Russian Christian Ultra Slavophilia Pochvennichestvo Soc…

Girl Scouting in Virginia has a long history, from the 1910s to the present day, serving thousands of youth in programs that suit the environment in which they live. Many of the local groups and districts took names of historic Virginia Indian tribes in the state. Boy Scouts of America Main article: Boy Scouts of America History William D. Boyce incorporated the Boy Scouts of America at 11:03 am on February 8, 1910, in Washington, D.C., on the advice of railroad executive and later first na…

Skew polygon derived from a polytope The Petrie polygon of the dodecahedron is a skew decagon. Seen from the solid's 5-fold symmetry axis it looks like a regular decagon. Every pair of consecutive sides belongs to one pentagon (but no triple does). In geometry, a Petrie polygon for a regular polytope of n dimensions is a skew polygon in which every n – 1 consecutive sides (but no n) belongs to one of the facets. The Petrie polygon of a regular polygon is the regular polygon itself; that of a r…

1894 Atlantic hurricane seasonSeason summary mapSeasonal boundariesFirst system formedJune 6, 1894Last system dissipatedOctober 29, 1894Strongest stormNameSix • Maximum winds130 mph (215 km/h)(1-minute sustained) • Lowest pressure931 mbar (hPa; 27.49 inHg) Seasonal statisticsTotal storms7Hurricanes5Major hurricanes(Cat. 3+)4Total fatalities>200 directTotal damageAt least $1 million (1894 USD)Related article 1890s North Indian Ocean cyclone seasons Atlantic hurricane se…

House elections for the 86th U.S. Congress 1958 United States House of Representatives elections ← 1956 November 4, 1958[a] 1960 → All 436 seats in the United States House of Representatives219 seats needed for a majority   Majority party Minority party   Leader Sam Rayburn Joseph Martin Party Democratic Republican Leader since September 16, 1940 January 3, 1939 Leader's seat Texas 4th Massachusetts 14th Last election 234 seats 201…

Baba IshakBornSultanate of RûmDied1241Sultanate of RûmCriminal chargeRebellion against State, Treason, VandalismPenaltyHanged to death (execution)DetailsVictimsunknownDate1239 –1241Killedunknown   Part of a series on Nizari-Ismāʿīli Batiniyya, Hurufiyya, Kaysanites and Twelver Shī‘ism Alevism Beliefs Allah Quran Haqq–Muhammad–Ali Prophet Muḥammad ibn `Abd Allāh Muhammad-Ali Islamic prophet Zahir Batin Buyruks Tariqat Haqiqa Marifat Wahdat al-wujud Wahdat al-mawjud Baqaa Fan…

Mythology of pre-Christian Georgians This article is written like a personal reflection, personal essay, or argumentative essay that states a Wikipedia editor's personal feelings or presents an original argument about a topic. Please help improve it by rewriting it in an encyclopedic style. (April 2020) (Learn how and when to remove this message) Part of a series onGeorgians ქართველებიThe Kartvelian people Nation Georgia Ancient Kartvelian people Colchians Iberians Subgroups …

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: MARA Junior Science College – news · newspapers · books · scholar · JSTOR (November 2011) Public, secondary school, school in MalaysiaMARA Junior Science College (MJSC)Maktab Rendah Sains Mara (MRSM)LocationMalaysiaInformationTypePublic, Secondary school…

Sly Stone Nazionalità Stati Uniti GenereRockSoulFunkRhythm and blues Periodo di attività musicale1952 – in attività Sito ufficiale Modifica dati su Wikidata · Manuale Sly Stone, pseudonimo di Sylvester Stewart (Denton, 15 marzo 1943), è un musicista, cantante e produttore discografico statunitense noto per il suo ruolo di frontman nella band Sly & the Family Stone, gruppo che ha avuto un ruolo di primo piano nello sviluppo della musica soul, funk e psiched…

هذه مقالة غير مراجعة. ينبغي أن يزال هذا القالب بعد أن يراجعها محرر؛ إذا لزم الأمر فيجب أن توسم المقالة بقوالب الصيانة المناسبة. يمكن أيضاً تقديم طلب لمراجعة المقالة في الصفحة المخصصة لذلك. (سبتمبر 2020) التأشيب الجسمي (بالإنجليزية: V(D)J recombination)‏ هي آلية فريدة من نوعها من إعادة ال…

Daftar keuskupan di Kolombia adalah sebuah daftar yang memuat dan menjabarkan pembagian terhadap wilayah administratif Gereja Katolik Roma yang dipimpin oleh seorang uskup ataupun ordinaris di Kolombia. Konferensi para uskup Kolombia bergabung dalam Konferensi Waligereja Kolombia. Per Juni 2020, terdapat 78 buah yurisdiksi, di mana 14 merupakan keuskupan agung dan 52 merupakan keuskupan sufragan. Terdapat juga 10 buah vikariat apostolik, 1 ordinariat militer, dan 1 eksarkat apostolik. Daftar keu…