Results for array
On this page:
 
Dictionary:

array

  (ə-rā') pronunciation
tr.v., -rayed, -ray·ing, -rays.
  1. To set out for display or use; place in an orderly arrangement: arrayed the whole regiment on the parade ground.
  2. To dress in finery; adorn.
n.
  1. An orderly, often imposing arrangement: an array of royal jewels.
  2. An impressively large number, as of persons or objects: an array of heavily armed troops; an array of spare parts. See synonyms at display.
  3. Splendid attire; finery.
  4. Mathematics.
    1. A rectangular arrangement of quantities in rows and columns, as in a matrix.
    2. Numerical data linearly ordered by magnitude.
  5. Computer Science. An arrangement of memory elements in one or more planes.

[Middle English arraien, from Anglo-Norman arraier, from Vulgar Latin *arrēdāre.]


 
 

An ordered arrangement of data elements. A vector is a one dimensional array, a matrix is a two-dimensional array. Most programming languages have the ability to store and manipulate arrays in one or more dimensions. Multi-dimensional arrays are used extensively in scientific simulation and mathematical processing; however, an array can be as simple as a pricing table held in memory for instant access by an order entry program. See subscript.



 

Collection of data that is given one name. An array is arranged so that each item in the array can be located when needed. An array is made up of a group of elements, which may be either numbers or character strings. Each element can be identified by a set of numbers known as subscripts, which indicate the row and column in which the element is located.

 
Thesaurus: array

verb

  1. To put into a deliberate order: arrange, deploy, dispose, marshal, order, organize, range, sort, systematize. See order/disorder.
  2. To dress in formal or special clothing: attire, deck, dress up, prank. Informal trick out (or up). Slang doll up. See order/disorder, plain/fancy, put on/take off.

noun

  1. An impressive or ostentatious exhibition: display, panoply, parade, pomp, show, spectacle. See show/hide.
  2. A number of individuals making up or considered a unit: band, batch, bevy, body, bunch, bundle, clump, cluster, clutch, collection, group, knot, lot, party, set. See group.
  3. Showy and elaborate clothing or apparel: attire, finery, frippery, regalia. See put on/take off.

 
Antonyms: array

n

Definition: clothes
Antonyms: rags

v

Definition: decorate
Antonyms: disarray

v

Definition: dress
Antonyms: disarrange, disarray, undress


 

n. an arrangement of troops.

See the Introduction, Abbreviations and Pronunciation for further details.

 
This entry contains information applicable to United States law only.

The entire group of jurors selected for a trial from which a smaller group is subsequently chosen to form a petit jury or a grand jury; the list of potential jurors.

Virtually all states have enacted statutes delineating requirements for jury service. In most states, convicted felons and insane persons cannot be jurors. Professional persons such as judicial and government officials, lawyers, ministers, and medical personnel may be exempted by statute from jury service.

As a general rule, a group of local officials acting within the statutory framework select the persons who will make up the array.

 
Word Tutor: array
pronunciation

IN BRIEF: To place in an appealing order.

pronunciation The roses were displayed in a pleasing array.

 
Wikipedia: array



Linear data structures

Array
Deque
Linked list
Queue
Stack

In computer science an array is a data structure consisting of a group of elements that are accessed by indexing. In most programming languages each element has the same data type and the array occupies a contiguous area of storage. Most programming languages have a built-in array data type.

Some programming languages support array programming (e.g., APL, newer versions of Fortran) which generalizes operations and functions to work transparently over arrays as they do with scalars, instead of requiring looping over array members.

Multi-dimensional arrays are accessed using more than one index: one for each dimension.

Arrays can be classified as fixed-sized arrays (sometimes known as static arrays) whose size cannot change once their storage has been allocated, or dynamic arrays, which can be resized.


Applications

Because of their performance characteristics, arrays are used to implement other data structures, such as heaps, hash tables, deques, queues, stacks, strings, and VLists.

Some algorithms store a variable number of elements in part of a fixed-size array, which is equivalent to using dynamic array with a fixed capacity. See dynamic array for details.

Associative arrays provide a mechanism for array-like functionality without huge storage overheads when the index values are sparse. Specialized associative arrays with integer keys include Patricia tries and Judy arrays.

Indexing


The valid index values of each dimension of an array are a bounded set of integers. Programming environments that check indexes for validity are said to perform bounds checking.

Index of the first element

The index of the first element varies by language. There are three main implementations: zero-based, one-based, and n-based arrays, for which the first element has an index of zero, one, or a programmer-specified value. The zero-based array was made popular by the C programming language, in which the abstraction of array is very weak, and an index n of an array is simply the address of the first element offset by n units. One-based arrays are based on traditional mathematics notation. n-based is made available so the programmer is free to choose the lower bound which is best suited for the problem at hand.

There is a list of programming languages at the end of the article.

In 1982 Edsger W. Dijkstra wrote a document, Why numbering should start at zero.

Supporters of zero-based indexing often incorrectly criticise one-based and n-based arrays for being slower. However, a one-based or n-based array access can be optimized with common subexpression elimination or with a well-defined dope vector.

The 0-based/1-based debate is not limited to just programming languages. For example, the ground-floor of a building is elevator button "0" in France, but elevator button "1" in the USA.

Multi-dimensional arrays

Ordinary arrays are indexed by a single integer. Also useful, particularly in numerical and graphics applications, is the concept of a multi-dimensional array, in which we index into the array using an ordered list of integers, such as in a[3,1,5]. The number of integers in the list used to index into the multi-dimensional array is always the same and is referred to as the array's dimensionality, and the bounds on each of these are called the array's dimensions. An array with dimensionality k is often called k-dimensional. One-dimensional arrays correspond to the simple arrays discussed thus far; two-dimensional arrays are a particularly common representation for matrices. In practice, the dimensionality of an array rarely exceeds three. Mapping a one-dimensional array into memory is obvious, since memory is logically itself a (very large) one-dimensional array. When we reach higher-dimensional arrays, however, the problem is no longer obvious. Suppose we want to represent this simple two-dimensional array:

\mathbf{A} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}

