Template talk:Infobox data structure

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconComputer science Template‑class
WikiProject iconThis template is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Things you can help WikiProject Computer science with:

Changing Time Complexity to Time/Space Complexity[edit]

It seems that many of the pages that use this template list both a Time and a Space Complexity.

Should we change the heading from "Time Complexity" to "Time and Space Complexities" or just "Complexity"? Pixor (talk) 01:48, 8 February 2013 (UTC)[reply]

Not only that, but space complexity is listed under the header "Algorithm". This is not only incorrect, but it may also be confusing because there is no explanation as to what this "space algorithm" is. I think that the best solution is to move it out of this list entirely, and put it under a new "Space complexity on big O notation" header. ―JochemvanHees (talk) 13:16, 18 January 2021 (UTC)[reply]
Maybe something like this? ―JochemvanHees (talk) 14:07, 18 January 2021 (UTC)[reply]

How to note amortized bounds?[edit]

Which column should they go into, and how should the difference be noted?

My current thought is to replace the "average" column with an "amortized" one when the bounds exist, as I don't know of a case where they differ significantly. Any other ideas? 104.153.72.218 (talk) 00:25, 17 September 2017 (UTC)[reply]

For the current layout of the Infobox, your proposal is the best solution – with the cell containing "amortized O()". A better layout would be to have three (3) columns: "amortized", "average" and "worst-case", although in very many cases only one of "amortized" or "average" will have values. The columns could then be a little bit narrower. But it is desirable to have room for footnotes in the columns. –Nomen4Omen (talk) 09:24, 4 December 2021 (UTC)[reply]