What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Heap vs Array - What's the difference?

heap | array | Related terms |

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 crowd; a throng; a multitude or great number of people.
  • * Francis Bacon
  • a heap of vassals and slaves
  • * W. Black
  • He had heaps of friends.
  • A pile or mass; a collection of things laid in a body, or thrown together so as to form an elevation.
  • a heap of earth or stones
  • * Dryden
  • Huge heaps of slain around the body rise.
  • A great number or large quantity of things.
  • * Bishop Burnet
  • a vast heap , both of places of scripture and quotations
  • * Robert Louis Stevenson
  • I have noticed a heap of things in my life.
  • (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 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 also

    Verb

    (heap)
  • To pile in a heap.
  • He heaped the laundry upon the bed and began folding.
  • To form or round into a heap, as in measuring.
  • * 1819 , , Otho the Great , Act I, scene II, verses 40-42
  • Cry a reward, to him who shall first bring
    News of that vanished Arabian,
    A full-heap’d helmet of the purest gold.
  • To supply in great quantity.
  • They heaped praise upon their newest hero.

    Derived terms

    * heap up

    Anagrams

    * * * ----

    array

    English

    Noun

    (en noun)
  • Clothing and ornamentation.
  • (Dryden)
  • A collection laid out to be viewed in full.
  • An orderly series, arrangement or sequence.
  • * Prescott
  • a gallant array of nobles and cavaliers
  • Order; a regular and imposing arrangement; disposition in regular lines; hence, order of battle.
  • drawn up in battle array
  • * Gibbon
  • wedged together in the closest array
  • A large collection.
  • * Byron
  • their long array of sapphire and of gold
    We offer a dazzling array of choices.
  • * {{quote-news, year=2011
  • , date=October 23 , author=Phil McNulty , title=Man Utd 1 - 6 Man City , work=BBC Sport 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.}}
  • (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.
  • 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) disarray

    See also

    * (any of various data structures) ones-based indexing, zero-based indexing

    Verb

  • To clothe and ornament; to adorn or attire
  • He was arrayed in his finest robes and jewels.
  • 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.
  • (Blackstone)