Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

queue and deque interfaces

Hi,

What is differnece, dimilary, uses, disadvantages of

queue and deque interfaces. Please adviss
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

A queue or a stack can be considered to be a specialization of deque, and can be implemented as deques.

i thought otherway where deque is specialization of queue.

As deque has better features though more recent addition to java. Please advise
A deque does more than a queue, so it would be a generalization of a queue.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I suppose it can be a matter of perspective.
More generalization from the outside requires more specialization on the inside, and vice versa.
The General Theory of Relativity is more widely applicable than the Special Theory of Relativity, but less widely understood.
Avatar of gudii9

ASKER

More generalization from the outside requires more specialization on the inside, and vice versa.
The General Theory of Relativity is more widely applicable than the Special Theory of Relativity, but less widely understood.

can you please elaborate on this. I think i did not get this.
General Relativity is applicable in more general situations.
Special Relativity is only be applicable in more specialized situations.
If Special Relativity is applicable to a situation, then General Relativity is also applicable.

On the other hand, in terms of who can apply it:
Special Relativity can be applied by more people and is more generally well known.
General Relativity can only be applied by people who have mastered more special knowledge.
If a person understands General Relativity, then they also understand Special Relativity.

The former point of view is the one from which I would call a deque more general than a queue.
Thanx 4 axxepting