<?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[Quicksort]]></title><description><![CDATA[<pre><code class="language-cpp">int teile(char* arr,int l,int r)
{
    int j=l, i=r+1;
char pivot=arr[l]; // Pivot-Element waehlen
for(;;)
{
//1.while Schleife
while(arr[++j] &lt; pivot) ;     // kann das zum Problem werden ??
while(arr[--i] &gt; pivot) ;
if (j &gt;= i) break;
Schedl::swap(arr[i], arr[j]);  // 3 Datenbewegungen
}
Schedl::swap(arr[l],arr[i]); // Pivot an endgueltige Position
return(i);

}
</code></pre>
<p>sagen wir mal folgende Wortfolge soll sortiert werden:</p>
<p>XSTERIA</p>
<p>ich frag mich grad ob die 1.while Schleife dann nicht unendlich läuft.<br />
Pivot ist der ganze linke Buchstabe also X .</p>
<p>und alle kommenden sind kleiner als X.</p>
<p>Endlosschleife ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/270806/quicksort</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 22:11:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/270806.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jul 2010 16:42:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 16:42:08 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int teile(char* arr,int l,int r)
{
    int j=l, i=r+1;
char pivot=arr[l]; // Pivot-Element waehlen
for(;;)
{
//1.while Schleife
while(arr[++j] &lt; pivot) ;     // kann das zum Problem werden ??
while(arr[--i] &gt; pivot) ;
if (j &gt;= i) break;
Schedl::swap(arr[i], arr[j]);  // 3 Datenbewegungen
}
Schedl::swap(arr[l],arr[i]); // Pivot an endgueltige Position
return(i);

}
</code></pre>
<p>sagen wir mal folgende Wortfolge soll sortiert werden:</p>
<p>XSTERIA</p>
<p>ich frag mich grad ob die 1.while Schleife dann nicht unendlich läuft.<br />
Pivot ist der ganze linke Buchstabe also X .</p>
<p>und alle kommenden sind kleiner als X.</p>
<p>Endlosschleife ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928196</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Sun, 18 Jul 2010 16:42:08 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 16:49:47 GMT]]></title><description><![CDATA[<p>Wie man's sieht. Der gültige Bereich von arr wird ganz schnell verlassen und dort findet die Schleife dann entweder doch was größeres als X oder sammelt ein segmentation fault auf.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928203</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Sun, 18 Jul 2010 16:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 16:55:58 GMT]]></title><description><![CDATA[<p>Also schon wieder ein Sentinel ala Sedgewick.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928209</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 18 Jul 2010 16:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 19:52:29 GMT]]></title><description><![CDATA[<p>Was besagt denn die kleine o Notation.</p>
<p>Die große besagt eine Funktion ist höchstens von einer gegebenen Komplexität.</p>
<p>Die klein o Notation besagt doch exakt dasselbe.</p>
<p>eine Funktion f ist von der komplexität g wenn gilt:</p>
<p>limes f/g =0 na klar wenn g größer ist als f und der limes gegen<br />
unendlich läuft geht es gegen 0.</p>
<p>Seh kein Unterschied zwischen o und O Notation</p>
<p>Außerdem hab ich mal gehört es gibt auch eine Notation die aussagt wieviel<br />
Aufwand es mindestens ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928281</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Sun, 18 Jul 2010 19:52:29 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 20:17:12 GMT]]></title><description><![CDATA[<p>Das kleine o wird verwendet, um zu sagen, dass ein Ausdruck vernachlässigbar klein gegenüber dem angegebenen Ausdruck ist</p>
<p>Was soll das bedeuten ?</p>
<p>eine Funktion x im Vergleich zu x^2 wird natürlich sehr klein im Unendlichen.<br />
Soll das zeigen dass die Funktion x nicht zu quadratisch gehört sondern<br />
doch eher zu linear. ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928297</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Sun, 18 Jul 2010 20:17:12 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 20:39:35 GMT]]></title><description><![CDATA[<p>da ja beide O Notation eben klein / groß heissen müssen doch beide<br />
was miteinander zutun haben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928310</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Sun, 18 Jul 2010 20:39:35 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 20:41:07 GMT]]></title><description><![CDATA[<p>blurry333 schrieb:</p>
<blockquote>
<p>Soll das zeigen dass die Funktion x nicht zu quadratisch gehört sondern<br />
doch eher zu linear. ??</p>
</blockquote>
<p>f(x)=x ist ziemlich unquadratisch, ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928312</guid><dc:creator><![CDATA[Athar]]></dc:creator><pubDate>Sun, 18 Jul 2010 20:41:07 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 20:52:37 GMT]]></title><description><![CDATA[<p><a href="http://de.wikipedia.org/wiki/Landau-Symbol" rel="nofollow">http://de.wikipedia.org/wiki/Landau-Symbol</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928318</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Sun, 18 Jul 2010 20:52:37 GMT</pubDate></item><item><title><![CDATA[Reply to Quicksort on Sun, 18 Jul 2010 21:16:22 GMT]]></title><description><![CDATA[<p>naja man könnte schon zeigen dass x sehr viel kleiner als x^2 ist.</p>
<p>Nichts anderes drückt ja die klein o Notation aus.</p>
<p>lim geht nämlich gegen Null</p>
<p>Aber wozu man es braucht versteh ich momentan nicht so</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928328</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Sun, 18 Jul 2010 21:16:22 GMT</pubDate></item></channel></rss>