It is most common to index this array using the RC-convention, where elements are referred in row, column fashion or A_{row,col}\,, such as:

A_{1,1}=1,\ A_{1,2}=2,\ \ldots,\ A_{3,2}=8,\ A_{3,3}=9\,

Common ways to index into multi-dimensional arrays include:

  • Row-major order. Used most notably by statically-declared arrays in C. The elements of each row are stored in order.
1 2 3 4 5 6 7 8 9
1 4 7 2 5 8 3 6 9
  • Arrays of arrays. Multi-dimensional arrays are typically represented by one-dimensional arrays of references (Iliffe vectors) to other one-dimensional arrays. The subarrays can be either the rows or columns.

A two-dimensional array stored as a one-dimensional array of one-dimensional arrays.

The first two forms are more compact and have potentially better locality of reference, but are also more limiting; the arrays must be rectangular, meaning that no row can contain more elements than any other. Arrays of arrays, on the other hand, allow the creation of ragged arrays, also called jagged arrays, in which the valid range of one index depends on the value of another, or in this case, simply that different rows can be different sizes. Arrays of arrays are also of value in programming languages that only supply one-dimensional arrays as primitives.

In many applications, such as numerical applications working with matrices, we iterate over rectangular two-dimensional arrays in predictable ways. For example, computing an element of the matrix product AB involves iterating over a row of A and a column of B simultaneously. In mapping the individual array indexes into memory, we wish to exploit locality of reference as much as we can. A compiler can sometimes automatically choose the layout for an array so that sequentially accessed elements are stored sequentially in memory; in our example, it might choose row-major order for A, and column-major order for B. Even more exotic orderings can be used, for example if we iterate over the main diagonal of a matrix.

Array system cross-reference list

Programming language Base index Bound Check Multidimensional Dynamically-sized
Ada n checked yes init1
APL7 0 or 1 checked yes init1
assembly language 0 unchecked no no
BASIC 1 checked no init1
C 0 unchecked yes2 heap3,4
[[C++]]5 0 unchecked yes2 heap3
C# 0 checked yes2 heap3,9
Common Lisp 0 checked yes yes
D 0 varies11 yes yes
FreeBASIC n checked yes yes
Fortran n varies12 yes init1,heap3
FoxPro 1 checked yes yes
IDL 0 checked yes yes
Java5 0 checked yes2 heap3
Lua 1 checked no2 yes
MATLAB 1 checked yes8 yes
Oberon-1 0 checked yes no
Oberon-2 0 checked yes yes
Pascal n varies13 yes varies10
Perl n checked no2 yes
PL/I n checked
Python 0 checked no2 yes
Ruby 0 checked no2 yes
Haskell any checked yes yes
Scheme 0 checked no2 no
Smalltalk5 1 checked no2 yes6
Visual BASIC n checked yes yes
Windows PowerShell 0 checked yes2 heap
  1. Size can be chosen on initialization/declaration after which it is fixed.
  2. Allows arrays of arrays which can be used to emulate multi-dimensional arrays.
  3. Size can only be chosen when memory is allocated on the heap.
  4. C99 allows for variable size arrays – however there is almost no compiler available to support this new feature.
  5. This list is strictly comparing language features. In every language (even assembler) it is possible to provide improved array handling via add on libraries. This language has improved array handling as part of its standard library.
  6. The class Array is fixed-size, but OrderedCollection is dynamic.
  7. The indexing base can be 0 or 1, but is set for a whole "workspace".
  8. At least 2 dimensions (scalar numbers are 1×1 arrays, vectors are 1×n or n×1 arrays).
  9. Allows creation of fixed-size arrays in "unsafe" code, allowing for enhanced interoperability with other languages
  10. Varies by implementation. Newer implementations (FreePascal and Delphi) permit heap-based dynamic arrays.
  11. Behaviour can be tuned using compiler switches. As in DMD 1.0 bounds are checked in debug mode and unchecked in release mode for efficiency reasons.
  12. Almost all Fortran implementations offer bounds checking options via compiler switches. However by default, bounds checking is usually turned off for efficiency reasons.
  13. Many implementations (Turbo Pascal, Delphi, FreePascal) allow the behaviour to be changed by compiler switches and in-line directives.

