<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Double-Array Trie verständnisproblem]]></title><description><![CDATA[<p>Hi,</p>
<p>ein eher komplexes Thema.. ich hoffe ihr könnt mir helfen. Ich habe mich mal anhand dieses Artikels: <a href="http://linux.thai.net/~thep/datrie/datrie.html" rel="nofollow">http://linux.thai.net/~thep/datrie/datrie.html</a> darüber schlau gemacht wie das ganze funktioniert. Gestoßen bin ich darauf durch flex dass code erzeugt der diese methode nutzt. Ich denke ich habe das Prinzip verstanden.. jedoch hab ich probleme bei der realisierung.</p>
<p>Also beispielsweise ich möchte das Wort &quot;int&quot; durch diese Methode &quot;retrieven&quot;. Also als erstes brauche ich so eine Tabelle</p>
<pre><code>States  Labels
1       &quot;Start&quot;
2       i
3       n
4       t
5       &quot;jedes andere zeichen&quot;
</code></pre>
<p>Denke ma so fängts schon an. Das kommt mir so schon falsch vor. Selbst wenn das richtig is... wie kriege ich daraus die base, next, check arrays?<br />
Klar is mir dass das nächste state bei 2 -&gt; 3 sein soll, bzw. zu 3 -&gt; 4...</p>
<p>Bin über jede Hilfe dankbar.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/288286/double-array-trie-verständnisproblem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 17:25:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/288286.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jun 2011 00:05:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Double-Array Trie verständnisproblem on Tue, 14 Jun 2011 00:06:07 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ein eher komplexes Thema.. ich hoffe ihr könnt mir helfen. Ich habe mich mal anhand dieses Artikels: <a href="http://linux.thai.net/~thep/datrie/datrie.html" rel="nofollow">http://linux.thai.net/~thep/datrie/datrie.html</a> darüber schlau gemacht wie das ganze funktioniert. Gestoßen bin ich darauf durch flex dass code erzeugt der diese methode nutzt. Ich denke ich habe das Prinzip verstanden.. jedoch hab ich probleme bei der realisierung.</p>
<p>Also beispielsweise ich möchte das Wort &quot;int&quot; durch diese Methode &quot;retrieven&quot;. Also als erstes brauche ich so eine Tabelle</p>
<pre><code>States  Labels
1       &quot;Start&quot;
2       i
3       n
4       t
5       &quot;jedes andere zeichen&quot;
</code></pre>
<p>Denke ma so fängts schon an. Das kommt mir so schon falsch vor. Selbst wenn das richtig is... wie kriege ich daraus die base, next, check arrays?<br />
Klar is mir dass das nächste state bei 2 -&gt; 3 sein soll, bzw. zu 3 -&gt; 4...</p>
<p>Bin über jede Hilfe dankbar.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077737</guid><dc:creator><![CDATA[1700]]></dc:creator><pubDate>Tue, 14 Jun 2011 00:06:07 GMT</pubDate></item><item><title><![CDATA[Reply to Double-Array Trie verständnisproblem on Tue, 14 Jun 2011 11:36:36 GMT]]></title><description><![CDATA[<p>Ein Trie ist ein Baum.<br />
Du brauchst einen Datentyp, welcher die Knoten der Trie-Struktur repräsentiert. In den Instanzen dieses Datentyps kannst Du dann die entsprechenden Infos unterbringen.<br />
Ein paar weitere Quellen mit Denkanstößen liefert wie so oft Wikipedia:<br />
<a href="http://en.wikipedia.org/wiki/Trie" rel="nofollow">Trie</a><br />
<a href="http://en.wikipedia.org/wiki/Radix_tree" rel="nofollow">Radix-Tree</a><br />
Da gibt es zum Teil sogar Pseudo-Code.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077913</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Tue, 14 Jun 2011 11:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to Double-Array Trie verständnisproblem on Tue, 14 Jun 2011 16:40:54 GMT]]></title><description><![CDATA[<p>Als Datentyp für die Knoten benutze ich Zahlen, also Zustände. Genau wie in dem Artikel in meinem ersten Post.<br />
Mein trie würde dann so aussehen (siehe Anhang). Daraus würden also die folgenden Zustände folgen:</p>
<pre><code class="language-cpp">enum States
{
  STATE_ILLEGAL,
  STATE_START,
  STATE_I,
  STATE_IN,
  STATE_INT
};
</code></pre>
<p>Mal angenommen meine akzeptierten Chars wären:</p>
<pre><code class="language-cpp">enum AcceptedChars
{
  CHAR_ILLEGAL,
  CHAR_SMALLI,
  CHAR_SMALLN,
  CHAR_SMALLT
};
</code></pre>
<p>dann müsste mein &quot;next&quot; array ja folgendermaßen aufgebaut sein</p>
<pre><code class="language-cpp">States next[4] = {
STATE_ILLEGAL, STATE_I, STATE_IN, STATE_INT
};
</code></pre>
<p>allerdings is das next array ja immer abhängig von dem base array und dass is auch das was ich noch nich ganz gecheckt habe. Und dann gibt es ja noch das check array.... jedenfalls bei dem Tripple-Array Trie, den ich auch realisieren will</p>
<p>EDIT:<br />
sorry anhang vergessen</p>
<p><a href="http://i55.tinypic.com/11qla2x.jpg" rel="nofollow">http://i55.tinypic.com/11qla2x.jpg</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2078123</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2078123</guid><dc:creator><![CDATA[1700]]></dc:creator><pubDate>Tue, 14 Jun 2011 16:40:54 GMT</pubDate></item><item><title><![CDATA[Reply to Double-Array Trie verständnisproblem on Tue, 21 Jun 2011 12:55:35 GMT]]></title><description><![CDATA[<p>up</p>
<p>kann keiner helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2081644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2081644</guid><dc:creator><![CDATA[1700]]></dc:creator><pubDate>Tue, 21 Jun 2011 12:55:35 GMT</pubDate></item></channel></rss>