Deletion from a red/black tree
- From: desktop <fff@xxxxxxx>
- Date: Wed, 13 Jun 2007 17:35:20 +0200
In Introduction to Algorithms by Thomas Cormen insertion and deletion is said to take O (lg n) time.
I have read that delete takes amortized constant time if you supply the pointer to the element being deleted (you can omit the searching) but that is exactly the version described in cormen and it is said to take O(lg n) time, so how does this fit together?
Another thing, delete also use tree-successor which runs in the height of the tree so this would also slow down delete to O(lg n).
.
- Follow-Ups:
- Re: Deletion from a red/black tree
- From: Lech Duraj
- Re: Deletion from a red/black tree
- Prev by Date: Re: Diaby's TSP formulation - The Come Back
- Next by Date: Finding longest path between two vertices
- Previous by thread: New Position: Postdoc or Postmasters Computer Science/Transportation Planning Engineer
- Next by thread: Re: Deletion from a red/black tree
- Index(es):