<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Red-Black Tree revisited, deleting nodes</title>
	<atom:link href="http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/</link>
	<description>.NET Software Development</description>
	<lastBuildDate>Mon, 14 Nov 2011 14:58:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ferad</title>
		<link>http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/comment-page-1/#comment-54772</link>
		<dc:creator>Ferad</dc:creator>
		<pubDate>Mon, 19 Oct 2009 14:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=54#comment-54772</guid>
		<description>I think the method PerformHardDelete has a bug. It does not consider the case when the node being deleted is the root (i.e. the only last node). Then it gives null reference exception at 

if (current.ParentDirection == Direction.LEFT)
--&gt;&gt;&gt;  current.ParentNode.RightNode = null;
else

I will need to make a closer look if explicit check will solve the problem.</description>
		<content:encoded><![CDATA[<p>I think the method PerformHardDelete has a bug. It does not consider the case when the node being deleted is the root (i.e. the only last node). Then it gives null reference exception at </p>
<p>if (current.ParentDirection == Direction.LEFT)<br />
&#8211;&gt;&gt;&gt;  current.ParentNode.RightNode = null;<br />
else</p>
<p>I will need to make a closer look if explicit check will solve the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Banausenrepublik &#187; Blog Archive &#187; Left-leaning red-black trees</title>
		<link>http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/comment-page-1/#comment-52156</link>
		<dc:creator>Banausenrepublik &#187; Blog Archive &#187; Left-leaning red-black trees</dc:creator>
		<pubDate>Sat, 22 Aug 2009 18:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=54#comment-52156</guid>
		<description>[...] von Hilfsknoten (&#8221;NIL&#8221;) und Referenzierung der Mutterknoten verkompliziert. Eine komplette Implementierung der delete-Methode ist sowieso nur schwer zu finden. Auch in der urspr&#252;nglichen [...]</description>
		<content:encoded><![CDATA[<p>[...] von Hilfsknoten (&#8221;NIL&#8221;) und Referenzierung der Mutterknoten verkompliziert. Eine komplette Implementierung der delete-Methode ist sowieso nur schwer zu finden. Auch in der urspr&#252;nglichen [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Gavranovic</title>
		<link>http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/comment-page-1/#comment-47081</link>
		<dc:creator>Marko Gavranovic</dc:creator>
		<pubDate>Sun, 01 Feb 2009 20:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=54#comment-47081</guid>
		<description>Thx, very good explaination and illustration about deleting a black leaf in RBT (i think this is a only web-site with that kind of explanation - its better explained than on Wikipedia) :)</description>
		<content:encoded><![CDATA[<p>Thx, very good explaination and illustration about deleting a black leaf in RBT (i think this is a only web-site with that kind of explanation &#8211; its better explained than on Wikipedia) <img src='http://www.jaltiere.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Altiere</title>
		<link>http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/comment-page-1/#comment-45881</link>
		<dc:creator>Jack Altiere</dc:creator>
		<pubDate>Mon, 22 Dec 2008 20:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=54#comment-45881</guid>
		<description>That&#039;s an interesting paper, I didn&#039;t come across that while I was working on this.  I&#039;ll have to dig into it.  Thanks for the link!</description>
		<content:encoded><![CDATA[<p>That&#8217;s an interesting paper, I didn&#8217;t come across that while I was working on this.  I&#8217;ll have to dig into it.  Thanks for the link!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurion Burchall</title>
		<link>http://www.jaltiere.com/index.php/2008/12/22/red-black-tree-revisited-deleting-nodes/comment-page-1/#comment-45879</link>
		<dc:creator>Laurion Burchall</dc:creator>
		<pubDate>Mon, 22 Dec 2008 20:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=54#comment-45879</guid>
		<description>Sedgewick has fine-tune red-black trees and has a paper on left-leaning red-black trees (released earlier this year).

http://www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf

The basic idea is to eliminate the case where the right child is red and the left child is black (using the existing rotation mechanism). This simplifies the code to do inserts and deletes while preserving the time complexity.

If you try the techniques in the paper, I think you&#039;ll find your code gets simpler.</description>
		<content:encoded><![CDATA[<p>Sedgewick has fine-tune red-black trees and has a paper on left-leaning red-black trees (released earlier this year).</p>
<p><a href="http://www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf" rel="nofollow">http://www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf</a></p>
<p>The basic idea is to eliminate the case where the right child is red and the left child is black (using the existing rotation mechanism). This simplifies the code to do inserts and deletes while preserving the time complexity.</p>
<p>If you try the techniques in the paper, I think you&#8217;ll find your code gets simpler.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

