Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Queue Implementation filter_list
Author
Message
RE: Queue Implementation #9
(11-29-2016, 09:50 PM)bitm0de Wrote:
(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 me 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.


Simile:
a figure of speech involving the comparison of one thing with another thing of a different kind, used to make a description more emphatic or vivid (e.g., as brave as a lion, crazy like a fox ).
"A Queue is a stack" does not qualify as simile. When you say something IS something else, that does not mean it is like something else.

Metaphor:
a figure of speech in which a word or phrase is applied to an object or action to which it is not literally applicable.
"“I had fallen through a trapdoor of depression,” said Mark, who was fond of theatrical metaphors"

Yeee doesn't work.


Listen, i'm not trying to kill your vibe here (maybe a bit), but I don't think it's right to even leave the possibility of leading people in the wrong direction. It can lead to complications down the line.

Quote: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.

I didn't say it was an unnaceptable comparison. If you had read my previous posts, I did compare them, and even admit their similarity.
Sure, Queue's and Stacks are very similar. They are, I never denied that. But they are not each other.


Sure, implementation is the same. But that's like saying insertion sort is selection sort because the concept is fundamentally the same. But they aren't, their implementation is totally different and so are their use cases.




Quote:I think you only read the first 4 words of my post so you could attempt to correct me by saying exactly what I've already said in the last part of my previous post about FIFO vs LIFO.
tsk tsk, why would you assume that? I hope you are not taking this personally, and I certainly do not mean it that way. We're talking about abstract concepts here not what we think the other person read in order to shoot shade at the other.

It looks like you know your data structures; good, cool, I'm happy you commented in this thread to help other people out. I'm just trying to provide the clearest possible explanation.

On a test, if @"TotallyRandUser128372139" was asked: "What is a Queue?" and they put: A Queue is a Stack, but FIFO instead of LIFO, they would only get half points. Because a Queue isn't a stack. The correct phrasing would be A Queue is LIKE a stack, but FIFO instead of LIFO that is a perfectly well written simile and absolutely acceptable.


TL;DR I'm being a grammar Nazi but hopefully you glean something from this

[video=youtube]http://https://youtu.be/2E0RfaUyQvE[/video]
(This post was last modified: 11-29-2016, 10:13 PM by insidious. Edit Reason: video )
[Image: pBD38Xq.png]
Email: insidious@protonmail.ch

Reply





Messages In This Thread
Queue Implementation - by DarkMuse - 11-28-2016, 01:49 AM
RE: Queue Implementation - by insidious - 11-28-2016, 04:54 AM
RE: Queue Implementation - by DarkMuse - 11-28-2016, 04:33 PM
RE: Queue Implementation - by insidious - 11-28-2016, 05:58 PM
RE: Queue Implementation - by bitm0de - 11-29-2016, 08:05 AM
RE: Queue Implementation - by insidious - 11-29-2016, 09:45 PM
RE: Queue Implementation - by bitm0de - 11-29-2016, 09:50 PM
RE: Queue Implementation - by insidious - 11-29-2016, 10:10 PM
RE: Queue Implementation - by bitm0de - 11-29-2016, 11:14 PM
RE: Queue Implementation - by insidious - 11-29-2016, 11:36 PM
RE: Queue Implementation - by bitm0de - 11-29-2016, 11:50 PM
RE: Queue Implementation - by Dismas - 11-29-2016, 09:48 PM
RE: Queue Implementation - by kingzlatan - 09-03-2024, 08:30 PM



Users browsing this thread: 1 Guest(s)