RE: Queue Implementation 11-29-2016, 09:50 PM
#8
(11-29-2016, 09:45 PM)insidious Wrote:(11-29-2016, 08:05 AM)bitm0de Wrote: Queue is a stack but FIFO rather than LIFO.
It's grossly incorrect to call a queue a stack. It is FIFO rather than LIFO but they are fundamentally different structures.
I think you only read the first 4 words of my post so you could attempt to correct my by saying exactly what I've already said in the last part of my previous post about FIFO vs LIFO.
He didn't understand what a queue was therefore relating it to the stack and explaining the difference between the two should've been fine for an explanation that leads to his understanding IMO. And the fact that implementation in comparison can be almost 90% similar except for how the dequeue process works makes it an acceptable comparison too. There IS a reason why they were given similar acronyms.
You're saying I can't use similes or metaphors to help someone learn? Now you're just being a pessimist. :/ That's like saying the antonym of some word can't be used to explain the meaning of the opposite word.
(This post was last modified: 11-29-2016, 09:58 PM by bitm0de.)
- mostly braindead monkeys on this forum.