<?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[Rebalance AVL]]></title><description><![CDATA[<p>Hallo miteinander!</p>
<p>Ich habe 'nen AVL-tree zusammen. Nun fehlt mir aber noch 'ne wichtige Funktion, nämlich das rebalancing.<br />
Hat evtl. gerade jemand einen möglichen Code bereit?</p>
<p>int height;<br />
bool is_balanced();<br />
avl_tree* _tree;<br />
int value;<br />
avl_tree_node* _parent, _left, _right</p>
<p>hab ich schon alles bereit <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Ich wäre sehr dankbar, wenn mir jemand helfen könnte.<br />
Liebe Grüsse,<br />
Max</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/287067/rebalance-avl</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 14:40:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/287067.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 May 2011 16:49:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rebalance AVL on Sat, 21 May 2011 16:49:03 GMT]]></title><description><![CDATA[<p>Hallo miteinander!</p>
<p>Ich habe 'nen AVL-tree zusammen. Nun fehlt mir aber noch 'ne wichtige Funktion, nämlich das rebalancing.<br />
Hat evtl. gerade jemand einen möglichen Code bereit?</p>
<p>int height;<br />
bool is_balanced();<br />
avl_tree* _tree;<br />
int value;<br />
avl_tree_node* _parent, _left, _right</p>
<p>hab ich schon alles bereit <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Ich wäre sehr dankbar, wenn mir jemand helfen könnte.<br />
Liebe Grüsse,<br />
Max</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2066835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2066835</guid><dc:creator><![CDATA[MaxC++]]></dc:creator><pubDate>Sat, 21 May 2011 16:49:03 GMT</pubDate></item><item><title><![CDATA[Reply to Rebalance AVL on Sat, 21 May 2011 19:10:19 GMT]]></title><description><![CDATA[<p>Schau mal im Magazin (einer der Links im Linkhaufen ganz oben rechts der Seite), da müsste ein Artikel samt Code dazu sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2066909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2066909</guid><dc:creator><![CDATA[fdfdg]]></dc:creator><pubDate>Sat, 21 May 2011 19:10:19 GMT</pubDate></item><item><title><![CDATA[Reply to Rebalance AVL on Sat, 21 May 2011 19:57:03 GMT]]></title><description><![CDATA[<p>Ah, vielen Dank, habs gefunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Dazu hätte ich nur noch eine Frage: rotate_left bzw. *_right - wie würde das mit meinen Funktionen und Objekten aussehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2066925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2066925</guid><dc:creator><![CDATA[MaxC++]]></dc:creator><pubDate>Sat, 21 May 2011 19:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to Rebalance AVL on Sat, 21 May 2011 20:00:33 GMT]]></title><description><![CDATA[<p>Wie die Rotationen funktionieren, steht auch im Magazin-Artikel (im ersten Teil der Binärbäume-Serie).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2066928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2066928</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Sat, 21 May 2011 20:00:33 GMT</pubDate></item><item><title><![CDATA[Reply to Rebalance AVL on Sat, 21 May 2011 20:45:28 GMT]]></title><description><![CDATA[<p>Dankeschön!<br />
Hab's gefunden. Allerdings funktioniert's bei mir noch nicht ganz (hab ja au unterschiedliche Bezeichnungen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2066956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2066956</guid><dc:creator><![CDATA[MaxC++]]></dc:creator><pubDate>Sat, 21 May 2011 20:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to Rebalance AVL on Sun, 22 May 2011 09:18:11 GMT]]></title><description><![CDATA[<p>lern erstmal c++<br />
ich hab den eindruck du hast absolut keinen peil was du machst...</p>
<p>ausser halt copy&amp;paste...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2067051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2067051</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Sun, 22 May 2011 09:18:11 GMT</pubDate></item><item><title><![CDATA[Reply to Rebalance AVL on Sun, 22 May 2011 10:47:46 GMT]]></title><description><![CDATA[<p>MaxC++ schrieb:</p>
<blockquote>
<p>Dankeschön!<br />
Hab's gefunden. Allerdings funktioniert's bei mir noch nicht ganz (hab ja au unterschiedliche Bezeichnungen).</p>
</blockquote>
<p>Mach die Rotationen an einem Baum von Hand bis du exakt begreifst was geschieht und dann programmierst du das und kannst es nötigenfalls anhand des Testbaumes, den du von Hand gemacht hast debuggen. Es empfiehlt sich da gleich einige solche Testbäume zu machen, um möglichst alle Fälle abdecken zu können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2067070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2067070</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 22 May 2011 10:47:46 GMT</pubDate></item></channel></rss>