Content deleted Content added
Jorge Stolfi (talk | contribs) m →Asymptotic worst-case analysis: typos |
Jorge Stolfi (talk | contribs) m →Asymptotic worst-case analysis: Table footnote, |
||
Line 25:
====Asymptotic worst-case analysis====
In this table, the [[asymptotic analysis|asymptotic]] [[big-O notation|notation O(''f''(''n''))]] means "not exceeding some fixed multiple of ''f''(''n'')" in the worst case".
{| class="wikitable"
Line 80:
| [[Heap (data structure)|Heap]]
| O(log ''n'')
| O(log ''n'')<
| O(''n'')
| O(1)
Line 91:
| O(''n'')
| O(''n'')
|}<small> † The deletion cost is O(log ''n'') for the minimum or maximum, O(''n'') for an arbitrary element.</small>
This table is only an approximate summary; for each data structure there are special situations and variants that may lead to different costs. Also two or more data structures can be combined to obtain lower costs.
== Footnotes ==
|