hash chaining only approaches order n if the table is very full (because of collisions).<br><br><div class="gmail_quote">On Sun, Jun 7, 2009 at 8:07 AM, Benjamin M. Schwartz <span dir="ltr"><<a href="mailto:bmschwar@fas.harvard.edu">bmschwar@fas.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Lucian Branescu wrote:<br>
> This <a href="http://www.python.org/dev/peps/pep-0372/" target="_blank">http://www.python.org/dev/peps/pep-0372/</a> might be interesting.<br>
> Perhaps it could get backported to 2.5.<br>
><br>
> But it still has O(n) deletion.<br>
<br>
</div>It also doesn't have insertion at all (only append), and indexing (and<br>
reverse indexing) is O(n).<br>
<br>
--Ben<br>
<br>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br>