<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hemanth Nhs on Medium]]></title>
        <description><![CDATA[Stories by Hemanth Nhs on Medium]]></description>
        <link>https://medium.com/@hemanthnhs?source=rss-4509dbdb2311------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FQfZDvMsdCkAzxvxEg6CnA.jpeg</url>
            <title>Stories by Hemanth Nhs on Medium</title>
            <link>https://medium.com/@hemanthnhs?source=rss-4509dbdb2311------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:08:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hemanthnhs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Insertion Sort Algorithm / Pseudocode]]></title>
            <link>https://hemanthnhs.medium.com/insertion-sort-algorithm-pseudocode-cac4c696d273?source=rss-4509dbdb2311------2</link>
            <guid isPermaLink="false">https://medium.com/p/cac4c696d273</guid>
            <category><![CDATA[sorting-algorithms]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[competitive-programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[insertion-sort]]></category>
            <dc:creator><![CDATA[Hemanth Nhs]]></dc:creator>
            <pubDate>Mon, 17 May 2021 05:44:11 GMT</pubDate>
            <atom:updated>2021-05-17T05:47:02.148Z</atom:updated>
            <content:encoded><![CDATA[<p>Well for anyone interested in Computer Science, one of the first lessons would be regarding Sorting. Why sorting is important?…. This is very important as the first step of Software Engineering/Development is understanding the problem(business need).</p><p>Why Sorting? Many problems become easy if our arrays/lists are sorted (For example finding the median, finding a specific number, finding min/max, generating a hashcode based on words, …..)</p><p>So simply put, sorting is important. <em>Follow the links in resources for additional reasoning on why sorting is important before you review the algorithm.</em></p><p>The main idea behind this algorithm is to <strong>insert a new element into an already sorted array by performing pairwise swapping</strong>.</p><pre>1. Consider each element i from 1 to n <br>2. Consider j from i to 0<br>3. Compare j with j-1 in each step(pairwise comparision) and swap if needed.</pre><p>The pseudocode version 1 is as follows</p><pre>for i: 1 to n{<br>   for j: i to 0{<br>      if(a[j] &lt; a[j-1]){<br>          swap a[j] and a[j-1]<br>      }<br>   }<br>}</pre><p>Note that you end up swapping the inner loop in this version till 0 every time even if the element is already at its original place or somewhere in between. So one suggestion might be to break when the condition fails to save some time.</p><pre>for i: 1 to n {<br>   for j: i to 0 {<br>      if(a[j] &lt; a[j-1]){<br>          swap a[j] and a[j-1]<br>      }else{<br>          break<br>      }<br>   {<br>}</pre><p>Another way or an elegant way of writing this is as</p><pre>for i: 1 to n {<br>   newElement = a[i]<br>   j = i-1<br>   while(j &gt; 0 &amp;&amp; a[j-1] &lt; newElement){<br>     swap a[j], a[j-1]<br>     j--<br>   }<br>}</pre><p><strong>Time complexity: O(n²)</strong> (n steps for the first loop to consider each element and n again looping to move the element to its right place = n x n)<br><strong>Space complexity: O(1)</strong> (no additional space needed)</p><p><strong>Further Improvements to be considered:</strong><br>Consider while inserting the element to its right place we are taking up n time. If we use binary search it would take us to log n time instead for the step. However, as we need to shift our elements, it would take up n time in the worst case. This can be a useful enhancement when we have a different data structure such as a Linked list.</p><p><strong>Resources:<br></strong><a href="https://www.youtube.com/watch?v=Kg4bqzAqRBM">MIT Algorithms Lecture (https://www.youtube.com/watch?v=Kg4bqzAqRBM)</a></p><p>Feel free to correct or suggest or comment about anything in the explanation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cac4c696d273" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gaussian Distribution for Machine Learning and Data Science (Normal Distribution)]]></title>
            <link>https://hemanthnhs.medium.com/gaussian-distribution-for-machine-learning-and-data-science-normal-distribution-bc90139e226d?source=rss-4509dbdb2311------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc90139e226d</guid>
            <category><![CDATA[normal-distribution]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[gaussian-distribution]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Hemanth Nhs]]></dc:creator>
            <pubDate>Tue, 11 Jun 2019 19:30:48 GMT</pubDate>
            <atom:updated>2021-05-17T06:33:12.451Z</atom:updated>
            <content:encoded><![CDATA[<p>Gaussian or Normal Distribution is a very common term in statistics. These are generally used to represent random variables that coming into Machine Learning we can say which is something like the error when we don&#39;t know the weight vector for our Linear Regression Model. In a Gaussian distribution, the more data near to the mean and is like a bell curve in general</p><p>We have two main parameters to explain or inform regarding our Gaussian distribution model they are mean and variance. Mean is usually represented by μ and variance with σ² (σ is the standard deviation). The graph is symmetric about the mean for a gaussian distribution. The mean, median, and mode are equal.</p><p>So coming into μ and σ, μ is the mean value of our data and σ is the spread of our data. We can express the probability density for Gaussian distribution as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*I4fBYBqWk9ZhpRAPuegXYw.png" /><figcaption>Image from Wikipedia</figcaption></figure><p>While usually modeling a large data it is common that more data is closer to the mean value and the very few or less frequent data is observed towards the extremes, which is nothing but a gaussian distribution that looks like this(μ = 0 and σ = 1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*2gJ31voFLasAmw_zJbcGmA.png" /></figure><p>Adding to the above statement we can refer to the Central limit theorem to strengthen the above assumption.</p><blockquote>The central limit theorem (CLT) establishes that, in some situations, when independent random variables are added, their properly normalized sum tends toward a normal distribution (informally a “bell curve”) even if the original variables themselves are not normally distribute</blockquote><p>So because of these properties and Central Limit Theorem (CLT), Gaussian distribution is often used in Machine Learning Algorithms.</p><p>References and Other readings</p><p><a href="https://en.wikipedia.org/wiki/Normal_distribution">Normal Distribution — Wikipedia</a></p><p><a href="https://youtu.be/rBjft49MAO8">Normal Distribution — Crash Course</a></p><p><a href="https://stackoverflow.com/questions/10138085/python-pylab-plot-normal-distribution">Gaussian Distribution Python Code</a></p><p><a href="https://en.wikipedia.org/wiki/Central_limit_theorem">Central limit theorem</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc90139e226d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Udacity Propel 2018 — Experience]]></title>
            <link>https://hemanthnhs.medium.com/udacity-3c44bb0a6f0f?source=rss-4509dbdb2311------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c44bb0a6f0f</guid>
            <category><![CDATA[propel]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[bangalore]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Hemanth Nhs]]></dc:creator>
            <pubDate>Mon, 26 Feb 2018 16:58:49 GMT</pubDate>
            <atom:updated>2021-05-17T06:03:19.036Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="http://apvi.co/hemanwk-1vy">Udacity Propel 2018 </a>— Experience</h3><p>I am pursuing<a href="http://apvi.co/hemanwk-1vy"> React Nanodegree</a> from Udacity and before I share my experience about the event I would like to provide few details about my Nanodegree and the rest of Nanodegree’s in general. React is one of the most promising tech in the field of Web development and is quite interesting and it has several advantages compared to many other frameworks. This made me to choose react and the reason why I went with Udacity is their earlier success rate and reviews from the close circle and of course its tie ups with major companies like Amazon, Google, and others.</p><p>Udacity.com — You can use this link to register in any of Udacity Nanodegree or register for some free course.</p><p>Propel — 2k18 #UdacityPropel #JobsOfTomorrow</p><p>The above two hashtags that Udacity has chosen to trend for their event is quite nice and I am not a resident of Bengaluru (Bangalore)but traveled all the way to Bangalore just to attend the propel event. The day started at 9 am with the registrations and the process continued till 10 and around 10 Udacity has shared the candidate&#39;s resumes as per their desired positions with the companies. I’ve chosen full stack developer as I worked as a Full-stack earlier and wanted to continue that way. On a rough note for Web development, there are around 7–9 startups and companies recruiting and I was shortlisted for 6 of them.</p><p>One among them is Groupon, I’ve cleared the initial round during that day and the rest process was scheduled for a later time. I started with my interviews from around 11:30 and I was giving interviews back to back till 5:30. I grabbed on a on-spot offer for one of the company and was shortlisted for further rounds with few others.</p><p><strong>Want went right and wrong?</strong> — I’d start with the positive things the way the event was handled like I know how difficult it would be when one startup is recruiting as they try to hire the best and have a long process usually but managing the event with those many startups is so cool and able to get some great companies like Groupon is very good. I am just mentioning about Web development companies but there are companies recruiting for Machine Learning, AI, Android many other roles. Second thing the team is quite helpful as I was shortlisted to many companies planning it properly to avoid overlapping. Negatives Ah! They definitely exist in any case but there are few little and the positives completely overshadowed the negatives for me.</p><p><strong>Would I recommend to take a Nanodegree and attend Propel?</strong> — 200% Yes, it&#39;s not just for getting hired but the quality of course and mentorship is quite great where you have a person to help you through the course solving all your doubts and queries. Main thing that makes Udacity Nanodegree different from the rest is the projects. There are some real-time projects and you need to implement them and it would be reviewed by experts from all over the code and you get feedback from them.</p><p>Comment/Share your recent experiences with Udacity and about the courses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c44bb0a6f0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>