Heap vs Array - What's the difference?
heap | array | Related terms |
A crowd; a throng; a multitude or great number of people.
* Francis Bacon
* W. Black
A pile or mass; a collection of things laid in a body, or thrown together so as to form an elevation.
* Dryden
A great number or large quantity of things.
* Bishop Burnet
* Robert Louis Stevenson
(computing) A data structure consisting of trees in which each node is greater than all its children.
* {{quote-news
, year=2012
, date=May 9
, author=Jonathan Wilson
, title=Europa League: Radamel Falcao's Atlético Madrid rout Athletic Bilbao
, work=the Guardian
To pile in a heap.
To form or round into a heap, as in measuring.
* 1819 , , Otho the Great , Act I, scene II, verses 40-42
To supply in great quantity.
Clothing and ornamentation.
A collection laid out to be viewed in full.
An orderly series, arrangement or sequence.
* Prescott
Order; a regular and imposing arrangement; disposition in regular lines; hence, order of battle.
* Gibbon
A large collection.
* Byron
* {{quote-news, year=2011
, date=October 23
, author=Phil McNulty
, title=Man Utd 1 - 6 Man City
, work=BBC Sport
(programming) Any of various data structures designed to hold multiple elements of the same type; especially , a data structure that holds these elements in adjacent memory locations so that they may be retrieved using numeric indices.
(legal) A ranking or setting forth in order, by the proper officer, of a jury as impanelled in a cause; the panel itself; or the whole body of jurors summoned to attend the court.
(military) A militia.
To clothe and ornament; to adorn or attire
To lay out in an orderly arrangement; to deploy or marshal
(legal) To set in order, as a jury, for the trial of a cause; that is, to call them one at a time.
As nouns the difference between heap and array
is that heap is a crowd; a throng; a multitude or great number of people while array is clothing and ornamentation.As verbs the difference between heap and array
is that heap is to pile in a heap while array is to clothe and ornament; to adorn or attire.heap
English
(wikipedia heap)Noun
(en noun)- a heap of vassals and slaves
- He had heaps of friends.
- a heap of earth or stones
- Huge heaps of slain around the body rise.
- a vast heap , both of places of scripture and quotations
- I have noticed a heap of things in my life.
citation, page= , passage=Every break seemed dangerous and Falcao clearly had the beating of Amorebieta. Others, being forced to stretch a foot behind them to control Arda Turan's 34th-minute cross, might simply have lashed a shot on the turn; Falcao, though, twisted back on to his left foot, leaving Amorebieta in a heap , and thumped in an inevitable finish – his 12th goal in 15 European matches this season.}}
Synonyms
* See alsoVerb
(heap)- He heaped the laundry upon the bed and began folding.
- Cry a reward, to him who shall first bring
- News of that vanished Arabian,
- A full-heap’d helmet of the purest gold.
- They heaped praise upon their newest hero.
Derived terms
* heap upAnagrams
* * * ----array
English
Noun
(en noun)- (Dryden)
- a gallant array of nobles and cavaliers
- drawn up in battle array
- wedged together in the closest array
- their long array of sapphire and of gold
- We offer a dazzling array of choices.
citation, page= , passage=Mario Balotelli, in the headlines for accidentally setting his house ablaze with fireworks, put City on their way with goals either side of the interval as United struggled to contain the array of attacking talent in front of them.}}
Usage notes
* (any of various data structures) The exact usage of the term , and of related terms, generally depends on the programming language. For example, many languages distinguish a fairly low-level "array" construct from a higher-level "list" or "vector" construct. Some languages distinguish between an "array" and a variety of "associative array"; others have only the latter concept, calling it an "array".Derived terms
* * * * *Antonyms
* (orderly series) disarraySee also
* (any of various data structures) ones-based indexing, zero-based indexingVerb
- He was arrayed in his finest robes and jewels.
- (Blackstone)