Re: Red-black trees?
- From: Jon Harrop <jon@xxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Nov 2008 23:16:36 +0000
Ben Pfaff wrote:
CBFalconer <cbfalconer@xxxxxxxxx> writes:
You are misunderstanding the O notation, which doesn't get
altered by the occasional slower operation.
No, you are confusing worst-case complexity with amortized
complexity.
Actually the best- and (ensemble) average-case complexities of his insertion
function may also be O(n) the same as the worst case because the resizes
occur at the same sizes regardless of the transaction history.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?u
.
- Follow-Ups:
- Re: Red-black trees?
- From: CBFalconer
- Re: Red-black trees?
- References:
- Re: Red-black trees?
- From: Mark Wooding
- Re: Red-black trees?
- From: Jon Harrop
- Re: Red-black trees?
- From: Mark Wooding
- Re: Red-black trees?
- From: Jon Harrop
- Re: Red-black trees?
- From: Mark Wooding
- Re: Red-black trees?
- From: CBFalconer
- Re: Red-black trees?
- From: Jon Harrop
- Re: Red-black trees?
- From: CBFalconer
- Re: Red-black trees?
- From: Jon Harrop
- Re: Red-black trees?
- From: CBFalconer
- Re: Red-black trees?
- From: Jon Harrop
- Re: Red-black trees?
- From: CBFalconer
- Re: Red-black trees?
- From: Jon Harrop
- Re: Red-black trees?
- From: CBFalconer
- Re: Red-black trees?
- From: Ben Pfaff
- Re: Red-black trees?
- Prev by Date: Re: Red-black trees?
- Next by Date: Re: Early vs. Late in SW Development
- Previous by thread: Re: Red-black trees?
- Next by thread: Re: Red-black trees?
- Index(es):
Relevant Pages
|