Re: No trees in the stdlib?
- From: Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 01 Jul 2009 20:40:19 +1200
In message <mailman.2144.1245999295.8015.python-list@xxxxxxxxxx>, Miles
Kaufmann wrote:
On Jun 26, 2009, at 2:23 AM, Chris Rebert wrote:
That's pretty much the bisect module in a nutshell. It manipulates a
sorted list using binary search.
With O(n) insertions and removals, though. A decent self-balancing
binary tree will generally do those in O(log n).
For values of n below, say, a million, would you even notice the difference
on modern hardware?
.
- Follow-Ups:
- Re: No trees in the stdlib?
- From: Paul Rubin
- Re: No trees in the stdlib?
- Prev by Date: Re: No trees in the stdlib?
- Next by Date: Re: PEP 376
- Previous by thread: Re: No trees in the stdlib?
- Next by thread: Re: No trees in the stdlib?
- Index(es):
Relevant Pages
|
Loading