<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Thoughts</title>
	<atom:link href="http://aravinthan.in/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://aravinthan.in/blog</link>
	<description>When neurons respond to a stimuli</description>
	<lastBuildDate>Thu, 22 Dec 2011 11:44:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Marriage</title>
		<link>http://aravinthan.in/blog/2009/05/25/marriage/</link>
		<comments>http://aravinthan.in/blog/2009/05/25/marriage/#comments</comments>
		<pubDate>Mon, 25 May 2009 10:20:54 +0000</pubDate>
		<dc:creator>aravinthan</dc:creator>
				<category><![CDATA[Marriage]]></category>
		<category><![CDATA[Relationship]]></category>
		<category><![CDATA[Successful Marriage Series]]></category>
		<category><![CDATA[bride]]></category>
		<category><![CDATA[groom]]></category>
		<category><![CDATA[How to Solver Troubled Relationship]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[indian marriages]]></category>
		<category><![CDATA[Newly web]]></category>

		<guid isPermaLink="false">http://aravinthan.in/blog/?p=110</guid>
		<description><![CDATA[Technorati Tags: Wedding,Marriage,RelationShip,Thoughts,India,Brides,Grooms,Successful Marriage Series,Planning phase Introduction: This is the series of post that i am planning to write on the basics of successful Indian marriages. This series would also highlight the basic misconceptions in Indian mindset which needs to deal with the emerging reality that a bride /groom needs to face in their marriage &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2009/05/25/marriage/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:99a9fb6a-8600-413b-a949-5d139889e8ea" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/Wedding" rel="tag">Wedding</a>,<a href="http://technorati.com/tags/Marriage" rel="tag">Marriage</a>,<a href="http://technorati.com/tags/RelationShip" rel="tag">RelationShip</a>,<a href="http://technorati.com/tags/Thoughts" rel="tag">Thoughts</a>,<a href="http://technorati.com/tags/India" rel="tag">India</a>,<a href="http://technorati.com/tags/Brides" rel="tag">Brides</a>,<a href="http://technorati.com/tags/Grooms" rel="tag">Grooms</a>,<a href="http://technorati.com/tags/Successful+Marriage+Series" rel="tag">Successful Marriage Series</a>,<a href="http://technorati.com/tags/Planning+phase" rel="tag">Planning phase</a></div>
</p>
<p><strong>Introduction:</strong></p>
<p>This is the series of post that i am planning to write on the basics of successful Indian marriages. This series would also highlight the basic misconceptions in Indian mindset which needs to deal with the emerging reality that a bride /groom needs to face in their marriage life. The series would emphasis on and would get you a real perspective and the basic understanding of how a family would work in India.</p>
<p>Believe me as a groom I had a different perspective of what a marriage is and once i made some small but determined changes, my issues just got submerged into a blissful marriage life.</p>
<p><strong>Objective:</strong></p>
<p>The sole aim of the series of posts is to help a couple lead a peaceful and blissful life. </p>
<p>Though the series of posts are targeted to a newly wed or person intending to get wedded soon, this would also help already married couples with certain revelations that might transform their existing relationship;</p>
<p><strong>Indian Marriages:</strong></p>
<p>Indian Marriages are generally perceived to be not just a marriage of Individuals but of two families and their traditions. But in 20th century, reality is its about the two persons involved in the marriage unless you have a joint family.</p>
<p><strong>Choosing your partner:</strong></p>
<p>I am planning to list some of the basic guidelines which if followed in an arranged marriage would make married life much easier <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>Choose your partner with common values and family system. Eg: Eating habits; Educational backgrounds, etc.</li>
<li>Partners should have completely different hobbies or passions. This provides a lot of excitement in your life and variety to learn from each other and discuss.</li>
<li>Basic traits of your partner should mirror you. Eg:&#160; if you are a straight forward person who doesn’t like politics your partner should have similar traits to that. (This you can find out during your first meeting before your engagement, and plan your questions targeting your behavior you would want to find with your partner..).</li>
<li>Share your expectations of your marriage life and seek to get your partner’s approval.</li>
</ul>
<p>&#160;</p>
<p>My next post would deal with specific Todos and Donts before and after marriage;</p>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2009/05/25/marriage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Nth Largest number in an Array</title>
		<link>http://aravinthan.in/blog/2008/08/12/find-nth-largest-number-in-an-array/</link>
		<comments>http://aravinthan.in/blog/2008/08/12/find-nth-largest-number-in-an-array/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 06:38:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/2008/08/12/find-nth-largest-number-in-an-array/</guid>
		<description><![CDATA[The below is my implementation of finding the nth largest(whichmax)number in the given array of integers. This would work for both positive and negative integers. This also&#160; affects the given array by manipulating the values of the source array. Hence if you want an non-manipulative algo, this is NOT the one. &#160; #include &#8220;stdafx.h&#8221; class &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/08/12/find-nth-largest-number-in-an-array/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<div class="csharpcode">
<p>The below is my implementation of finding the nth largest(whichmax)number in the given array of integers.</p>
<p>This would work for both positive and negative integers. This also&nbsp; affects the given array by manipulating the values of the source array. Hence if you want an non-manipulative algo, this is NOT the one.</p>
<p>&nbsp;</p>
</div>
<p>#include &#8220;stdafx.h&#8221;
<p>class Program
<p>{
<p>public:&nbsp;&nbsp;&nbsp;&nbsp;
<p>int GetNthLargestOptimized(int **intArray,int Length, int whichMax);
<p>};
<p>int Program::GetNthLargestOptimized(int **intArray,int Length, int whichMax)
<p>{
<p>int MaxIndex =0;
<p>int MinIndex =0;
<p>bool minFound = false;
<p>for(int nth=0;nth&lt;whichMax;nth++)
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<p>for(int index=0;index&lt;Length;index++)
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<p>if((*intArray)[MaxIndex]&lt; (*intArray)[index])
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MaxIndex = index;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>if(!minFound &amp;&amp; (*intArray)[MinIndex] &gt; (*intArray)[index])
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MinIndex = index;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>if(!minFound)
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minFound = true;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>if(&nbsp;&nbsp; nth != whichMax -1)
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*intArray)[MaxIndex]= (*intArray)[MinIndex];
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>return (*intArray)[MaxIndex];
<p>}
<p>int _tmain(int argc, _TCHAR* argv[])
<p>{
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Program m;
<p>int intNegativeArray[10]={-1,-2,-3,-4,-5,-6,-7,-8,-9,-10};
<p>int intArray[10]={23,345,345,12,45,23,34,4,6,555};
<p>int *intNegativePtr = intNegativeArray;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;4th Largest in Negative array:%d\n&#8221;,m.GetNthLargestOptimized(&amp;intNegativePtr,10,4));
<p>int *intPtr = intArray;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;4th Largest in Positive array:%d\n&#8221;,m.GetNthLargestOptimized(&amp;intPtr,10,4));
<p>return 0;
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/08/12/find-nth-largest-number-in-an-array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FireFox 3.0 and WordPress Just wont Work?</title>
		<link>http://aravinthan.in/blog/2008/06/19/firefox-30-and-wordpress-just-wont-work/</link>
		<comments>http://aravinthan.in/blog/2008/06/19/firefox-30-and-wordpress-just-wont-work/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:31:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FireFox]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/2008/06/19/firefox-30-and-wordpress-just-wont-work/</guid>
		<description><![CDATA[  I am not able to login to my WordPress login through Firefox, dont know what fire fox doesn&#8217;t like about the WordPress.I recently upgraded the Firefox to 3.0 version from where this problem started Am I All alone or is any one with me?         Technorati Tags: Firefox,WordPress]]></description>
			<content:encoded><![CDATA[<p> <a href="http://aravinthan.files.wordpress.com/2008/06/firefox30.jpg"><img style="border-width:0;" src="http://aravinthan.files.wordpress.com/2008/06/firefox30-thumb.jpg" border="0" alt="Firefox30" width="166" height="244" align="left" /></a> I am not able to login to my WordPress login through Firefox, dont know what fire fox doesn&#8217;t like about the WordPress.I recently upgraded the Firefox to 3.0 version from where this problem started <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Am I All alone or is any one with me?</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:197ab0f5-94f1-4aca-b99d-737e2b2251b0" class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Firefox">Firefox</a>,<a rel="tag" href="http://technorati.com/tags/Wordpress">WordPress</a></div>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/19/firefox-30-and-wordpress-just-wont-work/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Stop Forced Reboot of Windows Vista After Software Updates</title>
		<link>http://aravinthan.in/blog/2008/06/17/how-to-stop-forced-reboot-of-windows-vista-after-software-updates/</link>
		<comments>http://aravinthan.in/blog/2008/06/17/how-to-stop-forced-reboot-of-windows-vista-after-software-updates/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 12:27:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/2008/06/17/how-to-stop-forced-reboot-of-windows-vista-after-software-updates/</guid>
		<description><![CDATA[Sometimes it would be very frustrating to see our machine rebooted due to software updates. There would be instances when we would have started a long process to start and would have aborted abruptly due to the software updates from the Vista. I found a nice article from How To Geek where he has explained &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/06/17/how-to-stop-forced-reboot-of-windows-vista-after-software-updates/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aravinthan.files.wordpress.com/2008/06/noforcedreboot.jpg"><img style="border-width:0;" height="151" alt="NoForcedReboot" src="http://aravinthan.files.wordpress.com/2008/06/noforcedreboot-thumb.jpg" width="366" align="left" border="0"></a> Sometimes it would be very frustrating to see our machine rebooted due to software updates. There would be instances when we would have started a long process to start and would have aborted abruptly due to the software updates from the Vista. I found a nice article from <a href="http://www.howtogeek.com">How To Geek</a> where he has explained the above process to disable Vista from forcibly rebooting the machine. All we need to do is this:</p>
<p>Open up regedit.exe through the start menu search box or run dialog, and navigate down to the following key, creating new keys if they don&#8217;t exist. </p>
<p>&nbsp;
<p>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
<p>\WindowsUpdate\AU\
<p>Create a new 32-bit DWORD value named NoAutoRebootWithLoggedOnUsers and give it a value of 1 to prevent automatic reboot while users are logged on. Delete the value to put things back to the way they were.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0a960625-d227-4e6f-9f56-008f620fa6ba" style="display:inline;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/Windows" rel="tag">Windows</a>,<a href="http://technorati.com/tags/Vista" rel="tag">Vista</a>,<a href="http://technorati.com/tags/Hack" rel="tag">Hack</a>,<a href="http://technorati.com/tags/Registry" rel="tag">Registry</a></div>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/17/how-to-stop-forced-reboot-of-windows-vista-after-software-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zoomii</title>
		<link>http://aravinthan.in/blog/2008/06/17/zoomii/</link>
		<comments>http://aravinthan.in/blog/2008/06/17/zoomii/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 10:05:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[ECommerce]]></category>
		<category><![CDATA[Zoomii]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/2008/06/17/zoomii/</guid>
		<description><![CDATA[Zoomi, this&#160; one really caught my attention. This is what technology would do as it matures. The shopping experiences would soon become to mature from a 2D to a 3D experience. This web is a book store who get the books catalogue from Amazon and presents it in a 3D format for a pleasant experience &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/06/17/zoomii/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aravinthan.files.wordpress.com/2008/06/zoomi.jpg"><img height="147" alt="zoomi" src="http://aravinthan.files.wordpress.com/2008/06/zoomi-thumb.jpg" width="232" align="left"></a> </p>
<p><a href="http://zoomii.com">Zoomi</a>, this&nbsp; one really caught my attention. This is what technology would do as it matures. The shopping experiences would soon become to mature from a 2D to a 3D experience.</p>
<p>This web is a book store who get the books catalogue from Amazon and presents it in a 3D format for a pleasant experience of the user. The user would use the Amazon payment gateway for the payments. Zoomii does not even store the shipping information or any other information about the user except his email address; I guess this one is going to be a sure hit <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b6ba3f61-febd-44d6-802f-59298fa1c2e7" style="display:inline;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/Zoomi" rel="tag">Zoomi</a>,<a href="http://technorati.com/tags/ECommerce" rel="tag">ECommerce</a>,<a href="http://technorati.com/tags/Amazon" rel="tag">Amazon</a></div>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/17/zoomii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sphenic number</title>
		<link>http://aravinthan.in/blog/2008/06/12/sphenic-number/</link>
		<comments>http://aravinthan.in/blog/2008/06/12/sphenic-number/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 09:30:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Number]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/?p=85</guid>
		<description><![CDATA[In Mathematics Sphenic number is a postive integer which is a product of three distinct  prime numbers. All sphenic numbers have exactly eight divisors. If we express the sphenic number as n=p.q.r, where p, q, and r are distinct primes, then the set of divisors of n will be:  {1,p,q,r,pq,pr,qr, n}. Refer to Sphenic Number in &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/06/12/sphenic-number/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>In Mathematics <a href="http://en.wikipedia.org/wiki/Sphenic_number">Sphenic number</a> is a postive integer which is a product of three distinct  prime numbers.</p>
<p>All sphenic numbers have exactly eight divisors. If we express the sphenic number as n=p.q.r, where <em>p</em>, <em>q</em>, and <em>r</em> are distinct primes, then the set of divisors of <em>n</em> will be:  {1,p,q,r,pq,pr,qr, n}.</p>
<p>Refer to <a href="http://en.wikipedia.org/wiki/Sphenic_number">Sphenic Number in Wiki</a> for more details.</p>
<dl>
<dd> </dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/12/sphenic-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selection Sort</title>
		<link>http://aravinthan.in/blog/2008/06/10/selection-sort/</link>
		<comments>http://aravinthan.in/blog/2008/06/10/selection-sort/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 09:05:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[Selection Sort]]></category>
		<category><![CDATA[Sorting]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/?p=84</guid>
		<description><![CDATA[Selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) complexity, making it inefficient on large lists, and generally performs worse than the similar insertion sort. Selection sort is noted for its simplicity, and also has performance advantages over more complicated algorithms in certain situations. The following is my implementation of &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/06/10/selection-sort/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) complexity, making it inefficient on large lists, and generally performs worse than the similar insertion sort. Selection sort is noted for its simplicity, and also has performance advantages over more complicated algorithms in certain situations.</p>
<p>The following is my implementation of the selection sort in C# programming language <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Consider sorting <em>n</em> numbers stored in array <em>A</em> by first finding the smallest element of <em>A</em> and exchanging it with the element in <em>A</em>[1]. Then find the second smallest element of <em>A</em>, and exchange it with <em>A</em>[2]. Continue in this manner for the first <em>n</em> &#8211; 1 elements of <em>A</em>.<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;</p>
<p>namespace Sorting<br />
{<br />
    class Sort<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            List&lt;Int32&gt; nums = new List&lt;int&gt;();<br />
            nums.Add(30);<br />
            nums.Add(10);<br />
            nums.Add(20);<br />
            nums.Add(40);<br />
            nums.Add(5);<br />
            nums.Add(8);<br />
            nums.Add(3);<br />
            Sort sort = new Sort();<br />
            //sort.DoInsertionSort(ref nums);<br />
            sort.DoSelectionSort(ref nums);<br />
           <br />
            foreach(int i in nums)<br />
            {<br />
                Console.WriteLine(i);<br />
            }<br />
           <br />
        }</p>
<p>        /// &lt;summary&gt;<br />
        /// Selection sort algorithm involves primarily, traversing the list<br />
        /// and then finding the least element in the array.<br />
        /// Swapping that element with the first element of the array.<br />
        /// We continue this process untill we hit the pen-ultimate element<br />
        /// of the array.<br />
        /// &lt;/summary&gt;<br />
        /// &lt;param name=&#8221;numbersToBeSorted&#8221;&gt;&lt;/param&gt;<br />
        public void DoSelectionSort(ref List&lt;Int32&gt; numbersToBeSorted)<br />
        {<br />
            for (int index = 0; index &lt; numbersToBeSorted.Count-1; index++)<br />
            {<br />
                int min = index;</p>
<p>                for (int secondSearch = index + 1; secondSearch &lt; numbersToBeSorted.Count; secondSearch++)<br />
                {<br />
                    if (numbersToBeSorted[secondSearch] &lt; numbersToBeSorted[min])<br />
                    {<br />
                        min = secondSearch;<br />
                    }<br />
                }<br />
                //simple swapping of the least element with appropriate<br />
                //key element.<br />
                int temp = numbersToBeSorted[index];<br />
                numbersToBeSorted[index] = numbersToBeSorted[min];<br />
                numbersToBeSorted[min] = temp;</p>
<p>            }<br />
        }<br />
}</p>
<p> /*<br />
         *<br />
         *  Out put would be:<br />
            3<br />
            5<br />
            8<br />
            10<br />
            20<br />
            30<br />
            40<br />
            Press any key to continue . . .<br />
         */</p>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/10/selection-sort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Express the function n3/1000 &#8211; 100n2 &#8211; 100n + 3 in terms of ?-notation.</title>
		<link>http://aravinthan.in/blog/2008/06/10/express-the-function-n31000-100n2-100n-3-in-terms-of-%ce%b8-notation/</link>
		<comments>http://aravinthan.in/blog/2008/06/10/express-the-function-n31000-100n2-100n-3-in-terms-of-%ce%b8-notation/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 09:01:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CLR]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/?p=83</guid>
		<description><![CDATA[I guess the answer is ?(n^3). We always mention the highest order of the equation and we ignore the constants associated with the equation.]]></description>
			<content:encoded><![CDATA[<p>I guess the answer is ?(n^3). We always mention the highest order of the equation and we ignore the constants associated with the equation.</p>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/10/express-the-function-n31000-100n2-100n-3-in-terms-of-%ce%b8-notation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insertion Sort</title>
		<link>http://aravinthan.in/blog/2008/06/10/insertion-sort/</link>
		<comments>http://aravinthan.in/blog/2008/06/10/insertion-sort/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 07:11:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[Insertion Sort]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/?p=81</guid>
		<description><![CDATA[I wanted to write on Algorithms for a long time and here i got a chance to write on them; Today I am going to post on Insertion sort. Insertion sort is a simple sorting algorithm, a comparison sort in which the sorted array (or list) is built one entry at a time. It is &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/06/10/insertion-sort/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I wanted to write on Algorithms for a long time and here i got a chance to write on them; Today I am going to post on Insertion sort.</p>
<p><strong>Insertion sort</strong> is a simple <a title="Sorting algorithm" href="http://en.wikipedia.org/wiki/Sorting_algorithm">sorting algorithm</a>, a <a title="Comparison sort" href="http://en.wikipedia.org/wiki/Comparison_sort">comparison sort</a> in which the sorted array (or list) is built one entry at a time. It is much less efficient on large lists than more advanced algorithms such as <a title="Quicksort" href="http://en.wikipedia.org/wiki/Quicksort">quicksort</a>, <a title="Heapsort" href="http://en.wikipedia.org/wiki/Heapsort">heapsort</a>, or <a title="Merge sort" href="http://en.wikipedia.org/wiki/Merge_sort">merge sort</a></p>
<p>While implementing the insertion sort, we would try to main the following rules:</p>
<div>1. While we begin sorting we would sort from the second array position.</div>
<div>2. We keep traversing the array and take the next element in the array and position it such that it is in the sorted order.</div>
<div> </div>
<div>The implementation of the insertion sort in C# language is as follows:</div>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;</p>
<p>namespace Sorting<br />
{<br />
    class InsertionSort<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            List&lt;Int32&gt; nums = new List&lt;int&gt;();<br />
            nums.Add(30);<br />
            nums.Add(10);<br />
            nums.Add(20);<br />
            nums.Add(40);<br />
            nums.Add(5);<br />
            nums.Add(8);<br />
            nums.Add(3);<br />
            InsertionSort sort = new InsertionSort();<br />
            sort.DoInsertionSort(ref nums);<br />
           <br />
            foreach(int i in nums)<br />
            {<br />
                Console.WriteLine(i);<br />
            }<br />
           <br />
        }<br />
        /// &lt;summary&gt;<br />
        ///<br />
        /// &lt;/summary&gt;<br />
        /// &lt;param name=&#8221;numbersToBeSorted&#8221;&gt;<br />
        /// The array of integers which needs to be sorted.<br />
        /// &lt;/param&gt;<br />
        public void DoInsertionSort(ref List&lt;Int32&gt; numbersToBeSorted)<br />
        {<br />
            for (int j = 1; j &lt; numbersToBeSorted.Count; j++)<br />
            {<br />
                //The key is the one which we would compare with each of<br />
                //the element and insert it appropriately.<br />
                int key = numbersToBeSorted[j];</p>
<p>                //We just need to compare it with the previous element.         <br />
                int i = j &#8211; 1;<br />
                //THE AWESOME TRICK:<br />
                // Since our state is we would always have the previous<br />
                //elements in sorted order, we would just traverse back<br />
                //and insert the key where the its most appropriate.<br />
                while (i &gt; -1 &amp;&amp; numbersToBeSorted[i] &gt; key)<br />
                {<br />
                    numbersToBeSorted[i + 1] = numbersToBeSorted[i];<br />
                    i = i &#8211; 1;<br />
                }<br />
                numbersToBeSorted[i + 1] = key;<br />
            }<br />
        }</p>
<p>        /*<br />
         *<br />
         *  Out put would be:<br />
            3<br />
            5<br />
            8<br />
            10<br />
            20<br />
            30<br />
            40<br />
            Press any key to continue . . .<br />
         */</p>
<p>    }<br />
}</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/06/10/insertion-sort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hindi is not the National Language of India</title>
		<link>http://aravinthan.in/blog/2008/04/23/hindi-is-not-the-national-language-of-india/</link>
		<comments>http://aravinthan.in/blog/2008/04/23/hindi-is-not-the-national-language-of-india/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 08:50:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hindi]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[National Language]]></category>

		<guid isPermaLink="false">http://aravinthan.wordpress.com/?p=80</guid>
		<description><![CDATA[There is no National Language in India. India is a  language agnostic nation This is a good learning for me as I was made to belive from my schooling that Hindi is the national Language.. which was false!   http://en.wikipedia.org/wiki/Languages_of_India   States that,    Article 346 of the Indian Constitution recognises Hindi in Devan?gar? script &#8230; </p><p><a class="more-link block-button" href="http://aravinthan.in/blog/2008/04/23/hindi-is-not-the-national-language-of-india/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;font-family:Times New Roman;">There is no National Language in India. India is a  language agnostic nation <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This is a good learning for me as I was made to belive from my schooling that Hindi is the national Language.. which was false!</span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span><a href="http://en.wikipedia.org/wiki/Languages_of_India" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">http://en.wikipedia.org/wiki/Languages_of_India</span></a></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;">States that,</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;font-family:Times New Roman;"> Article 346 of the </span><a title="Indian Constitution" href="http://en.wikipedia.org/wiki/Indian_Constitution" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">Indian Constitution</span></a><span style="font-size:small;font-family:Times New Roman;"> recognises </span><a title="Hindi language" href="http://en.wikipedia.org/wiki/Hindi_language" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">Hindi</span></a><span style="font-size:small;font-family:Times New Roman;"> in </span><a title="Devanagari" href="http://en.wikipedia.org/wiki/Devanagari" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">Devan?gar? script</span></a><span style="font-size:small;font-family:Times New Roman;"> as the </span><a title="Official language" href="http://en.wikipedia.org/wiki/Official_language" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">official language</span></a><span style="font-size:small;font-family:Times New Roman;"> of central government India. The Constitution also allows for the continuation of use of the </span><a title="English language" href="http://en.wikipedia.org/wiki/English_language" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">English language</span></a><span style="font-size:small;font-family:Times New Roman;"> for official purposes. Article 345 provides constitutional recognition to &#8220;</span><a title="Official languages" href="http://en.wikipedia.org/wiki/Official_languages" target="_blank"><span style="font-size:small;color:#0000ff;font-family:Times New Roman;">Official languages</span></a><span style="font-size:small;"><span style="font-family:Times New Roman;">&#8221; of the union to include any language adopted by a state legislature as the official language of that state. In effect, there are &#8220;Official Languages at the state and center level but no one &#8220;national language&#8221;. </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;">Official language is a language standard used only in (Central) Government documents..  By no means it is an indication to external world that &#8220;India speaks Hindi&#8221; but somehow I this precisely the same happening..</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;">I Don&#8217;t know how we forget that we are a linguistically free nation..  <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;">Calling Hindi as national language is like calling india a &#8220;Hindu nation&#8221;..  Both of which are false..  Wake up indians..  <img src='http://aravinthan.in/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times New Roman;">My notion is to CREATE SOME GENERAL AWARENESS amoung us. </span></span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;font-family:Times New Roman;">There are 23 Official languages as like Hindi&#8230; Please dont mention again its a National Language&#8230;</span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;font-family:Times New Roman;">Some extracts for ppl who say since most of India is speaking Hindi so we should have hindi declared as national language.. here is why we should not:</span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:11pt;color:#1f497d;">If for some reason, if we decide and say “Hinduism is the religion of &gt;75% of India so let us have a national religion which is Hinduism. We recognize all other religions as “official religions”, The government will endeavour to ensure that all other religion’s followers are encouraged to learn Hinduism and follow along with their own religion”. What would be your reaction ?</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;color:#1f497d;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;color:#1f497d;">Now substitute Religion with Language and Hinduism with Hindi and tell me why is it still acceptable ?</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;color:#1f497d;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;color:#1f497d;">Just as a religions cut across languages/regions in India, languages cut across regions and religions. All the reasons that would rule out a national religion, should IMO rule out a national language.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:11pt;color:#1f497d;"> </span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"> </p>
]]></content:encoded>
			<wfw:commentRss>http://aravinthan.in/blog/2008/04/23/hindi-is-not-the-national-language-of-india/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