See also

External link


 
Translations: Translations for: Array

Dansk (Danish)
n. - opbud, opstilling, præsentation
v. tr. - pryde, pynte, iføre

Nederlands (Dutch)
reeks, rij, uitstalling, matrix, gelid, slagorde, legeruitrusting, schare, aantal juryleden, (in slagorde) opstellen, scharen, samenstellen, (op)tooien, uitstallen, een jury samenbrengen

Français (French)
n. - (Mil) rang, ordre, ensemble impressionnant, collection, étalage, assemblée, batterie, (Math, Comput) tableau, habit d'apparat, parure, atours
v. tr. - parer de, (Mil) déployer, ranger, disposer

Deutsch (German)
n. - Reihe, Putz, Schmuck
v. - schmücken, ordnen

Ελληνική (Greek)
n. - παράταξη, διάταξη, θέση μάχης, (ποιητ.) περιβολή, ρούχα, (μαθημ.) διάταξη στοιχείων
v. - (παρα)τάσσω, στοιχίζω, βάζω σε θέση μάχης, στολίζω, ντύνω πλούσια, (νομ.) συγκροτώ, καταρτίζω (λίστα ενόρκων)

Italiano (Italian)
gamma, ordine, spiegamento, schiera, rete, assortimento, fila, ornamento

Português (Portuguese)
n. - ordem (f) de combate (Mil.), exibição (f)
v. - por em ordem, vestir

Русский (Russian)
ряд, военный строй, облачение, одежда

Español (Spanish)
n. - formación, orden, atavío, gala, pompa
v. tr. - formar, ordenar, ataviar

Svenska (Swedish)
n. - uppbåd, samling, jury
v. - ordna, pryda

中文(简体) (Chinese (Simplified))
军队, 编队, 排列, 穿着, 部署

中文(繁體) (Chinese (Traditional))
n. - 軍隊, 編隊, 排列
v. tr. - 穿著, 排列, 部署

한국어 (Korean)
n. - 정렬 , 배심원의 소집, 세트
v. tr. - 정렬시키다, 치장하다

日本語 (Japanese)
n. - 整頓, 配列, アレイ, 整然と並んだもの, 陣立て
v. - 整頓する, 配列する, 配置を整える, 盛装させる

العربيه (Arabic)
‏(الاسم) ينظم, يلبس, يكسو (فعل) نظام, ترتيب‏

עברית (Hebrew)
n. - ‮מערך, כוח, תצוגה, בגדים, סידור כמויות או סמלים בשורות וטורים‬
v. tr. - ‮ערך, הלביש, הציב במערך‬


 
Best of the Web: array

Some good "array" pages on the web:


Math
mathworld.wolfram.com
 
 
 

Join the WikiAnswers Q&A community. Post a question or answer questions about "array" at WikiAnswers.

 

Copyrights:

Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2007. Published by Houghton Mifflin Company. All rights reserved.  Read more
Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2008 Computer Language Company Inc.  All rights reserved.  Read more
Business Dictionary. Dictionary of Business Terms. Copyright © 2000 by Barron's Educational Series, Inc. All rights reserved.  Read more
Thesaurus. Roget's II: The New Thesaurus, Third Edition by the Editors of the American Heritage® Dictionary Copyright © 1995 by Houghton Mifflin Company. Published by Houghton Mifflin Company. All rights reserved.  Read more
Answers Corporation Antonyms. © 1999-2008 by Answers Corporation. All rights reserved.  Read more
US Military Dictionary. The Oxford Essential Dictionary of the U.S. Military. Copyright © 2001, 2002 by Oxford University Press, Inc. All rights reserved.  Read more
Law Encyclopedia. West's Encyclopedia of American Law. Copyright © 1998 by The Gale Group, Inc. All rights reserved.  Read more
Word Tutor. Copyright © 2004-present by eSpindle Learning, a 501(c) nonprofit organization. All rights reserved.
eSpindle provides personalized spelling and vocabulary tutoring online; free trial Read more
Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Array" Read more
Translations. Copyright © 2007, WizCom Technologies Ltd. All rights reserved.  Read more

Search for answers directly from your browser with the FREE Answers.com Toolbar!  
Click here to download now. 

Get Answers your way! Check out all our free tools and products.

On this page:   E-mail   print Print  Link  

 

Keep Reading

Mentioned In:

Related Topics