<?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: Implementing a Trie in C#</title>
	<atom:link href="http://www.kerrywong.com/2006/04/01/implementing-a-trie-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com/2006/04/01/implementing-a-trie-in-c/</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 08:13:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Cuthahoha</title>
		<link>http://www.kerrywong.com/2006/04/01/implementing-a-trie-in-c/comment-page-1/#comment-115642</link>
		<dc:creator>Cuthahoha</dc:creator>
		<pubDate>Sun, 17 Apr 2011 14:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://dimension/2006/04/01/implementing-a-trie-in-c/#comment-115642</guid>
		<description>Kris,

I ran across this looking for ways to build the Trie. I suspect in the past couple of years the answer as come, but I figured I would post and answer if anyone else comes across the same thing.

 The use of the bool value &quot;IsEnd&quot; is unfortunate as it would lead to a misconception.  It would be better to use &quot;IsWord&quot;, or &quot;EndsWord&quot;.  The value is there to indicate the transversed keys constitute a word, NOT the end of the nodes in the trie.  In your example the keys might look more like this.

Think words (Read, Reader, Reading);

Root-&gt;R-&gt;E-&gt;A-&gt;D(EndsWord = True)-&gt;E-&gt;R(EndsWord = true)-&gt;S(EndsWord=true)
                                 -&gt;I-&gt;N-&gt;G(EndsWord=true)</description>
		<content:encoded><![CDATA[<p>Kris,</p>
<p>I ran across this looking for ways to build the Trie. I suspect in the past couple of years the answer as come, but I figured I would post and answer if anyone else comes across the same thing.</p>
<p> The use of the bool value &#8220;IsEnd&#8221; is unfortunate as it would lead to a misconception.  It would be better to use &#8220;IsWord&#8221;, or &#8220;EndsWord&#8221;.  The value is there to indicate the transversed keys constitute a word, NOT the end of the nodes in the trie.  In your example the keys might look more like this.</p>
<p>Think words (Read, Reader, Reading);</p>
<p>Root-&gt;R-&gt;E-&gt;A-&gt;D(EndsWord = True)-&gt;E-&gt;R(EndsWord = true)-&gt;S(EndsWord=true)<br />
                                 -&gt;I-&gt;N-&gt;G(EndsWord=true)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kris</title>
		<link>http://www.kerrywong.com/2006/04/01/implementing-a-trie-in-c/comment-page-1/#comment-27543</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Wed, 04 Mar 2009 09:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://dimension/2006/04/01/implementing-a-trie-in-c/#comment-27543</guid>
		<description>If I were to store both &quot;Read&quot; and &quot;Reader&quot; then how will the tree look like. 

Root-&gt;R-&gt;E-&gt;A-&gt;D(IsEnd = True)
Root-&gt;R-&gt;A-&gt;D-&gt;E-&gt;R(IsEnd = true)

Is this not duplication ? Also as we have only 26 nodes under each node, there is no scope for duplication also and we cannot have the below scenario:
Root-&gt;R-&gt;E-&gt;A-&gt;D(isEnd = True)-&gt;E-&gt;R(IsEnd = True)

Then how will the 2 words &quot;Read&quot; and &quot;Reader&quot; will ge stored in the tree ?</description>
		<content:encoded><![CDATA[<p>If I were to store both &#8220;Read&#8221; and &#8220;Reader&#8221; then how will the tree look like. </p>
<p>Root-&gt;R-&gt;E-&gt;A-&gt;D(IsEnd = True)<br />
Root-&gt;R-&gt;A-&gt;D-&gt;E-&gt;R(IsEnd = true)</p>
<p>Is this not duplication ? Also as we have only 26 nodes under each node, there is no scope for duplication also and we cannot have the below scenario:<br />
Root-&gt;R-&gt;E-&gt;A-&gt;D(isEnd = True)-&gt;E-&gt;R(IsEnd = True)</p>
<p>Then how will the 2 words &#8220;Read&#8221; and &#8220;Reader&#8221; will ge stored in the tree ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ms</title>
		<link>http://www.kerrywong.com/2006/04/01/implementing-a-trie-in-c/comment-page-1/#comment-8617</link>
		<dc:creator>ms</dc:creator>
		<pubDate>Sat, 10 May 2008 12:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://dimension/2006/04/01/implementing-a-trie-in-c/#comment-8617</guid>
		<description>Is there any way to look for more than one word, with common letters in the same node position?  For example, if the user gives &quot;tr**&quot;, it will return &quot;trie&quot; and &quot;tree&quot;.</description>
		<content:encoded><![CDATA[<p>Is there any way to look for more than one word, with common letters in the same node position?  For example, if the user gives &#8220;tr**&#8221;, it will return &#8220;trie&#8221; and &#8220;tree&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

