Template talk:Infobox data structure
Appearance
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
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)
- 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)
- Maybe something like this? ―JochemvanHees (talk) 14:07, 18 January 2021 (UTC)
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)
- 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)