Array vs Queue - What's the difference?
array | queue |
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.
(heraldry) An animal's tail.
* 1863 , Charles Boutell, A Manual of Heraldry , p. 369:
* 1889 , (Arthur Conan Doyle), Micah Clarke , :
* 1912 , :
* 1967 , William Styron, The Confessions of Nat Turner , Vintage 2004, p. 176:
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 , ,
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,
(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
* 1820 , Washington Irving, The Legend of Sleepy Hollow
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)- (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)
queue
English
(wikipedia queue)Noun
(en noun)- 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.
- , 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.
- 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,
- 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 [...].
- I was absent-minded at the moment and was last in the queue .
- 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 queueVerb
- 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.
- 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.