<?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 Varsha C Bendre on Medium]]></title>
        <description><![CDATA[Stories by Varsha C Bendre on Medium]]></description>
        <link>https://medium.com/@varshacbendre?source=rss-7d7c839ea70d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W32CuEQIExOMjely0mAspQ.png</url>
            <title>Stories by Varsha C Bendre on Medium</title>
            <link>https://medium.com/@varshacbendre?source=rss-7d7c839ea70d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:33:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varshacbendre/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[Why Your Data Science Portfolio Isn’t Getting You Hired]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://varshacbendre.medium.com/why-your-data-science-portfolio-isnt-getting-you-hired-dc809252e568?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/1536/1*Eiv9T-j_e2vr9BXSk3ygDA.jpeg" width="1536"></a></p><p class="medium-feed-snippet">5 Mistakes That Make Recruiters Swipe Left, Kill Your Credibility, and Keep You Invisible to Top AI Employers (P.S. Even If You Think&#x2026;</p><p class="medium-feed-link"><a href="https://varshacbendre.medium.com/why-your-data-science-portfolio-isnt-getting-you-hired-dc809252e568?source=rss-7d7c839ea70d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://varshacbendre.medium.com/why-your-data-science-portfolio-isnt-getting-you-hired-dc809252e568?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc809252e568</guid>
            <category><![CDATA[data-science-careers]]></category>
            <category><![CDATA[storytelling-with-data]]></category>
            <category><![CDATA[career-growth]]></category>
            <category><![CDATA[ai-career]]></category>
            <category><![CDATA[technical]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Sun, 04 May 2025 11:59:38 GMT</pubDate>
            <atom:updated>2025-05-05T11:25:57.450Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I cut my Data Cleaning time in half (And you can, too!)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://varshacbendre.medium.com/how-i-cut-my-data-cleaning-time-in-half-and-you-can-too-b397c6a70fbf?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/1200/1*3uE3jyR-fgw_Q6ehydK6pw.jpeg" width="1200"></a></p><p class="medium-feed-snippet">Ever felt like data cleaning is eating up all your valuable time?</p><p class="medium-feed-link"><a href="https://varshacbendre.medium.com/how-i-cut-my-data-cleaning-time-in-half-and-you-can-too-b397c6a70fbf?source=rss-7d7c839ea70d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://varshacbendre.medium.com/how-i-cut-my-data-cleaning-time-in-half-and-you-can-too-b397c6a70fbf?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b397c6a70fbf</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Thu, 06 Mar 2025 11:12:23 GMT</pubDate>
            <atom:updated>2025-04-06T12:47:47.067Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Confident about Regularization? These 6 critical mistakes almost destroyed my dream ML project.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://varshacbendre.medium.com/regularization-gone-wrong-6-costly-mistakes-that-can-wreck-your-machine-learning-model-881afae04623?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/1472/1*anz3VjTVBl6XCw8Q8OrUQA.png" width="1472"></a></p><p class="medium-feed-snippet">Ever added regularization only to watch your model crash and burn?  Yeah, been there. </p><p class="medium-feed-link"><a href="https://varshacbendre.medium.com/regularization-gone-wrong-6-costly-mistakes-that-can-wreck-your-machine-learning-model-881afae04623?source=rss-7d7c839ea70d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://varshacbendre.medium.com/regularization-gone-wrong-6-costly-mistakes-that-can-wreck-your-machine-learning-model-881afae04623?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/881afae04623</guid>
            <category><![CDATA[ml-model]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[model-training]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Sat, 01 Mar 2025 11:11:33 GMT</pubDate>
            <atom:updated>2025-04-06T12:48:43.011Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I processed ONE billion rows in PySpark without crashing (and You Can Too!)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://varshacbendre.medium.com/how-i-processed-1-billion-rows-in-pyspark-without-crashing-and-you-can-too-d6725f29e039?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/1472/1*RKT-FF6cIoFEcWW9hFRxZg.png" width="1472"></a></p><p class="medium-feed-snippet">Ever tried running a PySpark job on 1 billion rows, only to watch it crash and burn?</p><p class="medium-feed-link"><a href="https://varshacbendre.medium.com/how-i-processed-1-billion-rows-in-pyspark-without-crashing-and-you-can-too-d6725f29e039?source=rss-7d7c839ea70d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://varshacbendre.medium.com/how-i-processed-1-billion-rows-in-pyspark-without-crashing-and-you-can-too-d6725f29e039?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6725f29e039</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[pyspark]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 10:41:04 GMT</pubDate>
            <atom:updated>2025-04-06T12:49:07.211Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How the Power of Similarity Drives Smart Recommendations: A Deep Dive into Collaborative Filtering]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://varshacbendre.medium.com/how-the-power-of-similarity-drives-smart-recommendations-a-deep-dive-into-collaborative-filtering-519232613af4?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/776/1*g7BFA8HjSD8khYxmQRK1Mg.png" width="776"></a></p><p class="medium-feed-snippet">Curious how Netflix and Amazon recommend the perfect content?</p><p class="medium-feed-link"><a href="https://varshacbendre.medium.com/how-the-power-of-similarity-drives-smart-recommendations-a-deep-dive-into-collaborative-filtering-519232613af4?source=rss-7d7c839ea70d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://varshacbendre.medium.com/how-the-power-of-similarity-drives-smart-recommendations-a-deep-dive-into-collaborative-filtering-519232613af4?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/519232613af4</guid>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 10:43:45 GMT</pubDate>
            <atom:updated>2025-04-06T12:49:21.024Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Brief Introduction to Grey Wolf Optimization (GWO)]]></title>
            <link>https://varshacbendre.medium.com/brief-introduction-to-grey-wolf-optimization-gwo-8e462292ca21?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e462292ca21</guid>
            <category><![CDATA[greywolf]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[metaheuristics]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 13:11:52 GMT</pubDate>
            <atom:updated>2025-04-06T12:49:45.552Z</atom:updated>
            <content:encoded><![CDATA[<h4>Metaheuristic algorithmic frameworks are implementations of optimization algorithms that are independent of specific problems.</h4><h4>1. Introduction</h4><p>Metaheuristic algorithmic frameworks represent a versatile approach to optimization, providing implementations that transcend specific problems. To put it simply, optimization algorithms are powerful problem-solving tools designed to find the best solution among a set of possibilities. Imagine you’re trying to find the shortest route between multiple destinations on a map — optimization algorithms can efficiently determine the most time or cost-effective path, making them invaluable across various domains, from logistics to engineering. In this article, we delve into one such metaheuristic algorithm, the Grey Wolf Optimization (GWO), exploring its inspiration from nature and its application in solving complex problems.</p><h4>2. Brief Explanation</h4><p>The GWO simulates the Social Hierarchy and Hunting Behaviour of the pack of grey wolves.</p><blockquote>2.1 Social Hierarchy</blockquote><p>The pack has four following categories. The alpha is responsible for taking decisions; the beta assists the alpha with all the decisions; the delta follows the lead of the alpha and beta and is in charge of the omega.<br>Each grey wolf represents a solution in the algorithm. The alpha, beta, delta, and omega represent the best, second-best, third-best, and the rest of the solutions, respectively.</p><blockquote>2.2 Hunting behavior</blockquote><p>The hunting behavior shows that the wolves find the location of the prey and encircle them. The alpha will lead the hunt with the help of beta and delta, accompanied by the rest of the pack. They approach, track, and chase prey. They gimmick prey by encircling and harassing them and finally attacking them when they are exhausted. This hunting behavior is behind the optimization of the problem.</p><h4>3. GWO Algorithm</h4><p>The behaviors explained in the above sections are used to obtain optimized solutions for the “black box” problems. The algorithm follows a social hierarchy, hence the best solutions are saved after every iteration to reach the optimal solution. As a part of the hunting mechanism, the wolves encircle the prey before attacking them.</p><p>The population size and the maximum number of iterations are initialized to find the three best solutions <strong><em>Xₐ, Xᵦ, Xᵧ</em></strong>.​​</p><p>​When the iteration = 1, we proceed as follows.</p><ul><li>Compute <strong><em>a = { 2 (1 — iteration / maxiter)</em></strong></li><li>Calculate <strong><em>X₁, X₂, X₃</em></strong>.</li><li>Compute <strong><em>Xₙₑ𝓌 = X₁, X₂, X₃</em></strong><em>.</em></li><li>Verify if the value lies inside the upper and lower bounds</li><li>Perform a greedy selection. If the new value is better then update the value</li></ul><p>Now let us look into the pseudocode to understand how the algorithm works. The above iteration goes on for maximum times to reach the optimal solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OX-Yv_IvOcbqCzMwH8wBTA.png" /></figure><h4>4. Performance optimization/Complexity Analysis</h4><p>From the pseudocode, the summary of the time complexity is as follows.</p><ul><li>The initialization of population size(n) and the dimension of the problem(m) is denoted by O(n*m).</li><li>The control parameters are calculated in O(n*m) time.</li><li>Update the positions of the grey wolves also requires O(n*m) time.</li><li>To calculate all the optimal values, we need O(n*m) time.</li><li>The complexity also depends on the maximum number of iterations. Hence it is O(n * m * maxIter).</li></ul><h4>5. Conclusion</h4><p>In this article, we have explored the adaptation of nature to solve complex problems. We examined the pseudocode and its time complexity in detail.</p><p><strong><em>Struggling as a first-time AI founder?</em></strong><em><br>Download this free 5-day email course to guide you from idea to paying customers — without the rookie pitfalls. <br></em>👉 <a href="https://getaifoundersroadmap.com/"><em>Get started now!</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e462292ca21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cracking the Code: Unveiling the Secrets Behind Netflix’s Captivating Recommendation System]]></title>
            <link>https://varshacbendre.medium.com/how-does-netflixs-recommendation-system-keeps-you-glued-to-your-screen-48d67772ee1e?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d67772ee1e</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ott]]></category>
            <category><![CDATA[addiction]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[personalisation]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Sun, 19 Mar 2023 06:38:59 GMT</pubDate>
            <atom:updated>2025-04-06T12:50:04.533Z</atom:updated>
            <content:encoded><![CDATA[<p>Netflix has come a long way since its early days as a DVD rental service. Today, the company has a subscription-based model and is available in over 190 countries worldwide. Netflix has revolutionized the way we consume entertainment, making it more accessible and convenient than ever before. With its vast library of movies and TV shows, there is truly something for everyone on Netflix. Moreover, the company has not only provided us with endless hours of entertainment but has also created a platform for independent filmmakers and content creators to showcase their work to a global audience. It’s no wonder that Netflix has become such a household name and a staple in the entertainment industry.</p><p>A recommendation system is an AI technique that has gained popularity in recent years. It enables us to discover more items that we like based on our current preferences. This technique is responsible for more than 80% of the streamed content on Netflix. It is also one of the most widely used entertainment platforms with over two hundred million subscribers and very good user retention. It has the lowest churn rate of 2.5% in 2020.</p><figure><img alt="Netflix has the lowest churn rate of 2.5% in 2020" src="https://cdn-images-1.medium.com/max/610/1*lfqiQh5xDTpbm8Tveihk8Q.png" /><figcaption><a href="https://www.hollywoodreporter.com/">Source</a></figcaption></figure><p>Netflix has revolutionized the way we consume entertainment, making it more accessible and convenient than ever before. With its vast library of movies and TV shows, there is truly something for everyone on Netflix. However, with so much content on the platform, it can be overwhelming for viewers to decide what to watch next. This is where the Netflix Recommendation Engine comes in.</p><p>The Recommendation Engine suggests content tailored to each viewer’s preferences by analyzing viewing habits, search history, and other data points. This not only keeps viewers engaged and happy but also helps Netflix retain subscribers over the long term. The company estimates that it could lose $1 billion or more every year if it didn’t use this technology.b But the Recommendation Engine is not just about retaining existing subscribers. It also plays a key role in attracting new ones. By offering personalized recommendations from the start, Netflix can hook viewers and keep them coming back for more. This, in turn, helps the company generate more revenue and stay ahead of the competition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ry27zJsmczTE-DOikPNrTQ.jpeg" /></figure><h3>Personalization and Data Collection</h3><p>To make personalized recommendations, Netflix collects data points about its viewers. According to Netflix, the information gathered can be any of the following:</p><ol><li>Time duration of a viewer watching a video.</li><li>Viewing history.</li><li>How were titles rated by the user?</li><li>Other users may have similar tastes.</li><li>Information about the title such as genre, actors, and release year.</li><li>The time of day you watch.</li><li>When the user watches a scene more than once.</li><li>If the show was paused, rewound, or fast-forwarded.</li><li>If the viewer resumed watching after pausing.</li><li>The device you are watching on.</li><li>The number of searches.</li><li>Screenshots of when the show was paused.</li><li>When the user left the show.</li></ol><p>All of this information is used as pieces of data and implemented into an algorithm for processing. According to Netflix, demographic information, such as age or gender, aren’t part of the recommendation process.</p><h3>Three Layers of Personalization</h3><p>Each row has three layers of personalization: the name of the row, which titles appear in the row, and the ranking of those titles.</p><p>For example, the “Continue Watching” row might suggest a TV show the viewer started watching but didn’t finish. The “Trending Now” row might suggest a popular movie that many other users are watching. The “Award-Winning Dramas” row might suggest a critically acclaimed TV show that fits the viewer’s preferences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*8TC7Spi0fQyBJLC7eEY9_w.jpeg" /></figure><h3>The Algorithm and Machine Learning</h3><p>To process all the above data points, Netflix uses an algorithm that incorporates machine learning. Machine learning is a type of artificial intelligence that allows the algorithm to improve its predictions over time as it receives more data.</p><p>According to Netflix, the algorithm analyses viewing habits, search history, and other data points to generate a list of recommended titles for each viewer. The algorithm then ranks the title based on how likely the viewer is to watch them. This ranking is based on a variety of factors, such as how much the viewer has enjoyed similar titles in the past and how recently the title was released.</p><p>Netflix also uses Prescriptive Analytics, which focuses on the best course of action for a given situation. In this case, Prescriptive Analytics focuses on the most effective way to keep viewers engaged and watching. The data collected by Netflix is used to make timely recommendations to viewers, which in turn helps them remain engaged with the platform.</p><h3>Conclusion</h3><p>In conclusion, the Netflix Recommendation System is a crucial part of the company’s success. It not only helps retain existing subscribers but also attracts new ones by offering personalized recommendations from the start. By collecting data points and using machine learning to generate recommendations, Netflix can keep viewers engaged and happy, generating more revenue and staying ahead of the competition. Without the Recommendation System, the streaming giant would risk losing billions of dollars in revenue and subscribers each year.</p><p>If you like my content, follow <a href="https://varshacbendre.medium.com/">me</a> for receiving similar blog recommendations from Medium. ;)</p><p><strong><em>Struggling as a first-time AI founder?</em></strong><em><br>Download this free 5-day email course to guide you from idea to paying customers — without the rookie pitfalls. <br></em>👉 <a href="https://getaifoundersroadmap.com/"><em>Get started now!</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48d67772ee1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Recursion Faster Than Looping ??]]></title>
            <link>https://varshacbendre.medium.com/is-recursion-faster-than-looping-18ce596c51e6?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/18ce596c51e6</guid>
            <category><![CDATA[fibonacci-series]]></category>
            <category><![CDATA[iteration]]></category>
            <category><![CDATA[binary-search]]></category>
            <category><![CDATA[recursion]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Sat, 05 Nov 2022 13:03:00 GMT</pubDate>
            <atom:updated>2025-04-06T12:50:20.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recursive Adventures: Unleashing the Power of Recursion vs. Looping</h3><h3>Diving into the Depths of Code Efficiency and Problem Solving with Recursion and Looping in Programming</h3><h3>1. Introduction</h3><p>The process of Programming is creating a set of instructions to accomplish a task. These instructions might have to repeat reasonably to conduct a part of this task. Two such methods of repetition are <a href="https://www.google.com/search?q=recursion">Recursion</a> and Looping. In recursion, the function calls itself directly or indirectly. In Looping/Iteration, some groups of code will execute repeatedly.<br>Now, we will be diving deep into these two methods by considering the differences, Time and Space complexities, and Pros and Cons, To decide what we will be choosing in our next algorithmic design.</p><h3>2. Difference between Recursion and Looping with an Example of Binary Search</h3><p>Binary search is a search algorithm used to locate an element in a sorted array. The sorted array and a key are the inputs to the algorithm, and the index of the key is our desired output. The algorithm will return the index if it exists in the array and -1 if the element does not exist.</p><p>This algorithm will divide the array into <em>begin</em> and <em>last</em> indexes and use these pointers to search the element. The <em>begin</em> index will be positioned <em>0</em>, and the <em>last</em> will be <em>n-1</em>. During every step, the <em>mid</em> value of the array is found and compared with the <em>key</em> value.</p><p>We have three possibilities during the comparison.</p><ol><li>The <em>key</em> value matches the <em>mid</em> value.</li><li>The <em>key </em>value is less than the <em>mid</em> value (<em>arr[mid]</em> &gt; <em>key</em>). In this case, we get a new search space by removing all the elements on the right, including the <em>mid</em> value.</li><li>The <em>key</em> value is higher than the <em>mid</em> value (<em>arr[mid] </em>&lt; <em>key</em>). We will be removing all the elements on the left, including the <em>mid</em> value in this case.</li></ol><p>We can implement this in both iterative and recursive ways.</p><h4>2.1 Iterative Binary Search</h4><p>Here the input is the sorted array and the <em>key</em> element to be searched. A while loop is defined to carry out the three conditions of the binary search. This loop continues iterating until the target is found (return <em>element</em>) or the beginning index is higher than the last index (return <em>-1</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCpHRnnKGqdYi1eoklAQ7Q.png" /></figure><h4>2.2. Recursive Binary Search</h4><p>The logic is similar except in the recursive approach, the while loop is replaced with a callback and the values for <em>low</em> and <em>high</em> are passed to the next recursive along with the <em>array</em> and <em>key</em>. When the <em>low &gt; high</em> condition is encountered in the while loop, it exits before the beginning of the next while loop and returns <em>False</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOP3MBtWx0le9o2VLl_LSQ.png" /></figure><h4>2.3 Time and Space complexities</h4><ul><li>The <strong>time complexity</strong> is <em>O(log n)</em> which is the same for both recursive and iterative binary searches.</li><li>The <strong>space complexity</strong> for the iterative method is <em>O(1)</em> and for the recursive method <em>O(log n)</em>. The former is an efficient approach here as a constant space is allocated for the assignment of variables and calling the function.</li></ul><h3>3. Difference between Recursion and Iterative with an Example of the Fibonacci Series</h3><p>The Fibonacci series is the addition of two previous numbers to get the subsequent number. The initial elements of the series are <em>F₀= 0</em> and <em>F₁ = 1</em>. For example, we can calculate the 5 terms of the Fibonacci series as follows. <em>F₅ = 0, 1, 1, 2, 3, 5</em></p><h4>3.1. Iterative Fibonacci Series</h4><p>Here, the value of <em>n</em> is taken. If this is greater than or equal to <em>n</em>, it will return <em>n</em>. Otherwise, we use a for loop to find the sum of the first two elements and continue interchanging them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-5iCUvsH-JiQNUID_KHiA.png" /></figure><h4>3.2. Recursive Fibonacci Series</h4><p>In the case of the recursive Fibonacci series, the values are computed repeatedly by calling the function again and again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5OvnDF1r8tG1RhkvSpZpg.png" /></figure><h4>3.3 Time and Space complexities</h4><ul><li>The <strong>time complexity</strong> for the iterative method is <em>O(n)</em> and for the recursive method <em>O(2ⁿ)</em>. The polynomial time is better than the exponential time. Hence the iterative approach is better than the recursive approach in terms of time complexity.</li><li>The <strong>space complexity</strong> for the iterative method is <em>O(1)</em> and for the recursive method <em>O(n)</em>. As the values are computed, again and again, the space complexity is higher in recursion.</li></ul><h3>4. Pros and Cons</h3><ul><li>The approach is easier to understand and the code is quite simpler in Recursion while not in Iteration.</li><li>The recursive method is expensive in terms of space complexity and might crash the system if it is called infinitely. The iteration method is inexpensive on the processor and consumes CPU cycles when the loop is infinitely called.</li></ul><h3>5. Conclusion</h3><p>We can choose recursion and iteration based on the situation. It is better to avoid recursion when memory is of concern. As easier solutions might not be the best ones. But they are easier to debug.</p><p>Happy experimenting with Iteration and Recursion !!!</p><p><strong><em>Struggling as a first-time AI founder?</em></strong><em><br>Download this free 5-day email course to guide you from idea to paying customers — without the rookie pitfalls. <br></em>👉 <a href="https://getaifoundersroadmap.com/"><em>Get started now!</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18ce596c51e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back-propagation Algorithm]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://varshacbendre.medium.com/back-propagation-algorithm-170b5f16790a?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/1029/1*OLTkoQ5zw-NkmXEdo_Ux9w.png" width="1029"></a></p><p class="medium-feed-snippet">Detailed mathematical approach to back propagate</p><p class="medium-feed-link"><a href="https://varshacbendre.medium.com/back-propagation-algorithm-170b5f16790a?source=rss-7d7c839ea70d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://varshacbendre.medium.com/back-propagation-algorithm-170b5f16790a?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/170b5f16790a</guid>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[backpropagation]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Fri, 01 Jan 2021 12:52:51 GMT</pubDate>
            <atom:updated>2025-04-06T12:50:34.965Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Decision Tree — Part 2]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/analytics-vidhya/decision-tree-part-2-c6e57a0a2c61?source=rss-7d7c839ea70d------2"><img src="https://cdn-images-1.medium.com/max/1600/1*icVbFlMN-Q7jTWAOPHWJDQ.jpeg" width="1600"></a></p><p class="medium-feed-snippet">Splitting of nodes for Regression problems</p><p class="medium-feed-link"><a href="https://medium.com/analytics-vidhya/decision-tree-part-2-c6e57a0a2c61?source=rss-7d7c839ea70d------2">Continue reading on Analytics Vidhya »</a></p></div>]]></description>
            <link>https://medium.com/analytics-vidhya/decision-tree-part-2-c6e57a0a2c61?source=rss-7d7c839ea70d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6e57a0a2c61</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[regression-tree]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Varsha C Bendre]]></dc:creator>
            <pubDate>Sat, 27 Jun 2020 12:37:04 GMT</pubDate>
            <atom:updated>2025-04-06T12:50:57.928Z</atom:updated>
        </item>
    </channel>
</rss>