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.

Array vs Queue - What's the difference?

array | queue |

As nouns the difference between array and queue

is that array is clothing and ornamentation while queue is an animal's tail.

As verbs the difference between array and queue

is that array is to clothe and ornament; to adorn or attire while queue is to put oneself or itself at the end of a waiting line.

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)

    queue

    English

    (wikipedia queue)

    Noun

    (en noun)
  • (heraldry) An animal's tail.
  • * 1863 , Charles Boutell, A Manual of Heraldry , p. 369:
  • HESSE: Az., a lion, queue fourchée, rampt., barry of ten, arg. and gu., crowned, or, and holding in his dexter paw a sword, ppr., hilt and pommel, gold.
  • * 1889 , (Arthur Conan Doyle), Micah Clarke , :
  • , there were seated astraddle the whole hundred of the baronet's musqueteers, each engaged in plaiting into a queue the hair of the man who sat in front of him.
  • * 1912 , :
  • A large number of loyal officials, rather than shave the front part of the head and wear the Manchu queue , voluntarily shaved the whole head,
  • * 1967 , William Styron, The Confessions of Nat Turner , Vintage 2004, p. 176:
  • Caparisoned for a week in purple velvet knee-length pantaloons, a red silk jacket with buckles of shiny brass, and a white goat's-hair wig which culminated behind in a saucy queue , I must have presented an exotic sight [...].
  • A line of people, vehicles or other objects, in which one at the front end is t with first, the one behind is dealt with next, and so on, and which newcomers join at the opposite end (the back).
  • * 1916 , ,
  • I was absent-minded at the moment and was last in the queue .
  • A waiting list or other means of organizing people or objects into a first-come-first-served order.
  • (computing) A data structure in which objects are added to one end, called the tail, and removed from the other, called the head (- a FIFO queue). The term can also refer to a LIFO queue or stack where these ends coincide.
  • * 2005 , David Flanagan, Java in a Nutshell , p. 234,
  • Queue implementations are commonly based on insertion order as in first-in, first-out (FIFO) queues or last-in, first-out queues (LIFO queues are also known as stacks).

    Synonyms

    * line (North America)

    Derived terms

    * double-ended queue * queueing theory * queue-jump * jump the queue

    Verb

  • (British) To put oneself or itself at the end of a waiting line.
  • (British) To arrange themselves into a physical waiting queue.
  • (computing) To add to a queue data structure.
  • To fasten the hair into a queue.
  • * 1968 , Francis Russell, The American Heritage History of the Making of the Nation
  • Though Monroe the man has become a vague anachronistic figure in knee breeches and with queued , powdered hair, his name is perpetuated in the Monroe Doctrine, evoked by him as a temporary response to an immediate crisis.
  • * 1820 , Washington Irving, The Legend of Sleepy Hollow
  • The sons, in short square skirted coats with rows of stupendous brass buttons, and their hair generally queued in the fashion of the times, especially if they could procure an eel skin for the purpose, it being esteemed throughout the country as potent nourisher and strengthener of the hair.

    Synonyms

    * (place itself at the end of a queue) join a queue, join the queue, line up

    Derived terms

    * dequeue * enqueue * queue up

    See also

    * FIFO * LIFO * cue ----