<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'complexity of algo' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'complexity of algo' posted on the 'Algorithms' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sun, 26 May 2013 01:35:48 -0700</pubDate>
    <lastBuildDate>Sun, 26 May 2013 01:35:48 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>complexity of algo</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/282862/282862/complexity-of-algo/</link>
      <description>Hi,&lt;br /&gt;
Can anyone tell about concept of complexity. As I am beginner with complexity . Please explain with a sorting algo.&lt;br /&gt;
Regards&lt;br /&gt;
Omveer&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Algorithms/282862/282862/complexity-of-algo/</guid>
      <pubDate>Fri, 26 Nov 2004 23:51:52 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Re: complexity of algo</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/282862/298775/re-complexity-of-algo/#298775</link>
      <description>: Hi,&lt;br /&gt;
: Can anyone tell about concept of complexity. As I am beginner with complexity . Please explain with a sorting algo.&lt;br /&gt;
: Regards&lt;br /&gt;
: Omveer&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Here goes:-&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you had a long list of random numbers like 34 12 56 7689 693 20 347 2 85 93683 etc or whatever and you wanted to sort them you could do this one of a few ways . In order by value ascending or descending.&lt;br /&gt;
&lt;br /&gt;
As 12 is the lowest number you would have this as the 1st nuber in an ascending list.&lt;br /&gt;
93683 would be the highest or 1st number out in a descending list.&lt;br /&gt;
&lt;br /&gt;
If you sorted by string method all the numbers starting with a 1 then a 2 etc would come out regardless of how long the number is.&lt;br /&gt;
&lt;br /&gt;
You would look for the lowest number and the highest number and do a loop between them.&lt;br /&gt;
&lt;br /&gt;
See the following articles on "BUBBLE SORT" routines where the next lowest ( or highest item ) "floats like a bubble through a list" to sort a list out&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://www.google.co.uk/search?hl=en&amp;amp;ie=ISO-8859-1&amp;amp;q=bubble+sort&amp;amp;meta=&lt;br /&gt;
&lt;br /&gt;
Hope this helps. &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Algorithms/282862/298775/re-complexity-of-algo/#298775</guid>
      <pubDate>Thu, 07 Apr 2005 20:52:28 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Re: complexity of algo</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/282862/306717/re-complexity-of-algo/#306717</link>
      <description>: Hi,&lt;br /&gt;
: Can anyone tell about concept of complexity. As I am beginner with complexity . Please explain with a sorting algo.&lt;br /&gt;
: Regards&lt;br /&gt;
: Omveer&lt;br /&gt;
: &lt;br /&gt;
bubble sort algorithm has the order of n^2 where n is the number of numbers.&lt;br /&gt;
&lt;br /&gt;
i.e&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)\\continues n times&lt;br /&gt;
{&lt;br /&gt;
for(j=i+1;j&amp;lt;n;j++)\\continues n times&lt;br /&gt;
{&lt;br /&gt;
//compare and swap&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
therefore totally n*n times.&lt;br /&gt;
&lt;br /&gt;
hope u would be clear now.&lt;br /&gt;
&lt;br /&gt;
if not forward it here or contact me personally at jayaram_b05@yahoo.com&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Algorithms/282862/306717/re-complexity-of-algo/#306717</guid>
      <pubDate>Fri, 24 Jun 2005 20:20:45 -0700</pubDate>
      <category>Algorithms</category>
    </item>
  </channel>
</rss>