Re: Red Black Guaruntees
- From: "Malcolm McLean" <regniztar@xxxxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 23:25:52 -0000
<jehugaleahsa@xxxxxxxxx> wrote in message
So here is the question: is it possible to have non-adjacent red nodesA red black tree cannot become grossly unbalanced. You need to check that yours genuinely is a red-black tree. A test function is easy to write.
and an equal number of black nodes from the leafs to the root and for
the red black tree to be imbalanced?
It could be that your comparision function is the inefficiency.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
.
- References:
- Red Black Guaruntees
- From: jehugaleahsa@xxxxxxxxx
- Red Black Guaruntees
- Prev by Date: Red Black Guaruntees
- Next by Date: Re: Red Black Guaruntees
- Previous by thread: Red Black Guaruntees
- Next by thread: Re: Red Black Guaruntees
- Index(es):