Talk:Queue/Definition: Difference between revisions

 
(5 intermediate revisions by 3 users not shown)
Line 1:
==Requirement to define a linked list==
The last line of the task description states ''Define the data structure for a FIFO element. Said element should contain a data member capable of holding a numeric value, and the link to the next element should be mutable.'' The Python example first provided does not satisfy this requirement. It seems that the Python example should be expanded to include a definition of the data structure for a FIFO element.
- [[Waldorf|Waldorf]] 4 November 2007
Line 18 ⟶ 19:
:::There is definitely no need to require some specific method to implement the FIFO. After all, in real world the implementation should be encapsulated anyway. And why does it require using linked list? That is ''not'' how FIFO is implemented in the real world. The most common implementation method is a circular buffer. --[[User:PauliKL|PauliKL]] 16:19, 19 November 2008 (UTC)
 
==Illustration==
I created and added an illustration. Hope you like it. Gimp was ''not'' the right way to assemble an animated GIF. --[[User:Short Circuit|Short Circuit]] 23:32, 5 November 2007 (MST)
 
Line 24 ⟶ 25:
 
The Ada section has actually four implementations, where two of them have the additional condition of being usable from concurrent threads. Since this makes the Ada section quite large and isn't actually necessary for the task, I propose to create a new task "concurrency-safe FIFO" or similar, and move the last two Ada examples there. --[[User:Ce|Ce]] 09:43, 28 February 2008 (MST)
 
== Merge? ==
 
It seems odd to me that [[Stack]]s need only 1 page, but Queues need 2.
 
I think this should be merged with [[Queue/Usage]] -- after all, ''just'' defining the queue doesn't necessarily illustrate how to use it, and Queue/Usage includes creating the queue as part of its description. The final merged page could then be located at [[Queue]], overwriting the current redirect. -- [[User:Eriksiers|Erik Siers]] 19:43, 2 February 2011 (UTC)
 
: [[Queue/Usage]] was ''split'' from this task at [http://rosettacode.org/mw/index.php?title=Queue/Usage&oldid=20617 5 January 2009]. This split was a bad idea. Queue/Definition and Queue/Usage should be one task. --[[User:Kernigh|Kernigh]] 01:07, 16 September 2011 (UTC)
 
The descriptions for these tasks are identical. They should be merged. [[User: crossrodas1112|crossrodas1112]] 16:28, 21 November 2015 (EST)